Skip to content
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

Cannot import aocxchange.step_ocaf #2

Open
copyrite opened this issue Jul 31, 2020 · 0 comments
Open

Cannot import aocxchange.step_ocaf #2

copyrite opened this issue Jul 31, 2020 · 0 comments

Comments

@copyrite
Copy link

I can't seem to import aocxchange.step_ocaf. For comparison, import aocxchange.step will work just fine. The error I receive is this:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "C:\tools\miniconda3\envs\REDACTED\lib\site-packages\aocxchange-18.0.10-py3.6.egg\aocxchange\step_ocaf.py", line 15, in <module>
ImportError: cannot import name 'Handle_TDocStd_Document' from 'OCC.Core.TDocStd' (C:\tools\miniconda3\envs\REDACTED\lib\site-packages\OCC\Core\TDocStd.py)

The erroneous line is here.

from OCC.Core.TDocStd import Handle_TDocStd_Document

I've tracked this down to PythonOCC's side and apparently there has been an effort to remove "Handle_" prefixes from namespaces: tpaviot/pythonocc-core#583

Don't know yet if I actually need step_ocaf for my use case but thought I should notify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant