ArnaoutLab / diversity

Partitioned frequency- and similarity-sensitive diversity in Python
MIT License
6 stars 1 forks source link

setproctitle can cause problem loading ray #69

Closed chhotii-alex closed 2 weeks ago

chhotii-alex commented 10 months ago

ray depends on setproctitle and this is causing an error on certain systems. Explicitly importing setproctitle may fix this. This is a known ray thing; Google search for what's said about this problem as a first step.

IosiaLectus commented 10 months ago

As requested:

Traceback (most recent call last): File "", line 1, in File "/Users/jcouch/Code/environments/moore_env/lib/python3.8/site-packages/greylock/init.py", line 9, in from greylock.metacommunity import Metacommunity File "/Users/jcouch/Code/environments/moore_env/lib/python3.8/site-packages/greylock/metacommunity.py", line 17, in from greylock.similarity import make_similarity File "/Users/jcouch/Code/environments/moore_env/lib/python3.8/site-packages/greylock/similarity.py", line 32, in from ray import remote, get, put File "/Users/jcouch/Code/environments/moore_env/lib/python3.8/site-packages/ray/init.py", line 84, in import ray._raylet # noqa: E402 File "python/ray/_raylet.pyx", line 169, in init ray._raylet File "/Users/jcouch/Code/environments/moore_env/lib/python3.8/site-packages/ray/exceptions.py", line 17, in from ray.util.annotations import DeveloperAPI, PublicAPI File "/Users/jcouch/Code/environments/moore_env/lib/python3.8/site-packages/ray/util/init.py", line 8, in from ray.util import rpdb as pdb File "/Users/jcouch/Code/environments/moore_env/lib/python3.8/site-packages/ray/util/rpdb.py", line 20, in import setproctitle ImportError: dlopen(/Users/jcouch/Code/environments/moore_env/lib/python3.8/site-packages/ray/thirdparty_files/setproctitle.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_Py_GetArgcArgv'

chhotii-alex commented 2 weeks ago

Josiah was using a really old version of pip; could that explain why he has been the only one to run into this?

Anyway, not reproducible, and making ray optional makes this much less our problem.