[pypy-dev] Incompatibility in binary distribution of libraries?

Amaury Forgeot d'Arc amauryfa at gmail.com
Thu Aug 25 19:40:54 CEST 2011


Hi,

2011/8/25 Serhat Sevki Dincer <jfcgauss at gmail.com>

> Start with main.py and mylib.py
> with python2.7 that comes with ubuntu 11.04 i386, run
> python2.7 main.py
> the program runs correctly and a file mylib.pyc is produced.
> Then, if I remove or rename mylib.py file, pyc file is sufficient for
> main.py to work
> python2.7 main.py
> still works.
>
> With pypy 1.6, after I rename mylib.py, and try
> pypy main.py
> it complains with
> Traceback (most recent call last):
>  File "app_main.py", line 53, in run_toplevel
>  File "main.py", line 1, in <module>
>    from mylib import myfunc
> ImportError: No module named mylib
>
> Is this an incompatibility with CPython 2.7? Or is it an environment
> variable/default setting problem specific to Ubuntu?
>

This is expected with pypy, see discussion there:
http://mail.python.org/pipermail/pypy-dev/2011-May/007385.html

-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110825/86923d9c/attachment.html>


More information about the pypy-dev mailing list