beginner's question

Jonathan Hogg jonathan at onegoodidea.com
Wed Jul 31 07:56:02 EDT 2002


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.

Jonathan




More information about the Python-list mailing list