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

can not find module distutils #1113

Closed
FalcoGer opened this issue Apr 28, 2024 · 3 comments · Fixed by #1114
Closed

can not find module distutils #1113

FalcoGer opened this issue Apr 28, 2024 · 3 comments · Fixed by #1114

Comments

@FalcoGer
Copy link

Expected Behavior

urh starts

Actual Behavior
Traceback (most recent call last):
  File "/home/user/.local/pipx/venvs/urh/bin/urh", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/user/.local/pipx/venvs/urh/lib/python3.12/site-packages/urh/main.py", line 122, in main
    from urh.controller.MainController import MainController
  File "/home/user/.local/pipx/venvs/urh/lib/python3.12/site-packages/urh/controller/MainController.py", line 24, in <module>
    from urh.controller.dialogs.OptionsDialog import OptionsDialog
  File "/home/user/.local/pipx/venvs/urh/lib/python3.12/site-packages/urh/controller/dialogs/OptionsDialog.py", line 32, in <module>
    from urh.dev.native import ExtensionHelper
  File "/home/user/.local/pipx/venvs/urh/lib/python3.12/site-packages/urh/dev/native/ExtensionHelper.py", line 6, in <module>
    from distutils import ccompiler
ModuleNotFoundError: No module named 'distutils'
Steps To Reproduce
  1. pipx install urh
  2. urh
  3. no worky
  4. `sudo apt install python3-distutils
sudo apt install python3-distutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3-distutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3-distutils' has no installation candidate
  1. cd ~/.local/pipx/venvs/urh
  2. source bin/activate
  3. python3 -m pip install distutils
ERROR: Could not find a version that satisfies the requirement distutils (from versions: none)
ERROR: No matching distribution found for distutils
Screenshots

N/A

Platform Specifications
  • OS: Ubuntu MATE (24.04 LTS)
  • URH version: package urh 2.9.6, installed using Python 3.12.3
  • Python version: 3.12.3
  • Installed via pipx
@jopohl
Copy link
Owner

jopohl commented Apr 28, 2024

It will work when you replace step 7 with

python3 -m pip install setuptools

@FalcoGer
Copy link
Author

that did it. but i already had python3-setuptools installed through the package manager. Also that should probably be included in the requirements file or whatever else pipx uses..

@FalcoGer
Copy link
Author

thank you.

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.

2 participants