py27-mayavi: No module named wx

Wahlstedt Jyrki jwa at macports.org
Sat Aug 11 23:27:21 PDT 2012


On 12.8.2012, at 6.16, alex m. <mymacports at gmail.com> wrote:

> 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:
> 
<snip>
> 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

This suggests that there should be a dependency to py27-wxpython(-devel), which is a bit sad at the moment, because if you are on ML, you can only build 2.9.4.0 this being the -devel port, on Lion the stable 2.8.12.1 can be used.
> 
> 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
<snip>

There seems to be another missing dependency, this does not ring any bell, however, for me (at least I don't have it)…

!
! Jyrki Wahlstedt
!	http://www.wahlstedt.fi/jyrki/
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0  A780 6366 EFD9 139C C386



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120812/98145547/attachment.html>


More information about the macports-users mailing list