[pypy-issue] [issue1401] ImportError: No module named ...

klankschap tracker at bugs.pypy.org
Mon Feb 18 11:28:10 CET 2013

New submission from klankschap <vm at klankschap.nl>:

pypy fails to recognize a module with only .pyc files in it.

try this:

mkdir module
touch module/__init__.py
touch module/one.py
python -c "from module import one"
rm module/*.py
python -c "from module import one"
python -c "import module.one"

if you replace 'python' by 'pypy', it will fail as soon as the module folder only 
has *.pyc files in it.

Do you always need the .py files in the modules for pypy to run properly?


messages: 5346
nosy: klankschap, pypy-issue
priority: critical
release: 2.0
status: unread
title: ImportError: No module named ...

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list