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

Python 3.12 not supported #621

Open
mspreitz opened this issue Oct 3, 2024 · 1 comment
Open

Python 3.12 not supported #621

mspreitz opened this issue Oct 3, 2024 · 1 comment

Comments

@mspreitz
Copy link

mspreitz commented Oct 3, 2024

when starting RootTheBox directly out of a venv (without docker) it runs into an issue because the nose dependency seems not to be ready for Python 3.12

(rootthebox) ubuntu@ctf:~/RootTheBox$ python3 rootthebox.py
Traceback (most recent call last):
  File "/home/ubuntu/RootTheBox/rootthebox.py", line 33, in <module>
    import nose
  File "/home/ubuntu/RootTheBox/rootthebox/lib/python3.12/site-packages/nose/__init__.py", line 1, in <module>
    from nose.core import collector, main, run, run_exit, runmodule
  File "/home/ubuntu/RootTheBox/rootthebox/lib/python3.12/site-packages/nose/core.py", line 12, in <module>
    from nose.loader import defaultTestLoader
  File "/home/ubuntu/RootTheBox/rootthebox/lib/python3.12/site-packages/nose/loader.py", line 21, in <module>
    from nose.importer import Importer, add_path, remove_path
  File "/home/ubuntu/RootTheBox/rootthebox/lib/python3.12/site-packages/nose/importer.py", line 12, in <module>
    from imp import find_module, load_module, acquire_lock, release_lock
ModuleNotFoundError: No module named 'imp'
@mspreitz
Copy link
Author

mspreitz commented Oct 3, 2024

my current fix to get it still running is by just deleting the import nose line within the rootthebox.py - but I'm sure that this is not the best option

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