ImportError: No module named wx

41 views
Skip to first unread message

mesheb82

unread,
Feb 13, 2012, 5:21:32 PM2/13/12
to pyNastran Discuss
From a user....
--------------------------------------------------

I just downloaded V0.3.0 and thought that I'd try the GUI, but when I
try to run it I get the following error:


Traceback (most recent call last):
File "C:\Python27\Scripts\pyNastranGUI-script.py", line 9, in
<module>
load_entry_point('pyNastran==0.3.0.r419', 'console_scripts',
'pyNastranGUI')
()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 337, in
load_entry
_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 2281, in
load_entr
y_point
return ep.load()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 1991, in
load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
File "C:\Python27\lib\site-packages\pynastran-0.3.0.r419-py2.7.egg
\pyNastran\g
ui\gui.py", line 30, in <module>
import wx
ImportError: No module named wx

I have python(x,y) v2.7.2.1 installed, and sure enough when I try
"import wx" in there I get a "No module name wx" error. Is "wx" a
graphics backend? Should it be available?

mesheb82

unread,
Feb 13, 2012, 5:22:04 PM2/13/12
to pyNastran Discuss
Wx (and VTK) are graphics libraries available in Python(x,y). I'm
pretty sure wx is not selected by default, but I'm not sure about vtk.
If you still have your Python(x,y) installer, you can relaunch it,
select a few more packages and all your other settings should still be
set property. I would open python and type:
>> import wx
>> import vtk

to be sure. If you don't have the installer, I would download
(requires Python 2.7 on Windows):
http://pythonxy.googlecode.com/files/wxPython-2.8.12.0_py27.exe
http://pythonxy.googlecode.com/files/vtk-5.8.0_py27.exe
Reply all
Reply to author
Forward
0 new messages