[Tutor] Can not run under python 2.6?

Lie Ryan lie.1296 at gmail.com
Wed Apr 29 14:02:46 CEST 2009


Jianchun Zhou wrote:
> Hi, there:
> 
> I am new to python, and now I got a trouble:
> 
> I have an application named canola, it is written under python 2.5, and 
> can run normally under python 2.5
> 
> But when it comes under python 2.6, problem up, it says:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-
> packages/terra/core/plugin_manager.py", line 151, in _load_plugins
>     classes = plg.load()
>   File "/usr/lib/python2.6/site-packages/terra/core/plugin_manager.py", 
> line 94, in load
>     mod = self._ldr.load()
>   File "/usr/lib/python2.6/site-packages/terra/core/module_loader.py", 
> line 42, in load
>     mod = __import__(modpath, fromlist=[mod_name])
> ImportError: Import by filename is not supported.
> 
> Any body any idea what should I do?
> 

Maybe your problem is related to this: 
http://mail.python.org/pipermail/python-dev/2008-January/076024.html





More information about the Tutor mailing list