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

tmscore and iminuit versioning issue - pip install 'iminuit<2' #9

Open
sakethramakrishnan opened this issue Apr 2, 2024 · 0 comments

Comments

@sakethramakrishnan
Copy link

The tmscore library expects to work with iminuit 1.x.x version. When I try to run tmscore with iminuit 2.2.x version, it is giving an error saying wrong constructor being called. However, when I try to install iminuit in my ubuntu 22.04 LTS using command pip install 'iminuit<2', I am getting the following installation error.

I understand this is iminuit problem. Please help me with the right installation combination for python 3.10 on ubuntu to use tmscore.

x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWARNINGMSG=1 -DROOT_Math_VecTypes=1 -DMATH_NO_PLUGIN_MANAGER=1 -I/tmp/pip-install-a15m92e5/iminuit_b4bcb3f0bf8f40debf078e4b0407f073/extern/root/math/minuit2/inc -I/home/couchbucks/Documents/saketh/cpe/env/lib/python3.10/site-packages/numpy/core/include -I/home/couchbucks/Documents/saketh/cpe/env/include -I/usr/include/python3.10 -c /tmp/pip-install-a15m92e5/iminuit_b4bcb3f0bf8f40debf078e4b0407f073/src/iminuit/_libiminuit.cpp -o build/temp.linux-x86_64-3.10/tmp/pip-install-a15m92e5/iminuit_b4bcb3f0bf8f40debf078e4b0407f073/src/iminuit/_libiminuit.o -std=c++11 -Wno-shorten-64-to-32 -Wno-parentheses -Wno-unused-variable -Wno-sign-compare -Wno-cpp -Wno-deprecated-declarations
      /tmp/pip-install-a15m92e5/iminuit_b4bcb3f0bf8f40debf078e4b0407f073/src/iminuit/_libiminuit.cpp: In function ‘PyObject* __Pyx_Coroutine_Send(PyObject*, PyObject*)’:
      /tmp/pip-install-a15m92e5/iminuit_b4bcb3f0bf8f40debf078e4b0407f073/src/iminuit/_libiminuit.cpp:36587:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
      36587 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
            |                   ^~~~~~~~~~~
            |                   _PyGen_yf
      /tmp/pip-install-a15m92e5/iminuit_b4bcb3f0bf8f40debf078e4b0407f073/src/iminuit/_libiminuit.cpp:36592:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
      36592 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
            |                   ^~~~~~~~~~~
            |                   _PyGen_yf
      /tmp/pip-install-a15m92e5/iminuit_b4bcb3f0bf8f40debf078e4b0407f073/src/iminuit/_libiminuit.cpp: In function ‘PyObject* __Pyx_Generator_Next(PyObject*)’:
      /tmp/pip-install-a15m92e5/iminuit_b4bcb3f0bf8f40debf078e4b0407f073/src/iminuit/_libiminuit.cpp:36676:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
      36676 |             ret = _PyGen_Send((PyGenObject*)yf, NULL);
            |                   ^~~~~~~~~~~
            |                   _PyGen_yf
      At global scope:
      cc1plus: note: unrecognized command-line option ‘-Wno-shorten-64-to-32’ may have been intended to silence earlier diagnostics
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for iminuit
  Running setup.py clean for iminuit
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

1 participant