Hello, I am currently working with human mandible with ShapeWorks but I have some problem on version 6.4 and 6.5 (dev).
I didn’t know that there was a new release so I’ve tried to install the new version and the dev version on my computer based on the installation guideline. However, I constantly meet two error messages below (it is written in Korean - “cannot find designated module”)
I saw in release note of 6.3 that python error problem is solved already, but I don’t know why I am confronting this problem. I’ve already tried to uninstall all the problem and redo the process but still I am seeing those error. Is there any way I could solve this problem?
If I import shapeworks in anaconda command prompt, the error message like below appears.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Admin\.conda\envs\shapeworks\lib\site-packages\shapeworks\__init__.py", line 1, in <module>
import vtk
File "C:\Users\Admin\.conda\envs\shapeworks\lib\site-packages\vtk.py", line 31, in <module>
all_m = importlib.import_module('vtkmodules.all')
File "C:\Users\Admin\.conda\envs\shapeworks\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\Admin\.conda\envs\shapeworks\lib\site-packages\vtkmodules\all.py", line 21, in <module>
from .vtkViewsInfovis import *
ImportError: DLL load failed while importing vtkViewsInfovis: 지정된 모듈을 찾을 수 없습니다.
The last sentence is written in Korean and it could be translated as “could not find the designated module”
Hi,
I think I have the same problem.
Until today, I used the previous version of ShapeWorks and I had no problem using the ShapeWorks library. Now, I have installed its new version, version 6.5, and when importing the library in Python, I get the error No module named ‘shapeworks’. What is the problem?
I do the installation steps according to the following site.
I am getting this error when try to import shapeworks. When I downgrade the type_extensions package to 4.13.2 I end up getting below error:
>>> import shapeworks
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sabe848/miniconda3/envs/shapeworks/lib/python3.9/site-packages/shapeworks/__init__.py", line 13, in <module>
from .portal import download_dataset
File "/home/sabe848/miniconda3/envs/shapeworks/lib/python3.9/site-packages/shapeworks/portal.py", line 16, in <module>
from swcc.models import Dataset
File "/home/sabe848/miniconda3/envs/shapeworks/lib/python3.9/site-packages/swcc/models/__init__.py", line 2, in <module>
from .other_models import (
File "/home/sabe848/miniconda3/envs/shapeworks/lib/python3.9/site-packages/swcc/models/other_models.py", line 19, in <module>
class Segmentation(ApiModel):
File "pydantic/main.py", line 197, in pydantic.main.ModelMetaclass.__new__
File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 751, in pydantic.fields.ModelField._type_analysis
File "pydantic/fields.py", line 808, in pydantic.fields.ModelField._create_sub_type
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
File "/home/sabe848/miniconda3/envs/shapeworks/lib/python3.9/typing.py", line 852, in __subclasscheck__
return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class
Any advice on fixing this? I am using Shapeworks 6.5.1 on Linux (ubuntu 24.04)