CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

Not runable after installing according to Readme

Open TDB-ev opened this issue 1 year ago • 4 comments
trafficstars

After installing cq-editor using:

mamba install -c cadquery -c conda-forge cq-editor=master

it is not possible to run cq-editor and yields an error:

...lib/python3.11/site-packages/nptyping/typing_.py", line 51, in <module>
    Bool8 = np.bool8
...
AttributeError: module 'numpy' has no attribute 'bool8'. Did you mean: 'bool'?

Causes by some depency problem (nptype / numpy related).

After downgrading numpy it does work:

mamba install numpy=1.26.8

TDB-ev avatar Jun 21 '24 19:06 TDB-ev

+1 I had the same issue and used the same workaround (downgrading numpy to something before 2.0).

It looks like there's a proposed fix for nptyping in https://github.com/ramonhagenaars/nptyping/pull/114.

justbuchanan avatar Jun 23 '24 03:06 justbuchanan

Attempted fix in https://github.com/CadQuery/cadquery/pull/1612

justbuchanan avatar Jun 23 '24 03:06 justbuchanan

Hi, I have the same problem. Do you raccomand to downgrade cadquery from 2.4.0 version to another older version? If I downgrade only numpy there is no compatibility between the 2 libraries.

GiulioBj avatar Sep 02 '24 11:09 GiulioBj

Does installing cadquery from the cadquery channel work: mamba install -c conda-forge cadquery::cadquery=master? In the meantime we should start releasing 2.5.

adam-urbanczyk avatar Sep 03 '24 06:09 adam-urbanczyk

This should be fixed by the latest release of CadQuery.

jmwright avatar Feb 06 '25 18:02 jmwright