Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform toolchain related error in ray installing source #44567

Closed
guxiaobo opened this issue Apr 8, 2024 · 1 comment
Closed

platform toolchain related error in ray installing source #44567

guxiaobo opened this issue Apr 8, 2024 · 1 comment
Labels
bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component)

Comments

@guxiaobo
Copy link

guxiaobo commented Apr 8, 2024

What happened + What you expected to happen

(base) guxiaobo@guxiaobodebijibendiannao ray-2.10.0 % pip install -e . --verbose
Using pip 24.0 from /opt/anaconda3/lib/python3.11/site-packages/pip (python 3.11)
Obtaining file:///Users/guxiaobo/Documents/GitHub/ray-2.10.0
ERROR: file:///Users/guxiaobo/Documents/GitHub/ray-2.10.0 does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
(base) guxiaobo@guxiaobodebijibendiannao ray-2.10.0 % cd python
(base) guxiaobo@guxiaobodebijibendiannao python % pip install -e . --verbose
Using pip 24.0 from /opt/anaconda3/lib/python3.11/site-packages/pip (python 3.11)
Obtaining file:///Users/guxiaobo/Documents/GitHub/ray-2.10.0/python
Running command python setup.py egg_info
/opt/anaconda3/lib/python3.11/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

      ********************************************************************************
      Requirements should be satisfied by a PEP 517 installer.
      If you are using pip, you can try `pip install --use-pep517`.
      ********************************************************************************

!!
dist.fetch_build_eggs(dist.setup_requires)
running egg_info
creating /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info
writing /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info/dependency_links.txt
writing entry points to /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info/entry_points.txt
writing requirements to /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info/requires.txt
writing top-level names to /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info/top_level.txt
writing manifest file '/private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info/SOURCES.txt'
reading manifest file '/private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file '/private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-pip-egg-info-g23sc711/ray.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: click>=7.0 in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (8.1.7)
Requirement already satisfied: filelock in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (3.13.1)
Requirement already satisfied: jsonschema in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (4.19.2)
Requirement already satisfied: msgpack<2.0.0,>=1.0.0 in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (1.0.3)
Requirement already satisfied: packaging in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (23.2)
Requirement already satisfied: protobuf!=3.19.5,>=3.15.3 in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (3.20.3)
Requirement already satisfied: pyyaml in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (6.0.1)
Requirement already satisfied: aiosignal in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (1.2.0)
Requirement already satisfied: frozenlist in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (1.4.0)
Requirement already satisfied: requests in /opt/anaconda3/lib/python3.11/site-packages (from ray==2.10.0) (2.31.0)
Requirement already satisfied: attrs>=22.2.0 in /opt/anaconda3/lib/python3.11/site-packages (from jsonschema->ray==2.10.0) (23.1.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /opt/anaconda3/lib/python3.11/site-packages (from jsonschema->ray==2.10.0) (2023.7.1)
Requirement already satisfied: referencing>=0.28.4 in /opt/anaconda3/lib/python3.11/site-packages (from jsonschema->ray==2.10.0) (0.30.2)
Requirement already satisfied: rpds-py>=0.7.1 in /opt/anaconda3/lib/python3.11/site-packages (from jsonschema->ray==2.10.0) (0.10.6)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/anaconda3/lib/python3.11/site-packages (from requests->ray==2.10.0) (2.0.4)
Requirement already satisfied: idna<4,>=2.5 in /opt/anaconda3/lib/python3.11/site-packages (from requests->ray==2.10.0) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/anaconda3/lib/python3.11/site-packages (from requests->ray==2.10.0) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in /opt/anaconda3/lib/python3.11/site-packages (from requests->ray==2.10.0) (2024.2.2)
Installing collected packages: ray
Attempting uninstall: ray
Found existing installation: ray 2.10.0
Uninstalling ray-2.10.0:
Removing file or directory /opt/anaconda3/bin/ray
Removing file or directory /opt/anaconda3/bin/rllib
Removing file or directory /opt/anaconda3/bin/serve
Removing file or directory /opt/anaconda3/bin/tune
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray-2.10.0.dist-info/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/init.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/pycache/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/_private/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/_raylet.pxd
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/_raylet.pyi
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/_raylet.so
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/_version.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/actor.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/air/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/autoscaler/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/client_builder.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/cloudpickle/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/cluster_utils.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/core/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/cross_language.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/dag/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/dashboard/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/data/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/exceptions.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/experimental/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/includes/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/internal/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/jars/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/job_config.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/job_submission/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/nightly-wheels.yaml
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/py.typed
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/remote_function.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/rllib/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/runtime_context.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/runtime_env/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/scripts/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/serve/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/setup-dev.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/thirdparty_files/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/train/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/tune/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/types.py
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/util/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/widgets/
Removing file or directory /opt/anaconda3/lib/python3.11/site-packages/ray/workflow/
Successfully uninstalled ray-2.10.0
Running setup.py develop for ray
Running command python setup.py develop
/opt/anaconda3/lib/python3.11/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
running develop
/opt/anaconda3/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
/opt/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running egg_info
writing ray.egg-info/PKG-INFO
writing dependency_links to ray.egg-info/dependency_links.txt
writing entry points to ray.egg-info/entry_points.txt
writing requirements to ray.egg-info/requires.txt
writing top-level names to ray.egg-info/top_level.txt
reading manifest file 'ray.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'ray.egg-info/SOURCES.txt'
running build_ext
WARNING: Ignoring invalid distribution ~ay (/opt/anaconda3/lib/python3.11/site-packages)
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/thirdparty_files/colorama-0.4.6.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/thirdparty_files/setproctitle.cpython-311-darwin.so already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/thirdparty_files/colorama already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/thirdparty_files/setproctitle-1.2.2.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/thirdparty_files/psutil-5.9.8.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/thirdparty_files/psutil already exists. Specify --upgrade to force replacement.
WARNING: Ignoring invalid distribution ~ay (/opt/anaconda3/lib/python3.11/site-packages)
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/aiohttp already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/aiosignal-1.3.1.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/attrs already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/aiohttp-3.9.3.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/frozenlist already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/multidict-6.0.5.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/attrs-23.2.0.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/idna already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/yarl-1.9.4.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/multidict already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/attr already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/frozenlist-1.4.1.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/yarl already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/idna-3.6.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/ray/_private/runtime_env/agent/thirdparty_files/aiosignal already exists. Specify --upgrade to force replacement.
Computing main repo mapping:
DEBUG: /Users/guxiaobo/Documents/GitHub/ray-2.10.0/bazel/ray_deps_setup.bzl:67:14: No implicit mirrors used because urls were explicitly provided
DEBUG: /Users/guxiaobo/Documents/GitHub/ray-2.10.0/bazel/ray_deps_setup.bzl:67:14: No implicit mirrors used because urls were explicitly provided
Loading:
Loading: 0 packages loaded
Analyzing: 2 targets (2 packages loaded, 0 targets configured)
Analyzing: 2 targets (2 packages loaded, 0 targets configured)
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
ERROR: /private/var/tmp/_bazel_guxiaobo/d275183569699e5f6e49e8ef5050c6a5/external/com_google_protobuf/src/google/protobuf/BUILD.bazel:129:8: @@com_google_protobuf//src/google/protobuf:gen_wkt_cc_sources: no such attribute 'exec_tools' in 'genrule' rule (did you mean 'executable'?)
ERROR: /private/var/tmp/_bazel_guxiaobo/d275183569699e5f6e49e8ef5050c6a5/external/com_google_protobuf/BUILD.bazel:82:6: Target '@@com_google_protobuf//src/google/protobuf:wrappers_proto' contains an error and its package is in error and referenced by '@@com_google_protobuf//:wrappers_proto'
ERROR: Analysis of target '//:ray_pkg' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.506s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED:
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "/Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/setup.py", line 754, in <module>
    setuptools.setup(
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
    super().run_command(command)
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/command/develop.py", line 109, in install_for_development
    self.run_command('build_ext')
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
    super().run_command(command)
  File "/opt/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/setup.py", line 742, in run
    return pip_run(self)
           ^^^^^^^^^^^^^
  File "/Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/setup.py", line 646, in pip_run
    build(True, BUILD_JAVA, True)
  File "/Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/setup.py", line 594, in build
    return bazel_invoke(
           ^^^^^^^^^^^^^
  File "/Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/setup.py", line 373, in bazel_invoke
    result = invoker([cmd] + cmdline, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bazel', 'build', '--verbose_failures', '--', '//:ray_pkg', '//cpp:ray_cpp_pkg']' returned non-zero exit status 1.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /opt/anaconda3/bin/python -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
#   import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
#   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
#     manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
    import setuptools
except ImportError as error:
    print(
        "ERROR: Can not execute `setup.py` since setuptools is not available in "
        "the build environment.",
        file=sys.stderr,
    )
    sys.exit(1)

__file__ = %r
sys.argv[0] = __file__

if os.path.exists(__file__):
    filename = __file__
    with tokenize.open(__file__) as f:
        setup_py_code = f.read()
else:
    filename = "<auto-generated setuptools caller>"
    setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: /Users/guxiaobo/Documents/GitHub/ray-2.10.0/python/

Rolling back uninstall of ray
Moving to /opt/anaconda3/bin/ray
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-rxykoowa/ray
Moving to /opt/anaconda3/bin/rllib
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-rxykoowa/rllib
Moving to /opt/anaconda3/bin/serve
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-rxykoowa/serve
Moving to /opt/anaconda3/bin/tune
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-rxykoowa/tune
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray-2.10.0.dist-info/
from /opt/anaconda3/lib/python3.11/site-packages/ay-2.10.0.dist-info
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/init.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/init.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/pycache/
from /opt/anaconda3/lib/python3.11/site-packages/ray/
pycache_
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/_private/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~private
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/_raylet.pxd
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/_raylet.pxd
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/_raylet.pyi
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/_raylet.pyi
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/_raylet.so
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/_raylet.so
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/_version.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/_version.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/actor.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/actor.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/air/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~ir
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/autoscaler/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~utoscaler
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/client_builder.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/client_builder.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/cloudpickle/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~loudpickle
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/cluster_utils.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/cluster_utils.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/core/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~ore
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/cross_language.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/cross_language.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/dag/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~ag
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/dashboard/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~ashboard
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/data/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~ata
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/exceptions.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/exceptions.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/experimental/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~xperimental
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/includes/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~ncludes
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/internal/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~nternal
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/jars/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~ars
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/job_config.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/job_config.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/job_submission/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~ob_submission
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/nightly-wheels.yaml
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/nightly-wheels.yaml
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/py.typed
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/py.typed
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/remote_function.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/remote_function.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/rllib/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~llib
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/runtime_context.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/runtime_context.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/runtime_env/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~untime_env
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/scripts/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~cripts
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/serve/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~erve
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/setup-dev.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/setup-dev.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/thirdparty_files/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~hirdparty_files
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/train/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~rain
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/tune/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~une
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/types.py
from /private/var/folders/br/mq4__sj9111fd4h_722ggdtw0000gn/T/pip-uninstall-cqpon9rq/types.py
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/util/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~til
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/widgets/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~idgets
Moving to /opt/anaconda3/lib/python3.11/site-packages/ray/workflow/
from /opt/anaconda3/lib/python3.11/site-packages/ray/~orkflow
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Versions / Dependencies

2.10.0 on MacOS 14.4.1 with M3 chip, python 3.11.7 with anaconda navigator 2.5.4, Homebrew 4.2.16, bazel 7.1.1-homebrew

Reproduction script

I follow the steps from https://docs.ray.io/en/latest/ray-contribute/development.html
It seems like a Bazel related error, do we have to use a specific version of Bazel to build Ray?

Issue Severity

High: It blocks me from completing my task.

@guxiaobo guxiaobo added bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Apr 8, 2024
@guxiaobo
Copy link
Author

guxiaobo commented Apr 9, 2024

I downgrade bazel to version 6.5.0, but come to the new error as following:
ERROR: /private/var/tmp/_bazel_guxiaobo/d275183569699e5f6e49e8ef5050c6a5/external/bazel_tools/platforms/BUILD:89:6: in alias rule @bazel_tools//platforms:windows: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See bazelbuild/bazel#8622 for details.
ERROR: /private/var/tmp/_bazel_guxiaobo/d275183569699e5f6e49e8ef5050c6a5/external/bazel_tools/platforms/BUILD:89:6: Analysis of target '@bazel_tools//platforms:windows' failed
ERROR: /private/var/tmp/_bazel_guxiaobo/d275183569699e5f6e49e8ef5050c6a5/external/com_google_protobuf/BUILD.bazel:168:10: While resolving toolchains for target @com_google_protobuf//:protoc: invalid registered toolchain '@bazel_skylib//toolchains/unittest:cmd_toolchain':
ERROR: Analysis of target '//:ray_pkg' failed; build aborted:
INFO: Elapsed time: 18.443s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (55 packages loaded, 1903 targets configured)

I am using the MacOS arm64 platform, the sources target windows, is this a bug?

@guxiaobo guxiaobo changed the title Build ray from source failed platform toolchain related error in ray installing source Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component)
Projects
None yet
Development

No branches or pull requests

1 participant