Skip to content

Incompatible with ray 2.52.1 #1

@JohannesKersting

Description

@JohannesKersting

Hello :)

Thank you for providing this great tool!

I tried to install NetMedPy without specifying software versions for the dependencies:

name: netmedpy
channels:
  - conda-forge
  - bioconda
  - defaults
dependencies:
  - conda-forge::python=3.11
  - pip
  - pip:
    - jupyterlab
    - networkx
    - seaborn
    - matplotlib
    - numpy
    - pandas
    - ray
    - scipy
    - netmedpy==0.1.171

When running the provided basic example, this resulted in the following error:

Traceback (most recent call last):
  File "/home/johannes/workspace/NetMedPy/examples/Basic_example.py", line 53, in <module>
    import netmedpy
  File "/home/johannes/miniforge3/envs/netmedpy/lib/python3.11/site-packages/netmedpy/__init__.py", line 5, in <module>
    from .NetMedPy import (
  File "/home/johannes/miniforge3/envs/netmedpy/lib/python3.11/site-packages/netmedpy/NetMedPy.py", line 84, in <module>
    from ray._private.utils import get_ray_temp_dir
ImportError: cannot import name 'get_ray_temp_dir' from 'ray._private.utils' (/home/johannes/miniforge3/envs/netmedpy/lib/python3.11/site-packages/ray/_private/utils.py)

Apparently, the newest version of ray (v2.52.1) no longer provides that function.

Fixing the ray version to 2.20.0 (like you do in the environment file in the GitHub repo), solves the issue.

I just wanted to let you know in case you'd like to update your code to make it compatible with the most recent version of ray or add software version restrictions to the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions