-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'zoom' from 'ezdxf' (/opt/conda/lib/python3.12/site-packages/ezdxf/__init__.py) #1704
Comments
I cannot reproduce on MacOS and Python 3.12.2 in a clean conda environment. |
This is happening to me too on Windows (Clean Conda installation). I tried 2.4 and master both cause the same error. |
Can you run |
Of course Attached the file. |
The version of ezdxf that output is showing is not even close to the current release. The oldest version I can find in my Linux environments is 1.1.0. I don't see any reason why conda would be installing an earlier version (a Windows package is available). https://anaconda.org/conda-forge/ezdxf Can you try to force the installation of 1.3.0 in your conda environment? |
@pmbaumgartner @kariem2k Are either of you able to try the potential solution above? |
Just to mention this was thread useful for me. Yesterday I was making a conda package that used cadquery 2.5.2 and noticed the same import error. Enforcing version 1.3.0 or newer solved the issue when making a conda package Today I've also tried to update another package to use cadquery 2.5.2 and noticed the same error. I've tried reworking the CI and adding a min version for the ezdxf package of 1.3.0 but couldn't get the ci to pass still. I have got this output log if it helps diagnose the error, |
@adam-urbanczyk Should we pin the version of ezdxf in environment.yml to force conda to use a current version? https://github.com/CadQuery/cadquery/blob/master/environment.yml#L16 |
Would that also work for users installing with pip ? |
@shimwell I have not seen evidence that pip is affected, have you? It seems like a conda solver issue. We could go ahead and add the pin to setup.py for completeness anyway. |
I've not seen any cadquery 2.5.2 pip install breakages, sorry I just assumed |
@shimwell No worries. Some conda and pip packages are also maintained separately, so the versions do not always match up (one can lag the other). So that adds another layer of consideration to this. However, I do see that PyPI has version 1.3.0 of ezdxf and above, so we could add the pin for >=1.3.0 to setup.py as well to be more consistent between environments. |
I created #1746 to see if we can fix this. |
#1746 has been merged. I think it usually takes a few hours for the packages to be available on conda-forge. Can someone who can reproduce this issue test a conda master install of CadQuery when the new packages are available? I believe you can watch for the new master package on conda-forge. When it is available there, you can try the install. |
Actually I need to update the recipe there. |
Done, @shimwell could you check if it solves the problem? |
Yes this solves it form me. Many thanks |
On a fresh install (on macOS, using docker) I get:
full traceback:
The text was updated successfully, but these errors were encountered: