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

UFuncTypeError: Cannot cast ufunc 'minimum' output from dtype('float64') to dtype('int64') with casting rule 'sam... #6682

Closed
sentry-for-tribler bot opened this issue Dec 24, 2021 · 3 comments · Fixed by #7761
Assignees

Comments

@sentry-for-tribler
Copy link

Sentry Issue: TRIBLER-AF

UFuncTypeError: Cannot cast ufunc 'minimum' output from dtype('float64') to dtype('int64') with casting rule 'same_kind'
  File "pyqtgraph\graphicsItems\PlotDataItem.py", line 1132, in viewRangeChanged
  File "pyqtgraph\graphicsItems\PlotDataItem.py", line 828, in updateItems
  File "pyqtgraph\graphicsItems\PlotDataItem.py", line 1015, in getDisplayDataset
  File "pyqtgraph\functions.py", line 1208, in clip_array
@kozlovsky
Copy link
Contributor

kozlovsky commented Dec 24, 2021

This error is most probably caused by a bug in Numpy, which is used by Pyqtgraph. It was intended to be a deprecation warning, but by mistake, became TypeError instead. The bug was fixed in Numpy 1.21.2

Currently, Tribler does not specify the Numpy version in requirements.txt. Pyqtgraph requires that the Numpy version should be greater than 1.17.0. The current Numpy version installed on the builder machine is 1.19.0.

To fix this, we should specify the exact version of Numpy in Tribler requirements, and the specified version should be greater than 1.21.1.

kozlovsky added a commit to kozlovsky/tribler that referenced this issue Dec 24, 2021
ichorid added a commit that referenced this issue Dec 24, 2021
Fixes #6682 by specifying exact version of Numpy
@ichorid ichorid closed this as completed Dec 25, 2021
@sentry-for-tribler
Copy link
Author

Still occurs in 7.11

Sentry issue: TRIBLER-AW

@xoriole
Copy link
Contributor

xoriole commented May 18, 2022

The issue happens on scrolling the trust graph towards zero on Windows

@xoriole xoriole reopened this May 18, 2022
@xoriole xoriole self-assigned this May 18, 2022
@drew2a drew2a assigned drew2a and unassigned xoriole Dec 11, 2023
@drew2a drew2a added this to the 7.14.0 milestone Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

4 participants