Ally
Ally

Reputation: 21

Import issue for ray in Python

When trying to import ray (code: import ray) into a Python script in macOSX Monterey and pycharm I get the following error:

ImportError: dlopen(/Users//PycharmProjects//venv/lib/python3.8/site-packages/ray/thirdparty_files/setproctitle.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_Py_GetArgcArgv'

I have rebuilt the project and installed everything through pip in the venv to try a different route but get the same problem.

I have looked around and found similar import problems with setproctitle but none of the solutions seemed to work for me. I assume that setproctitle is a requirement of ray, and thats where the problems are, but I'm not sure.

Upvotes: 1

Views: 1778

Answers (1)

Ally
Ally

Reputation: 21

I fixed the issue by upgrading from Python 3.8 to 3.9!

Upvotes: 1

Related Questions