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

Fix numpy version in requirements.txt to be compatible with ray #2078

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bschroedermi
Copy link

The quick start currently produces an error (see message below) -- this is due to the most recent version of numpy being installed, which is incompatible with the version of ray used in RecBole. Fixing numpy to be <=1.23.5 fixes the issue

(.venv) bschroeder@FTG291XHF4 RecBole % python run_recbole.py
/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
Traceback (most recent call last):
  File "/Users/bschroeder/RecBole/run_recbole.py", line 12, in <module>
    from recbole.quick_start import run
  File "/Users/bschroeder/RecBole/recbole/quick_start/__init__.py", line 1, in <module>
    from recbole.quick_start.quick_start import (
  File "/Users/bschroeder/RecBole/recbole/quick_start/quick_start.py", line 20, in <module>
    from ray import tune
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/__init__.py", line 2, in <module>
    from ray.tune.tune import run_experiments, run
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/tune.py", line 31, in <module>
    from ray.tune.analysis import ExperimentAnalysis
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/analysis/__init__.py", line 1, in <module>
    from ray.tune.analysis.experiment_analysis import ExperimentAnalysis
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/analysis/experiment_analysis.py", line 42, in <module>
    from ray.tune.experiment import Trial
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/experiment/__init__.py", line 2, in <module>
    from ray.tune.experiment.trial import Trial
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/experiment/trial.py", line 33, in <module>
    from ray.tune.logger import NoopLogger
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/logger/__init__.py", line 10, in <module>
    from ray.tune.logger.tensorboardx import TBXLogger, TBXLoggerCallback
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/logger/tensorboardx.py", line 31, in <module>
    class TBXLogger(Logger):
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/ray/tune/logger/tensorboardx.py", line 41, in TBXLogger
    VALID_NP_HPARAMS = (np.bool8, np.float32, np.float64, np.int32, np.int64)
  File "/Users/bschroeder/RecBole/.venv/lib/python3.9/site-packages/numpy/__init__.py", line 410, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'bool8'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants