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

Unable to run pipx version: "ValueError: numpy.dtype size changed, may indicate binary incompatibility." #1144

Closed
zt64 opened this issue Nov 9, 2024 · 3 comments · Fixed by #1145

Comments

@zt64
Copy link

zt64 commented Nov 9, 2024

Expected Behavior

urh should launch the GUI.

Actual Behavior
Traceback (most recent call last):
  File "/home/psi/.local/bin/urh", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/psi/.local/share/pipx/venvs/urh/lib/python3.12/site-packages/urh/main.py", line 105, in main
    import urh.cythonext.signal_functions
  File "src/urh/cythonext/signal_functions.pyx", line 1, in init urh.cythonext.signal_functions
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Steps To Reproduce
  1. Install urh with pipx install urh
  2. Run urh in the terminal
  3. Error occurs
Platform Specifications
  • OS: Arch Linux
  • URH version: 2.9.6
  • Python version: 3.12.7
  • Installed via pipx
@andynoack
Copy link
Collaborator

Hey, this seems to be a common issue. Downgrading the numpy version seems to be the way to go, see e.g. Sinaptik-AI/pandas-ai#1251

@denizea
Copy link

denizea commented Nov 10, 2024

Following helped me to install: pipx install urh --pip-args="numpy==1.26.4"

@jopohl
Copy link
Owner

jopohl commented Nov 11, 2024

Thanks for reporting. Fixed with v2.9.8, now a regular pipx install urh works.

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 a pull request may close this issue.

4 participants