marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
2.05k stars 266 forks source link

Torus() shape throwing AttributeError #818

Open daniel-a-diaz opened 1 year ago

daniel-a-diaz commented 1 year ago

So the Torus() object seems to be having an issue for me with vedo: 2023.4.3, vtk: 9.2.5 . With this script

from vedo import *
torus = Torus()

I get the following error

Exception has occurred: AttributeError
module 'vtkmodules.all' has no attribute 'vtkmodules'
  File "/home/*/torus.py", line 2, in <module>
    torus = Torus()
AttributeError: module 'vtkmodules.all' has no attribute 'vtkmodules'
marcomusy commented 1 year ago

It works for me... can you try pip uninstall vedo pip install vedo -U

daniel-a-diaz commented 1 year ago

Ya that works thanks. It looks like installing through conda is having issues, but with pip it is fine.