New issue 2664: panda3d - PyExc_ImportError https://bitbucket.org/pypy/pypy/issues/2664/panda3d-pyexc_importerror
Stuart Axon: I built panda3d on pypy3.5 nightly - ``` $ git clone https://github.com/panda3d/panda3d $ cd panda3d $ python makepanda/makepanda.py --everything --wheel --no-egl --no-gles --no-gles2 --no-opencv --threads=8 ``` This generates a WHL but it needs to be renamed for pypy to install it: ``` $ pip install ./panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl is not a supported wheel on this platform. ``` This lists compatible platforms: ``` $ python -c "import pip; print('\n'.join(['-'.join(platform) for platform in pip.pep425tags.get_supported()]))" | sort pp3510-none-any pp3510-none-linux_x86_64 pp3510-none-manylinux1_x86_64 pp3510-pypy3_510-linux_x86_64 pp3510-pypy3_510-manylinux1_x86_64 pp3-none-any py350-none-any py3510-none-any py351-none-any py352-none-any py353-none-any py354-none-any py355-none-any py356-none-any py357-none-any py358-none-any py359-none-any py3-none-any py3-none-linux_x86_64 py3-none-manylinux1_x86_64 ``` I made a copy (not fully knowing if the name was a good one) and installed: ``` $ cp panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl panda3d-1.10.0-pp3510-pypy3_510-linux_x86_64.whl $ pip install ./panda3d-1.10.0-pp3510-pypy3_510-linux_x86_64.whl Processing ./panda3d-1.10.0-pp3510-pypy3_510-linux_x86_64.whl Installing collected packages: panda3d Successfully installed panda3d-1.10.0 ``` And then tried importing ``` $ python -c "from panda3d.core import *" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: /home/stu/.virtualenvs/pypy-nightly-py3.5/site-packages/panda3d/libp3interrogatedb.so.1.10: undefined symbol: PyExc_ImportError ``` The same PyExc_ImportError happens when trying to import any of the Panda3D native libraries that were built. _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue