Closed oberstet closed 10 years ago
I haven't the err dump around anymore, but it was missing common
something module when starting up. It might be the zip_safe
thing that did the trick. But yeah, I understand: no unec. deps. PyPy 2.1 on Ubuntu 12.04 LTS 64 bit btw.
When did you see this error approximately? The way import work was reorganized not long ago, so now it shouldn't fail with YAJL absent, for example. And some more time ago (around 0.8.0) all the backends used to be missing from PyPI package at all. It all should be OK by now. Can you check?
Here is a log:
[oberstet@tvd_build_txpypy ~/scm/wsperf]$ ~/pypy-c-jit-68238-4369d6c2378e-freebsd64/bin/easy_install ijson
Searching for ijson
Reading https://pypi.python.org/simple/ijson/
Best match: ijson 1.1
Downloading https://pypi.python.org/packages/source/i/ijson/ijson-1.1.tar.gz#md5=e2f40ad4f1d2c0e35eeb4f3040947539
Processing ijson-1.1.tar.gz
Writing /tmp/easy_install-J9jrqh/ijson-1.1/setup.cfg
Running ijson-1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-J9jrqh/ijson-1.1/egg-dist-tmp-F2R_9V
zip_safe flag not set; analyzing archive contents...
Adding ijson 1.1 to easy-install.pth file
Installed /home/oberstet/pypy-c-jit-68238-4369d6c2378e-freebsd64/site-packages/ijson-1.1-py2.7.egg
Processing dependencies for ijson
Finished processing dependencies for ijson
[oberstet@tvd_build_txpypy ~/scm/wsperf]$ ~/pypy-c-jit-68238-4369d6c2378e-freebsd64/bin/pypy wsperf.py --workers 1 --skiprun
Traceback (most recent call last):
File "app_main.py", line 72, in run_toplevel
File "wsperf.py", line 6, in <module>
import analyze
File "/home/oberstet/scm/wsperf/analyze.py", line 4, in <module>
import ijson.backends.python as ijson
ZipImportError: cannot import name 'common'
[oberstet@tvd_build_txpypy ~/scm/wsperf]$
Hi! Can you explain how PyPy and setuptools are related? I was running ijson under PyPy just fine (in fact, PyPy is the reason for having a Python backend at all). I'd rather avoid setuptools unless there is a very good reason to use it.