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

How to solve the problem? #1331

Open
OCEANOUXIN opened this issue Jan 5, 2025 · 5 comments
Open

How to solve the problem? #1331

OCEANOUXIN opened this issue Jan 5, 2025 · 5 comments

Comments

@OCEANOUXIN
Copy link

Traceback (most recent call last):
File "E:\pythonProject\BMErace\3d 分割图.py", line 19, in
mlab.figure(bgcolor=(1, 1, 1))
File "E:\miniconda\lib\site-packages\mayavi\tools\figure.py", line 69, in figure
engine.new_scene(name=name, size=size)
File "E:\miniconda\lib\site-packages\apptools\scripting\recordable.py", line 48, in _wrapper
result = func(*args, **kw)
File "E:\miniconda\lib\site-packages\mayavi\core\engine.py", line 452, in new_scene
viewer = self.scene_factory(**factory_kwargs)
File "E:\miniconda\lib\site-packages\mayavi\core\ui\mayavi_scene.py", line 89, in viewer_factory
viewer.open()
File "E:\miniconda\lib\site-packages\pyface\i_window.py", line 231, in open
self.create()
File "E:\miniconda\lib\site-packages\pyface\ui\qt\application_window.py", line 111, in create
contents = self._create_contents(self.control)
File "E:\miniconda\lib\site-packages\tvtk\tools\ivtk.py", line 406, in _create_contents
self.scene = self._scene_factory(parent)
File "E:\miniconda\lib\site-packages\mayavi\core\ui\mayavi_scene.py", line 68, in mayavi_scene_factory
s = MayaviScene(parent, stereo=p['stereo'])
File "E:\miniconda\lib\site-packages\tvtk\pyface\ui\qt4\decorated_scene.py", line 57, in init
super(DecoratedScene, self).init(parent, **traits)
File "E:\miniconda\lib\site-packages\tvtk\pyface\ui\qt4\scene.py", line 336, in init
self.picker = picker.Picker(self)
File "E:\miniconda\lib\site-packages\tvtk\pyface\picker.py", line 276, in init
self.probe_data = tvtk.PolyData()
File "tvtk_classes\poly_data.py", line 88, in init
File "E:\miniconda\lib\site-packages\tvtk\tvtk_base.py", line 435, in init
self.setup_observers()
File "E:\miniconda\lib\site-packages\tvtk\tvtk_base.py", line 536, in setup_observers
_object_cache.setup_observers(self._vtk_obj,
File "E:\miniconda\lib\site-packages\tvtk\tvtk_base.py", line 93, in setup_observers
messenger.connect(vtk_obj, event, method)
File "E:\miniconda\lib\site-packages\tvtk\messenger.py", line 302, in connect
_messenger.connect(obj, event, callback)
File "E:\miniconda\lib\site-packages\tvtk\messenger.py", line 148, in connect
key = hash(obj)
TypeError: unhashable type: 'PolyData'

@OrangeSodahub
Copy link

@OCEANOUXIN Hi, same issue, have you solved this?

@prabhuramachandran
Copy link
Member

Please install with

pip install https://github.com/enthought/mayavi/zipball/main

@OrangeSodahub
Copy link

In my case, it didn't help...

@OCEANOUXIN
Copy link
Author

@OCEANOUXIN Hi, same issue, have you solved this?

Hi, I do

Please install with

pip install https://github.com/enthought/mayavi/zipball/main

Thank you! It works now.

@OrangeSodahub
Copy link

Finally I solved, wonderful! gorgeous!

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