mathics-core
mathics-core copied to clipboard
PyPy 3.9 not supported
Description
- Attempting to install
Mathics-omnibusgets stuck atInstalling build dependencies ... |. - Attempting to install
Mathics3raises the following error:
gcc -pthread -DNDEBUG -O2 -fPIC -I/home/hyperswine/.pyenv/versions/pypy3.9-7.3.10/include/pypy3.9 -c lib/recordclass/_litelist.c -o build/temp.linux-x86_64-3.9/lib/recordclass/_litelist.o
lib/recordclass/_litelist.c: In function ‘litelist_resize’:
lib/recordclass/_litelist.c:31:56: error: ‘PyLiteListObject’ {aka ‘PyListObject’} has no member named ‘ob_item
How to Reproduce
- From a popos (ubuntu 22.04) environment with pypy 3.9.15, run
pip install Mathics-omnibus. And get the error in1 - From the same environment, run
pip install Mathics3. And get the error in2
Expected behavior
Not get stuck at installing build dependencies and not raise an error. I did check the recordclass source code, and it seems like the PyLiteListObject struct did not in fact contain ob_item. Unless Im seeing things, that does seem like a problem with that dependency, so I actually don't know why Mathics3 works when its including that dep.
Your Environment
- PopOS 22.04, Intel + Nvidia
- Pypy 3.9.15 through pyenv
- No other mathematica /mathics installs on the system
This is a PyPy problem - see https://github.com/numba/llvmlite/issues/525