I've been running wxpython 2.6 on my linux box for a while. Recently I
upgraded to Feisty and decided to upgrade wxpython to 2.8.3.0. I
followed the instructions in the Ubuntu section given on the site, and
the installation appears to have gone smoothly. However, when I run a
simple wxpython app that I had created with 2.6 I get the following
output:
···
-----------------
richard@ubuntu:~$ cd src
richard@ubuntu:~/src$ python rawbatch.py
Traceback (most recent call last):
File "rawbatch.py", line 390, in <module>
app = MyApp(0)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7757, in __init__
self._BootstrapApp()
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7354, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "rawbatch.py", line 385, in OnInit
frame = MyFrame(None,-1,"RawBatch v0.0.1")
File "rawbatch.py", line 293, in __init__
sizer1.Add(jspanTextCtrl, 0, wx.ALL, 5)
NameError: global name 'jspanTextCtrl' is not defined
------------------
I'm pretty sure the program ran fine before the upgrade.
I'm also getting a error when I run icepodder (a podcatching client for linux):
------------------
richard@ubuntu:~$ icepodder
Traceback (most recent call last):
File "CastPodderGui.py", line 26, in <module>
import wxversion
ImportError: No module named wxversion
richard@ubuntu:~$
------------------
Both of these ran fine before. Am I doing something wrong?
Which repository are you using for wxPython? python-wxgtk2.8 conflicts in MOTU with python-wxgtk2.6, but it shouldn't. This is a confirmed bug. This means anyone on Feisty won't be able to run wx2.6 along with wx2.8 programs when they use the standard ubuntu repositories. This is not a problem of wxPython of MOTU. Adding your comments to this bugreport might higher the priority of this bug and speed up the fix for it, which is basically not defining a dependency conflict between 2.8 and 2.6 as wxversion takes care of this:
Stani
Richard Querin wrote:
···
I've been running wxpython 2.6 on my linux box for a while. Recently I
upgraded to Feisty and decided to upgrade wxpython to 2.8.3.0. I
followed the instructions in the Ubuntu section given on the site, and
the installation appears to have gone smoothly. However, when I run a
simple wxpython app that I had created with 2.6 I get the following
output:
-----------------
richard@ubuntu:~$ cd src
richard@ubuntu:~/src$ python rawbatch.py
Traceback (most recent call last):
File "rawbatch.py", line 390, in <module>
app = MyApp(0)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7757, in __init__
self._BootstrapApp()
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7354, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "rawbatch.py", line 385, in OnInit
frame = MyFrame(None,-1,"RawBatch v0.0.1")
File "rawbatch.py", line 293, in __init__
sizer1.Add(jspanTextCtrl, 0, wx.ALL, 5)
NameError: global name 'jspanTextCtrl' is not defined
------------------
I'm pretty sure the program ran fine before the upgrade.
I'm also getting a error when I run icepodder (a podcatching client for linux):
------------------
richard@ubuntu:~$ icepodder
Traceback (most recent call last):
File "CastPodderGui.py", line 26, in <module>
import wxversion
ImportError: No module named wxversion
richard@ubuntu:~$
------------------
Both of these ran fine before. Am I doing something wrong?
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
I've been running wxpython 2.6 on my linux box for a while. Recently I
upgraded to Feisty and decided to upgrade wxpython to 2.8.3.0. I
followed the instructions in the Ubuntu section given on the site, and
the installation appears to have gone smoothly. However, when I run a
simple wxpython app that I had created with 2.6 I get the following
output:
-----------------
richard@ubuntu:~$ cd src
richard@ubuntu:~/src$ python rawbatch.py
Traceback (most recent call last):
File "rawbatch.py", line 390, in <module>
app = MyApp(0)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7757, in __init__
self._BootstrapApp()
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7354, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "rawbatch.py", line 385, in OnInit
frame = MyFrame(None,-1,"RawBatch v0.0.1")
File "rawbatch.py", line 293, in __init__
sizer1.Add(jspanTextCtrl, 0, wx.ALL, 5)
NameError: global name 'jspanTextCtrl' is not defined
------------------
I'm pretty sure the program ran fine before the upgrade.
Look at the code. Is there a 'jspanTextCtrl' variable accessible at that point in the code? It says it's looking for a global, so there apparently isn't one in the local function. Where is it supposed to come from.
I'm also getting a error when I run icepodder (a podcatching client for linux):
------------------
richard@ubuntu:~$ icepodder
Traceback (most recent call last):
File "CastPodderGui.py", line 26, in <module>
import wxversion
ImportError: No module named wxversion
richard@ubuntu:~$
------------------
Install the python-wxversion package.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
El lun, 23-04-2007 a las 13:06 -0700, Robin Dunn escribió:
Richard Querin wrote:
>
> I'm also getting a error when I run icepodder (a podcatching client for
> linux):
>
> ------------------
> richard@ubuntu:~$ icepodder
> Traceback (most recent call last):
> File "CastPodderGui.py", line 26, in <module>
> import wxversion
> ImportError: No module named wxversion
> richard@ubuntu:~$
> ------------------
Install the python-wxversion package.
--
Saludos / Best regards
Mario Lacunza Vásquez (UTC -05h00)
Desarrollador de Software - Webmaster
Desarrollador 2 Estrellas VS2005
Linux Registered User #439179
Ubuntu User #12911
Website : mlacunzav[DOT]cogia[DOT]net
Email : mlacunza[AT]gmail.com / mario_lacunza[AT]yahoo.es
Blog : mlacunza[DOT]blogspot[DOT]com
Lima - Peru
Aja.... I check my instalation, I updated my Ubuntu to Feisty from Edgy,
so I still have installed some programs working against Python 2.4... I
uninstall and reinstall some libs now!!
But yes, wxversion work again...
Thanks!
···
El jue, 26-04-2007 a las 11:56 -0700, Robin Dunn escribió:
Mario Lacunza wrote:
> El lun, 23-04-2007 a las 13:06 -0700, Robin Dunn escribió:
>> Richard Querin wrote:
>>> I'm also getting a error when I run icepodder (a podcatching client for
>>> linux):
>>>
>>> ------------------
>>> richard@ubuntu:~$ icepodder
>>> Traceback (most recent call last):
>>> File "CastPodderGui.py", line 26, in <module>
>>> import wxversion
>>> ImportError: No module named wxversion
>>> richard@ubuntu:~$
>>> ------------------
>> Install the python-wxversion package.
>>
>
> Hello,
>
> I have installed that package but I receipt the same error, any idea?
>
> Mi configuracion/My config:
>
> Ubuntu Feisty Fawn 7.04
> Linux Kernel 2.6.20-15-386
> Gnome 2.18.1
> Python 2.5.1c1
Does /usr/lib/python2.5/site-pacakges/wxversion.py exist? If not then
try forcing a reinstall of python-wxversion.
The only other cause for the problem I can think of is if icepodder
doesn't use Python 2.5?