beginner's question

jano 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
versions
> > installed, but verified that it was running the correct version (1 is
2.1
> > under cygwin, and the other is 2.2 under win2k), and it was running 2.1
as
> > is correct.  And checking sys.path shows that the directory that
contains Ft
> > (/usr/lib/python2.1/site-packages) is in the path.  Any other
suggestions?
>
> 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
> /usr/bin/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__
> '/usr/lib/python2.1/site-packages/Ft/__init__.pyc'
> >>> ^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
goose chase.

jano.





More information about the Python-list mailing list