[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?

.F

----------
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>
<https://bugs.pypy.org/issue1401>
________________________________________


More information about the pypy-issue mailing list