# 'Run optimize' button blocked

**URL:** https://shapeworks.discourse.group/t/run-optimize-button-blocked/333
**Category:** Uncategorized
**Created:** [April 2, 2025, 7:58pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333 "2025-04-02T19:58:36Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![dfrvanloon](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfrvanloon](https://shapeworks.discourse.group/u/dfrvanloon)
#### Post date: [April 2, 2025, 7:58pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/1 "2025-04-02T19:58:36Z")

</div>

Hi,

We are running Shapeworks 6.6.0-dev and at the moment it is not possible to run the optimization step in Studio. The ‘Run optimize’ button is blocked for all users and we don’t know why. Are you familiar with this?

 ![run_optimize_blocked](https://global.discourse-cdn.com/free1/uploads/shapeworks/original/1X/ecb9891d56cd19e199039c16b49189687f23da0b.png)

Thanks in advance

Derek

---

<div class="post-metadata">

### Author: ![dfrvanloon](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfrvanloon](https://shapeworks.discourse.group/u/dfrvanloon)
#### Post date: [April 3, 2025, 2:29pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/2 "2025-04-03T14:29:06Z")

</div>

Hi, I have some additional information.

- Shapeworks is installed for all users on a windows computer.
- The python environment is installed via Miniconda and is accessible for all users.
- Of the three users of the computer, 1 user can optimize in Shapeworks Studio, while 2 (including the user with administration rights who installed everything) cannot.
- Optimize via python prompt does work for all users.

---

<div class="post-metadata">

### Author: ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)
#### Post date: [April 4, 2025, 5:13pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/3 "2025-04-04T17:13:00Z")

</div>

Have you run the groom step first? Either run Groom or click the box “Skip Grooming” in the Groom module. Sorry this is not more clear.

---

<div class="post-metadata">

### Author: ![dfrvanloon](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfrvanloon](https://shapeworks.discourse.group/u/dfrvanloon)
#### Post date: [April 7, 2025, 8:05am UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/4 "2025-04-07T08:05:30Z")

</div>

Thanks for the reply. Unfortunately, this not solves the problem: we have tried this in several ways, but no success. We will try the normal 6.5 release this week to see if this problem only persists in the dev version.

We do have another question though. If we use the python optimizer, sometimes we get the error ‘Inconsistency in parameters… m\_domains\_per\_shape != m\_number\_of\_particles.size()’. If we use one of the examples we do not get this error, but once we change the data input, sometimes this error raises. Do you know what prevents this error? Because there is no parameter to set for ‘domains\_per\_shape’.

---

<div class="post-metadata">

### Author: ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)
#### Post date: [April 16, 2025, 4:18pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/5 "2025-04-16T16:18:39Z")

</div>

If you are finding differences between users, this suggests a permission problem and Studio is not able to save the changes to the project.

For the `m_domains_per_shape != m_number_of_particles.size()` message, this indicates that the number of particles is not set for each domain. E.g. if you have two domains, then two numbers of particles need to be specified. E.g. in Studio:

 ![image](https://global.discourse-cdn.com/free1/uploads/shapeworks/original/1X/71ec088b24b6aab30137b19624dd55d15e8157b8.png)

Are you running this in Studio and still having this problem, or are you setting the parameters in another way?

---

<div class="post-metadata">

### Author: ![dfrvanloon](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfrvanloon](https://shapeworks.discourse.group/u/dfrvanloon)
#### Post date: [May 27, 2025, 12:06pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/6 "2025-05-27T12:06:17Z")

</div>

Thanks for the answer. (and excuse me for the silence).

I am using Python, not the studio version. In studio, there are indeed the same number of field as there are domains. In the python script however, it is not possible to set the value for ‘m\_domains\_per\_shape’, which is weird, because the error does say that is is not equal to the amount of domains, which I have set for each subject and it is 1. The length of the particle list in Python is also 1.

---

<div class="post-metadata">

### Author: ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)
#### Post date: [June 4, 2025, 7:07am UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/7 "2025-06-04T07:07:09Z")

</div>

For python, have a look at a multiple domain example:

[https://raw.githubusercontent.com/SCIInstitute/ShapeWorks/refs/heads/master/Examples/Python/ellipsoid\_multiple\_domain.py](https://raw.githubusercontent.com/SCIInstitute/ShapeWorks/refs/heads/master/Examples/Python/ellipsoid_multiple_domain.py)

```auto
    num_particles = [128,128]
...
    parameters.set("number_of_particles" ,sw.Variant(num_particles))

```

---

<div class="post-metadata">

### Author: ![irissterkenburg](https://avatars.discourse-cdn.com/v4/letter/i/c68b51/32.png) [@irissterkenburg](https://shapeworks.discourse.group/u/irissterkenburg)
#### Post date: [November 4, 2025, 3:07pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/8 "2025-11-04T15:07:19Z")

</div>

Hello,

I was wondering what solved the issue of not being able to click on ‘‘Run Optimize’’?

I have the same problem.

Kind regards.

---

<div class="post-metadata">

### Author: ![dfrvanloon](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfrvanloon](https://shapeworks.discourse.group/u/dfrvanloon)
#### Post date: [November 4, 2025, 5:00pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/9 "2025-11-04T17:00:05Z")

</div>

Hi Iris,

No, we have never solved this issue, unfortunately. We have run ShapeWorks from an Anaconda prompt instead, which is not ideal. We run ShapeWorks on Windows 10 and 11 and have encountered this problem since version 6.3. New versions have not solved it.

---

<div class="post-metadata">

### Author: ![irissterkenburg](https://avatars.discourse-cdn.com/v4/letter/i/c68b51/32.png) [@irissterkenburg](https://shapeworks.discourse.group/u/irissterkenburg)
#### Post date: [November 5, 2025, 11:12am UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/10 "2025-11-05T11:12:52Z")

</div>

Thanks for your reply.

I have solved the issue by doing the following! 🙂

> <https://github.com/SCIInstitute/ShapeWorks/issues/2396>
>
> Hi,
> 
> regarding the issue with the "Run optimize" button disabled --\> 
> 
> https://s…hapeworks.discourse.group/t/can-not-optimize/315
> 
> \*\*Try to set the region setting to "US"\*\*. At least this solved the issue on Mac-OS here in Europe!
> I assume it has something to to with the notation of the floating point numbers / metrics 
> \---\> guess there is a kind of check involved which prevents running optimizer in case of "wrong" entries. 
> 
> Hope this helps.
> 
> Best,
> Markus

^ so the crucial thing was to change the decimal point to ‘.’ instead of ‘,’'.

Hope this helps!

---

<div class="post-metadata">

### Author: ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)
#### Post date: [November 7, 2025, 8:36pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/11 "2025-11-07T20:36:42Z")

</div>

This should be fixed now in the nightly/development version and in future versions of ShapeWorks:

> **[Releases · SCIInstitute/ShapeWorks](https://github.com/SCIInstitute/ShapeWorks/releases)**
>
> ShapeWorks. Contribute to SCIInstitute/ShapeWorks development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![dfrvanloon](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfrvanloon](https://shapeworks.discourse.group/u/dfrvanloon)
#### Post date: [November 12, 2025, 1:05pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/12 "2025-11-12T13:05:00Z")

</div>

Good to hear that this is fixed! Unfortunately, when I install the the python environment, I get the following error:

ERROR: Ignored the following versions that require a different python version  
ERROR: Could not find a version that satisfies the requirement bokeh==3.0.8  
ERROR: No matching distribution found for bokeh==3.8.0.

It looks like the bokeh package only works with python 3.10. Could there be something wrong with the version of the bokeh package in combination with python 3.9, which is needed for shapeworks?

---

<div class="post-metadata">

### Author: ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)
#### Post date: [November 26, 2025, 5:45am UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/13 "2025-11-26T05:45:45Z")

</div>

You may need to start your shapeworks conda environment over from scratch. It should be Python 3.12 now with the development version of ShapeWorks.

---

<div class="post-metadata">

### Author: ![dfrvanloon](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfrvanloon](https://shapeworks.discourse.group/u/dfrvanloon)
#### Post date: [December 1, 2025, 12:56pm UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/14 "2025-12-01T12:56:13Z")

</div>

Are you sure? I just downloaded the most recent development version of ShapeWorks (released 3 days ago, for windows) and reinstalled miniconda. I still receive this error. It looks like Python version 3.9.13 is installed, not 3.12.

 ![Screenshot 2025-12-01 135335](https://global.discourse-cdn.com/free1/uploads/shapeworks/original/1X/65c8f9a4ca66be480266bddd7a894dd4cf139b46.png)

---

<div class="post-metadata">

### Author: ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)
#### Post date: [December 11, 2025, 7:32am UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/15 "2025-12-11T07:32:30Z")

</div>

Hi, it looks like the `install_shapeworks.bat` file, for windows, didn’t get updated. I’ll fix this and respond back here.

---

<div class="post-metadata">

### Author: ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)
#### Post date: [December 16, 2025, 7:58am UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/16 "2025-12-16T07:58:11Z")

</div>

This has been updated in the latest development version. Windows now uses Python 3.12 as well.

---

<div class="post-metadata">

### Author: ![dfrvanloon](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfrvanloon](https://shapeworks.discourse.group/u/dfrvanloon)
#### Post date: [December 16, 2025, 8:31am UTC](https://shapeworks.discourse.group/t/run-optimize-button-blocked/333/17 "2025-12-16T08:31:26Z")

</div>

Thanks you so much Alan! I will try it this Thursday
