Hi,<br><br><div class="gmail_quote">2011/8/25 Serhat Sevki Dincer <span dir="ltr">&lt;<a href="mailto:jfcgauss@gmail.com">jfcgauss@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Start with main.py and mylib.py<br>
with python2.7 that comes with ubuntu 11.04 i386, run<br>
python2.7 main.py<br>
the program runs correctly and a file mylib.pyc is produced.<br>
Then, if I remove or rename mylib.py file, pyc file is sufficient for<br>
main.py to work<br>
python2.7 main.py<br>
still works.<br>
<br>
With pypy 1.6, after I rename mylib.py, and try<br>
pypy main.py<br>
it complains with<br>
Traceback (most recent call last):<br>
  File &quot;app_main.py&quot;, line 53, in run_toplevel<br>
  File &quot;main.py&quot;, line 1, in &lt;module&gt;<br>
    from mylib import myfunc<br>
ImportError: No module named mylib<br>
<br>
Is this an incompatibility with CPython 2.7? Or is it an environment<br>
variable/default setting problem specific to Ubuntu?<br></blockquote><div><br></div><div>This is expected with pypy, see discussion there:</div><div><a href="http://mail.python.org/pipermail/pypy-dev/2011-May/007385.html">http://mail.python.org/pipermail/pypy-dev/2011-May/007385.html</a></div>
</div><div><br></div>-- <br>Amaury Forgeot d&#39;Arc<br>