[pypy-issue] [issue1686] Issue with our zipimporter module

Alex Gaynor tracker at bugs.pypy.org
Sat Feb 1 23:15:47 CET 2014


New submission from Alex Gaynor <alex.gaynor at gmail.com>:

To reproduce:

$ wget https://www.dropbox.com/s/ck1sowa0bjobxpd/simulator.pex
...
$ python simulator.pex
hello world
$ pypy simulator.pex
Traceback (most recent call last):
  File "app_main.py", line 72, in run_toplevel
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib-python/2.7/runpy.py", line 162, 
in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib-python/2.7/runpy.py", line 72, in 
_run_code
    exec code in run_globals
  File "simulator.pex/__main__.py", line 24, in <module>
    bootstrap_pex(__entry_point__)
  File 
"/private/tmp/simulator.pex/.bootstrap/_twitter_common_python/pex_bootstrapper.py"
, line 47, in bootstrap_pex
    pex.PEX(entry_point).execute()
  File "/private/tmp/simulator.pex/.bootstrap/_twitter_common_python/pex.py", line 
137, in execute
    self.execute_entry(entry_point, args)
  File "/private/tmp/simulator.pex/.bootstrap/_twitter_common_python/pex.py", line 
167, in execute_entry
    runner(entry_point)
  File "/private/tmp/simulator.pex/.bootstrap/_twitter_common_python/pex.py", line 
184, in execute_module
    runpy.run_module(module_name, run_name='__main__')
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib-python/2.7/runpy.py", line 170, 
in run_module
    mod_name, loader, code, fname = _get_module_details(mod_name)
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib-python/2.7/runpy.py", line 101, 
in _get_module_details
    loader = get_loader(mod_name)
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib-python/2.7/pkgutil.py", line 465, 
in get_loader
    return find_loader(fullname)
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib-python/2.7/pkgutil.py", line 475, 
in find_loader
    for importer in iter_importers(fullname):
  File "/usr/local/Cellar/pypy/2.2.1/libexec/lib-python/2.7/pkgutil.py", line 431, 
in iter_importers
    __import__(pkg)
ImportError: No module named twitter.aurora

https://gist.github.com/alex/c57acc3d53ed95514ccc contains some debugging info 
from the original author

----------
messages: 6517
nosy: agaynor, pypy-issue
priority: bug
status: unread
title: Issue with our zipimporter module

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1686>
________________________________________


More information about the pypy-issue mailing list