Skip to content

problem with NumPy 2.0 #9

@jvollme

Description

@jvollme

Hi, i installed the tool as per instructions. Since no specific version for numpy or plotly is given, i installed the respective newest versions.
Turns out that the currecnt pip version of rpe is not compatible with numpy2.0.
when running rpe plot i get the following error:

Plotting genome with bin width  1000 bases and pct ID height  0.5
Traceback (most recent call last):
  File "/home/ww5070/miniconda3/envs/recruitploteasy/bin/rpe", line 8, in <module>
    sys.exit(main())
  File "/home/ww5070/miniconda3/envs/recruitploteasy/lib/python3.9/site-packages/rpe2_code/rpe2_main.py", line 24, in main
    run_plot()
  File "/home/ww5070/miniconda3/envs/recruitploteasy/lib/python3.9/site-packages/rpe2_code/recruit_plot_easy_2_plot.py", line 1233, in run_plot
    mn.load_sample()
  File "/home/ww5070/miniconda3/envs/recruitploteasy/lib/python3.9/site-packages/rpe2_code/recruit_plot_easy_2_plot.py", line 234, in load_sample
    self.y_bins = np.linspace(self.y_min, self.y_max, num = num_ybins, dtype = np.float_)
  File "/home/ww5070/miniconda3/envs/recruitploteasy/lib/python3.9/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.

maybe you could state the explicit versions of plotly and numpy that your current build was tested against?

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