mathics-core icon indicating copy to clipboard operation
mathics-core copied to clipboard

PyPy 3.9 not supported

Open hyperswine opened this issue 3 years ago • 1 comments

Description

  1. Attempting to install Mathics-omnibus gets stuck at Installing build dependencies ... |.
  2. Attempting to install Mathics3 raises 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

  1. From a popos (ubuntu 22.04) environment with pypy 3.9.15, run pip install Mathics-omnibus. And get the error in 1
  2. From the same environment, run pip install Mathics3. And get the error in 2

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

hyperswine avatar Dec 17 '22 10:12 hyperswine

This is a PyPy problem - see https://github.com/numba/llvmlite/issues/525

rocky avatar Dec 17 '22 11:12 rocky