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

Shapeworks 6.1 Testing: shapeworks module not found #1280

Closed
patkins opened this issue Jun 9, 2021 · 4 comments
Closed

Shapeworks 6.1 Testing: shapeworks module not found #1280

patkins opened this issue Jun 9, 2021 · 4 comments
Assignees

Comments

@patkins
Copy link

patkins commented Jun 9, 2021

For #1273, it seems that the command source ./conda_installs.sh is not setting the path for the python shapeworks module properly. Is this something that should be manually done and included in the readme.txt file or was there a failure during install?

(shapeworks) atkins@localhost:/data/shapeworks/Examples/Python> python RunUseCase.py --use_case ellipsoid
Traceback (most recent call last):
  File "RunUseCase.py", line 19, in <module>
    import shapeworks as sw
  File "/home/atkins/miniconda3/envs/shapeworks/lib/python3.7/site-packages/shapeworks/__init__.py", line 5, in <module>
    from shapeworks_py import *
ModuleNotFoundError: No module named 'shapeworks_py'
@cchriste
Copy link
Contributor

cchriste commented Jun 9, 2021

Thank you. We noticed this earlier and are working on it right now. In the meantime there is a workaround so you can continue testing:
export PYTHONPATH=/path/to/shapeworks/download/bin:$PYTHONPATH

@cchriste cchriste self-assigned this Jun 9, 2021
@sheryjoe sheryjoe added this to the 6.1 Release (June 2021) milestone Jun 9, 2021
@cchriste
Copy link
Contributor

Having difficulty importing shapeworks_py on windows the same was that works on linux and osx, by just copying the .so to the python module installation directory in conda. It seems to need some other dll.

@cchriste
Copy link
Contributor

Having difficulty importing shapeworks_py on windows the same was that works on linux and osx, by just copying the .so to the python module installation directory in conda. It seems to need some other dll.

Figured this out using https://github.com/lucasg/Dependencies and identifying the local dlls that also needed to be copied. conda_install.bat now updated.

@cchriste
Copy link
Contributor

Fixed and merged to master and new 6.1 branch.

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

3 participants