urh icon indicating copy to clipboard operation
urh copied to clipboard

urh error

Open ICantMakeThings opened this issue 1 year ago • 3 comments

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)

ICantMakeThings avatar Jun 22 '24 19:06 ICantMakeThings

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

LoicPZ avatar Jun 27 '24 08:06 LoicPZ

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

andrew-stclair avatar Jul 03 '24 08:07 andrew-stclair

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.

godmar avatar Jul 26 '24 12:07 godmar

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

jopohl avatar Nov 11 '24 16:11 jopohl