hi guys, first post to the list and I'm having a problem trying to run a GUI application.
this is the error message,
Traceback (most recent call last):
File "/usr/bin/thing.py", line 15, in ?
from wxPython.wx import *
ImportError: No module named wxPython.wx
line 15 looks like this, "from wxPython.wx import *"
I looked thru the FAQ, the only found wx.py in one directory: /usr/lib/python2.2/site-packages/libftpcube/wxPyColourChooser/wx.py
That just dosen't look correct. So.. I tryed export PYTHONPATH=/usr/lib/python2.2/site-packages
PYTHONPATH=/usr/lib/python2.2/site-packages/libftpcube
PYTHONPATH=/usr/lib/python2.2/site-packages/libftpcube/wxPyColourChooser
Also tryed PYTHON_PATH for each of those.. Now, I know something an't right. How do I fix it? I'm guessing its something to do with wxGTK, or something.. dunno.
···
--
thanks in advance,
--Nathan
Are you sure you have wxPython installed at all ?
Do you have a
/usr/lib/python2.2/site-packages/wxPython
directory ? (assuming /usr/lib/python2.2 is your python base directory)
If not, go get it at wxPython.org and install it.
Depending on your system you might want to take the RPM distribution instead
of compiling yourself.
BTW: are you developing in /usr/bin ???!!!
···
On Sunday 01 June 2003 09:52 pm, frizop@charter.net wrote:
hi guys, first post to the list and I'm having a problem trying to run a
GUI application.
this is the error message,
Traceback (most recent call last):
File "/usr/bin/thing.py", line 15, in ?
from wxPython.wx import *
ImportError: No module named wxPython.wx
line 15 looks like this, "from wxPython.wx import *"
I looked thru the FAQ, the only found wx.py in one directory:
/usr/lib/python2.2/site-packages/libftpcube/wxPyColourChooser/wx.py
That just dosen't look correct. So.. I tryed export
PYTHONPATH=/usr/lib/python2.2/site-packages
PYTHONPATH=/usr/lib/python2.2/site-packages/libftpcube
PYTHONPATH=/usr/lib/python2.2/site-packages/libftpcube/wxPyColourChooser
Also tryed PYTHON_PATH for each of those.. Now, I know something an't
right. How do I fix it? I'm guessing its something to do with wxGTK, or
something.. dunno.
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
Also w/Linux or any Operating system, know which python is in your PATH environment.
Try
$ which python
/usr/bin/python
$ ls -l /usr/bin/python*
/usr/bin/python -> python1
/usr/bin/python1 -> python1.5
/usr/bin/python1.5 xxx ....
/usr/bin/python2 -> python2.2
/usr/bin/python2.2 xxx ....
In this case, this may be a good option:
$ cd /usr/bin
$ ln -sf python2.2 python
$ ls -l python
python -> python2.2
-Joe
Uwe C. Schroeder wrote:
···
Are you sure you have wxPython installed at all ?
Do you have a /usr/lib/python2.2/site-packages/wxPython
directory ? (assuming /usr/lib/python2.2 is your python base directory)
If not, go get it at wxPython.org and install it.
Depending on your system you might want to take the RPM distribution instead of compiling yourself.
BTW: are you developing in /usr/bin ???!!!
On Sunday 01 June 2003 09:52 pm, frizop@charter.net wrote:
hi guys, first post to the list and I'm having a problem trying to run a
GUI application.
this is the error message,
Traceback (most recent call last):
File "/usr/bin/thing.py", line 15, in ?
from wxPython.wx import *
ImportError: No module named wxPython.wx
line 15 looks like this, "from wxPython.wx import *"
I looked thru the FAQ, the only found wx.py in one directory:
/usr/lib/python2.2/site-packages/libftpcube/wxPyColourChooser/wx.py
That just dosen't look correct. So.. I tryed export
PYTHONPATH=/usr/lib/python2.2/site-packages
PYTHONPATH=/usr/lib/python2.2/site-packages/libftpcube
PYTHONPATH=/usr/lib/python2.2/site-packages/libftpcube/wxPyColourChooser
Also tryed PYTHON_PATH for each of those.. Now, I know something an't
right. How do I fix it? I'm guessing its something to do with wxGTK, or
something.. dunno.
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
Also w/Linux or any Operating system, know which python is in your PATH
environment.
Try
$ which python
/usr/bin/python
$ ls -l /usr/bin/python*
/usr/bin/python -> python1
/usr/bin/python1 -> python1.5
/usr/bin/python1.5 xxx ....
/usr/bin/python2 -> python2.2
/usr/bin/python2.2 xxx ....
In this case, this may be a good option:
$ cd /usr/bin
$ ln -sf python2.2 python
$ ls -l python
python -> python2.2
I wouldn't recommend that. If you look onto a redhat system they need python
1.x for several redhat supplied tools. Linking in python 2.x will very likely
affect those tools.
If you're running a program directly via shell why not put something like
#!/usr/bin/python2 or
#!/usr/bin/env python2
as the first line into your script ?
First thing is to find out where you've installed wxPython. if you have locate
set up you might want to try #> locate wxPython
(alternatively you can do a very expensive #> find / -name wxPython -print
which will load your machine for the next couple of minutes :-))
Then see where it is installed. You either haven't installed it at all or you
are using the wrong python version (asuming you have 2 versions).
···
On Monday 02 June 2003 04:03 am, Joe Brown wrote:
-Joe
Uwe C. Schroeder wrote:
>Are you sure you have wxPython installed at all ?
>Do you have a
>/usr/lib/python2.2/site-packages/wxPython
>directory ? (assuming /usr/lib/python2.2 is your python base directory)
>If not, go get it at wxPython.org and install it.
>Depending on your system you might want to take the RPM distribution
> instead of compiling yourself.
>
>BTW: are you developing in /usr/bin ???!!!
>
>On Sunday 01 June 2003 09:52 pm, frizop@charter.net wrote:
>>hi guys, first post to the list and I'm having a problem trying to run a
>>GUI application.
>>
>>this is the error message,
>>
>>Traceback (most recent call last):
>> File "/usr/bin/thing.py", line 15, in ?
>> from wxPython.wx import *
>>ImportError: No module named wxPython.wx
>>
>>line 15 looks like this, "from wxPython.wx import *"
>>
>>I looked thru the FAQ, the only found wx.py in one directory:
>>/usr/lib/python2.2/site-packages/libftpcube/wxPyColourChooser/wx.py
>>
>>That just dosen't look correct. So.. I tryed export
>>PYTHONPATH=/usr/lib/python2.2/site-packages
>>PYTHONPATH=/usr/lib/python2.2/site-packages/libftpcube
>>PYTHONPATH=/usr/lib/python2.2/site-packages/libftpcube/wxPyColourChooser
>>
>>Also tryed PYTHON_PATH for each of those.. Now, I know something an't
>>right. How do I fix it? I'm guessing its something to do with wxGTK, or
>>something.. dunno.
>
>--
>Open Source Solutions 4U, LLC 2570 Fleetwood Drive
>Phone: +1 650 872 2425 San Bruno, CA 94066
>Cell: +1 650 302 2405 United States
>Fax: +1 650 872 2417
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
>For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
--
UC
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417