ray-project / pygloo

Pygloo provides Python bindings for Gloo.
Apache License 2.0
16 stars 9 forks source link

Error on Arm:ImportError: pygloo-0.2.0-py3.8-linux-aarch64.egg/pygloo.so: undefined symbol: _PyThreadState_Current #23

Closed followtheart closed 1 year ago

followtheart commented 1 year ago

on arm64; pygloo version tag 0.3.0;real version 0.2.0

Processing dependencies for pygloo==0.2.0
Finished processing dependencies for pygloo==0.2.0

compiled by myself from source got this error;Any help?

Python 3.8.10 (default, Nov 14 2022, 12:59:47)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygloo
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python3.8/dist-packages/pygloo-0.2.0-py3.8-linux-aarch64.egg/pygloo.so: undefined symbol: _PyThreadState_Current

In fact,on ubuntu 20.04 wsl,pygloo can be import normally.!

followtheart commented 1 year ago

uninstall python2 libpython2 or change https://github.com/ray-project/pygloo/blob/b19ff138902ec4865f9640359d10a5a565fadf44/setup.py#L80 To bazel_env = dict(os.environ, PYTHON_BIN_PATH=sys.executable) fix the problem!!!