[Tutor] Import Statement Failing With IDLE?

Orri Ganel singingxduck at gmail.com
Wed Dec 8 03:13:41 CET 2004


Hello all, 
I recently downloaded Psyco and put it in the site-packages folder. 
Now, when i tried to use it to optimize a program, IDLE says it can't
find it:

Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************
    
IDLE 1.1      
>>> import os
>>> os.chdir(r"c:\python24\lib\site-packes\psyco-1.3")
>>> import psyco

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in -toplevel-
    import psyco
ImportError: No module named psyco

... However, when using the Command Prompt:

Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'C:\\Python24'
>>> os.chdir(r"c:\python24\lib\site-packages\psyco-1.3")
>>> import psyco
>>>

Anyone know why this is? . . . 

Thanks in advance,
Orri

-- 
Email: dragonfirebane at aol.com
AIM: singingxduck
Programming Python for the fun of it.


More information about the Tutor mailing list