ray-project / ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
34.26k stars 5.81k forks source link

What are system requirements for building on Mac OSX #7430

Open pranasblk opened 4 years ago

pranasblk commented 4 years ago

What is your question?

I've followed install guide to compile from sources, but getting incorrect binaries compiled. It would be nice to get some initial assistance and update install guide.

` (base) Imin:python pranas$ ipython Python 3.6.5 (default, Apr 17 2018, 11:06:50) Type 'copyright', 'credits' or 'license' for more information IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import ray

OSError Traceback (most recent call last)

in ----> 1 import ray ~/tmp/ray/python/ray/__init__.py in 38 import ctypes 39 from ctypes import CDLL ---> 40 CDLL(so_path, ctypes.RTLD_GLOBAL) 41 42 import ray._raylet # noqa: E402 /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error) 346 347 if handle is None: --> 348 self._handle = _dlopen(self._name, mode) 349 else: 350 self._handle = handle OSError: dlopen(/Users/pranas/tmp/ray/python/ray/_raylet.so, 10): Symbol not found: _PyInterpreterState_GetID Referenced from: /Users/pranas/tmp/ray/python/ray/_raylet.so Expected in: flat namespace in /Users/pranas/tmp/ray/python/ray/_raylet.so ` *Ray version and other system information (Python version, TensorFlow version, OS):* ** Python 3.6.5 (miniconda3) ** 18.7.0 Darwin Kernel Version 18.7.0: ** commit 580b017b431ef71ab56164464afcf7d042785a90 (HEAD -> master, origin/master, origin/HEAD)
pengzhenghao commented 4 years ago

Did you run ray/ci/travis/install-bazel.sh before installing ray?

I have met a similar problem before: https://github.com/ray-project/ray/issues/4727#issuecomment-488767829

pranasblk commented 4 years ago

Yes

On Wed., 4 Mar. 2020, 1:42 pm Peng Zhenghao, notifications@github.com wrote:

Did you run ray/ci/travis/install-bazel.sh before installing ray?

I have met a similar problem before: #4727 (comment) https://github.com/ray-project/ray/issues/4727#issuecomment-488767829

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ray-project/ray/issues/7430?email_source=notifications&email_token=AA4JY4RQT7Q35ATRNND6I63RFW5YTA5CNFSM4LAUKXM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENWDRDQ#issuecomment-594294926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4JY4VCRNXVJ2WSCLT7CGLRFW5YTANCNFSM4LAUKXMQ .

gopiprasanthpotipireddy commented 3 years ago

Tried these instructions: But Same Error again

rm -rf python/ray/thirdparty_files/
python3 -m pip install setproctitle

Traceback (most recent call last): File "", line 1, in File "/Library/Python/3.7/site-packages/ray/init.py", line 63, in

import ray._raylet # noqa: E402 File "python/ray/_raylet.pyx", line 20, in init ray._raylet ImportError: dlopen(/Library/Python/3.7/site-packages/ray/thirdparty_files/setproctitle.cpython-37m-darwin.so, 2): Symbol not found: _Py_GetArgcArgv Referenced from: /Library/Python/3.7/site-packages/ray/thirdparty_files/setproctitle.cpython-37m-darwin.so Expected in: flat namespace in /Library/Python/3.7/site-packages/ray/thirdparty_files/setproctitle.cpython-37m-darwin.so

jchemp commented 3 years ago

Same error as above^