On 17/10/21 3:36 pm, Kostas Christofakis wrote:
Hello guys,
I have a problem installing 2 modules on pypy and contacting you to
find a solution. The issue is this:
I am trying to pip install the python-binance module and discum module
on pypy3, either with a virtual environment or in pypy folder with
root. In both cases I get errors and the installation fails. That is
what happens on the binance case :
...
python/_brotli.cc:2:10: fatal error: Python.h: No such file or
directory
2 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1:
/root/pypy-venv/bin/pypy3 -u -c 'import io, os, sys, setuptools,
tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"';
__file__='"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if
os.path.exists(__file__) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record /tmp/pip-record-dk6qnjak/install-record.txt
--single-version-externally-managed --compile --install-headers
/root/pypy-venv/include/site/python3.7/brotli Check the logs for full
command output.
*Any suggestions or ways to make pypy compatible with those 2 modules ?*
*
*
*Btw I have python-dev and everything installed, the modules get
installed with pip3.9 and python3.9 commands but not on pyp, when i
try pip3.7 or pip installation i just get the above errors .*
Maybe you got your pypy3 from the one in the debian/ubuntu distro, and
did not do "sudo apt install pypy3-dev" (not python3-dev)?
Matti
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev