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

Problem installing Orange with Python 3.12 #6738

Open
kaustuvchatterjee opened this issue Feb 16, 2024 · 2 comments
Open

Problem installing Orange with Python 3.12 #6738

kaustuvchatterjee opened this issue Feb 16, 2024 · 2 comments
Labels
bug report Bug is reported by user, not yet confirmed by the core team

Comments

@kaustuvchatterjee
Copy link

What's wrong?
Installing using pip3 install orange3 throws the following error:

Collecting orange3
Using cached Orange3-3.36.2.tar.gz (3.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "/home/kaustuv/.local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/kaustuv/.local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kaustuv/.local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-b7f36p56/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-b7f36p56/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-b7f36p56/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 520, in
File "", line 472, in setup_package
File "", line 166, in write_version_py
ModuleNotFoundError: No module named 'imp'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

How can we reproduce the problem?
Installing orange using pip3 install orange3 command on a Linux system with Python version 3.12.1 installed.

What's your environment?

  • Operating system: Fedora 39
  • Orange version: 3.36.2
  • How you installed Orange: pip3 install orange3
@kaustuvchatterjee kaustuvchatterjee added the bug report Bug is reported by user, not yet confirmed by the core team label Feb 16, 2024
@nairboon
Copy link

Orange version 3.36.2 does not appear to be compatible with Python 3.12. This particular issue seems to be fixed in the master branch as of 2b1558a

@markotoplak
Copy link
Member

There seems to be another issue. A dependency, namely catboost, does not have packages for 3.12 yet. This might or might not be a problem for you (maybe it can be built by pip dynamically) even if you build from the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug is reported by user, not yet confirmed by the core team
Projects
None yet
Development

No branches or pull requests

3 participants