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.13 support #764

Closed
josecastillolema opened this issue Dec 25, 2024 · 1 comment
Closed

Python 3.13 support #764

josecastillolema opened this issue Dec 25, 2024 · 1 comment

Comments

@josecastillolema
Copy link

Kcli does not seem to work on Python 3.13 (i.e.: Fedora 41):

Traceback (most recent call last):
  File "/usr/bin/kcli", line 33, in <module>
    sys.exit(load_entry_point('kcli==99.0', 'console_scripts', 'kcli')())
             ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/kcli", line 25, in importlib_load_entry_point
    return next(matches).load()
           ~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib64/python3.13/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.13/site-packages/kvirt/cli.py", line 20, in <module>
    from kvirt.config import Kconfig
  File "/usr/lib/python3.13/site-packages/kvirt/config.py", line 22, in <module>
    from kvirt.expose import Kexposer
  File "/usr/lib/python3.13/site-packages/kvirt/expose/__init__.py", line 2, in <module>
    from kvirt.bottle import Bottle, request, static_file, jinja2_view, response
  File "/usr/lib/python3.13/site-packages/kvirt/bottle.py", line 71, in <module>
    import base64, calendar, cgi, email.utils, functools, hmac, itertools,\
           mimetypes, os, re, tempfile, threading, time, warnings, weakref, hashlib
ModuleNotFoundError: No module named 'cgi'

Looks like the cgi module was deprecated, see here.

@karmab
Copy link
Owner

karmab commented Dec 26, 2024

fixed by 26314fc

@karmab karmab closed this as completed Dec 26, 2024
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

2 participants