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

urh error #1123

Open
ICantMakeThings opened this issue Jun 22, 2024 · 3 comments
Open

urh error #1123

ICantMakeThings opened this issue Jun 22, 2024 · 3 comments

Comments

@ICantMakeThings
Copy link

Expected Behavior

to work

Actual Behavior

Traceback (most recent call last):
File "/home/nulli/.local/bin/urh", line 8, in
sys.exit(main())
^^^^^^
File "/home/nulli/.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

reinstalling numpy does not work

Steps To Reproduce

pipx install urh
pipx run urh
error.

Platform Specifications
  • OS: ubuntu 24.04
  • URH version: newest
  • Python version: 3.12.3
  • Installed via pipx (pip gives some error i cant fix, numpy installed with pipx too)
@LoicPZ
Copy link

LoicPZ commented Jun 27, 2024

try this
pipx runpip urh install numpy==1.26.4
pipx runpip urh install setuptools

@andrew-stclair
Copy link

That worked for me, though setuptools was already installed.

TL;DR just needed to install numpy==1.26.4 instead of numpy==2.0.0

@godmar
Copy link

godmar commented Jul 26, 2024

Without setuptools, on recent versions of Python, you get

ModuleNotFoundError: No module named 'distutils'

I believe the numpy dependency could be specified in requirements.txt perhaps.

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

No branches or pull requests

4 participants