I'm currently working on two wxPython
applications – one I'm developing myself, and the other is Open
Stereo, described by Carlos Grohmann on this list last week. Once
again, I'm baffled (a rather common state for me, unfortunately)
I have tested both applications on Ubuntu, Kubuntu, and LXCE in the 11.10 versions, and they both worked. In addition, Open Stereo works on Python 2.7 in my Windows 7 partition.
Recently I upgraded to Ubuntu 12.04, including the KDE version. At that point, Open Stereo ceased working. Opening from the command line, I got the following error message:
...from wx.lib.wordwrap import wordwrap
ImportError: No module named wordwrap
The relevant modules imported in the offending source file are:
import wx
import os, sys, csv
from wx.lib.pubsub import Publisher as pub
import types as types
from wx.lib.wordwrap import wordwrap
import matplotlib as mpl
Wondering if somehow wxPython had been corrupted, I transferred the line
from wx.lib.wordwrap import wordwrap
to my own application. It started up with no errors!
Both applications are in adjacent directories in my /home/Documents?WorkRelated folder, so I don't see any path issues. I have the zipped version of both Open Stereo and the current wxPython in my Downloads folder; I reinstalled both of them, but nothing changed.
Sorry for the long-winded text, but I'm stymied. How can a module from the same toolkit be nonexistent for one application yet available for another one right next door?
It still works on Windows, btw, but I really don't want to shift my work over unless I absolutely have to. Any hints would be appreciated. Right now I feel like the blindfolded kid searching for the pinata.
'/usr/lib/python2.7/dist-packages/wx-2.6-gtk2-unicode', while mine starts with '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'. I didn't even know I had 2.6 installed.
Now I need to figure out how to change it!
Thanks, Mike, you hit that one on the nose! The applications call different paths -- Open Stereo's path ends with'/usr/lib/python2.7/dist-packages/wx-2.6-gtk2-unicode', while mine starts with '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'. I didn't even know I had 2.6 installed.
Now I need to figure out how to change it!