py27-mayavi: No module named wx
alex m.
mymacports at gmail.com
Sat Aug 11 20:16:47 PDT 2012
Hi,
Per MacPorts' Mayavi maintainer's suggestion which was expressed in the
last change to the ticket #34342, I would like to ask your help
with figuring out the following problem:
I have updated py-mayavi to 4.1.0 and got the error you can find at the end
of this e-mail. It was also described in the comment 27 of the ticket
#34432.
As suggested in the ticket #34342, py26-envisagecore @3.2.0_0 and py26-traits
@3.6.0_0 were uninstalled, vtk5 was uninstalled and installed like vtk5
-tcltk -x11 +python27. py27-mayavi was uninstalled and installed again. The
same error is still there. Interestingly, "port installed *traits*" and
"port installed *envi*" now give:
(now):
port installed *traits*
The following ports are currently installed:
py26-traits @4.1.0_0 (active)
py26-traitsui @4.1.0_0 (active)
py27-traits @4.1.0_0 (active)
py27-traitsui @4.1.0_0 (active)
compare to the ticket #34342, before uninstalling py26-envisagecore
@3.2.0_0 and py26-traits @3.6.0_0:
(ticket #34342):
port installed *traits*
The following ports are currently installed:
py26-traits @3.6.0_0 (active)
py27-traits @4.1.0_0 (active)
py27-traitsui @4.1.0_0 (active)
(now):
port installed *envi*
The following ports are currently installed:
py26-envisage @4.1.0_0 (active)
py27-envisage @4.1.0_0 (active)
(ticket #34342):
py26-envisagecore @3.2.0_0 (active)
py27-envisage @4.1.0_0 (active)
Thanks.
The error message:
###
... : mayavi2-2.7
Warning: Unable to import the wx backend for pyface due to traceback:
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/toolkit.py",
line 45, in _init_toolkit
be = import_toolkit(tk)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/toolkit.py",
line 31, in import_toolkit
__import__(be + 'init')
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyface/ui/wx/init.py",
line 14, in <module>
import wx
ImportError: No module named wx
Traceback (most recent call last):
File "/opt/local/bin/mayavi2-2.7", line 9, in <module>
load_entry_point('mayavi==4.1.0', 'console_scripts', 'mayavi2')()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py",
line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py",
line 2311, in load_entry_point
return ep.load()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py",
line 2017, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mayavi/scripts/mayavi2.py",
line 493, in <module>
raise ImportError(msg)
ImportError: No module named configobj
________________________________________________________________________________
Could not load envisage. You might have a missing dependency.
Do you have the EnvisageCore and EnvisagePlugins installed?
If you installed Mayavi with easy_install, try 'easy_install <pkg_name>'.
'easy_install Mayavi[app]' will also work.
If you performed a source checkout and installed via 'python setup.py
develop',
be sure to run the same command in the EnvisageCore and EnvisagePlugins
folders.
If these packages appear to be installed, check that your numpy and
configobj are installed and working. If you need numpy, 'easy_install numpy'
will install numpy. Similarly, 'easy_install configobj' will install
configobj.
###
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120811/9b7f7b3a/attachment.html>
More information about the macports-users
mailing list