jnana4 at DELETEhotmailCAPS.com
Thu Aug 1 07:19:38 CEST 2002
"Jonathan Hogg" <jonathan at onegoodidea.com> wrote in message
news:B96D8EE2.EDBC%jonathan at onegoodidea.com...
> On 31/7/2002 7:33, in article CwL19.194575$Wt3.153780 at rwcrnsc53, "jano"
> <jnana4 at DELETEhotmailCAPS.com> wrote:
> > Hmm, thanks for your help. I did as you suggested. I do have 2
> > installed, but verified that it was running the correct version (1 is
> > under cygwin, and the other is 2.2 under win2k), and it was running 2.1
> > is correct. And checking sys.path shows that the directory that
> > (/usr/lib/python2.1/site-packages) is in the path. Any other
> Hmmm... It really looks like it's running the wrong one.
> I'd find the script that's failing and run it explicitly with the right
> Python. So something along the lines of:
> % cd path/to/test/script
> % which python
> % python
> Python 2.1 (etc etc etc)
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> sys.path
> ['/usr/local/lib/python2.1', '/usr/lib/python2.1/site-packages']
> >>> import Ft
> >>> Ft.__file__
> >>> ^D
> % python test.py
> Try this out and cut-n-paste us the results.
I feel really stupid. I just realized after doing what you suggested that
the path had /usr/local/lib... and the module it was trying to find was in
/usr/lib... Thanks for your help. It works fine now. Sorry for the wild
More information about the Python-list