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

KCLI does not have support for Python 3.13 #1890

Closed
tulilirockz opened this issue Nov 5, 2024 · 2 comments
Closed

KCLI does not have support for Python 3.13 #1890

tulilirockz opened this issue Nov 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tulilirockz
Copy link
Collaborator

Getting this on bluefin-dx:latest 41.20241103.0

~> kcli --help                                                                                                                                        11/05/2024 01:47:31 PM
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'
@dosubot dosubot bot added the bug Something isn't working label Nov 5, 2024
@tulilirockz
Copy link
Collaborator Author

Just found out the cgi module is deprecated on python3.13. If KCLI doesnt get updated it probably should be deleted since it will just use the deprecated API

@tulilirockz tulilirockz changed the title CGI module not found on kcli KCLI does not have support for Python 3.13 Nov 8, 2024
@tulilirockz
Copy link
Collaborator Author

tulilirockz commented Nov 30, 2024

KCLI works now!

~/opt/bluefin> sudo bootc status
Current staged image: ghcr.io/ublue-os/bluefin-dx:latest
    Image version: latest-41.20241129 (2024-11-29 05:00:30 UTC)
    Image digest: sha256:6714672871d96738d796474ea2fa3f493648f8fe54fc3951445662eca63511b2
Current booted image: ghcr.io/ublue-os/bluefin-dx:latest
    Image version: latest-41.20241128 (2024-11-28 04:59:59 UTC)
    Image digest: sha256:d0b155e298b6dc1b40eac09208bea4fdbfbd125a080fd85573afd8a63a181867
Current rollback image: ghcr.io/ublue-os/bluefin-dx:latest
    Image version: latest-41.20241127.1 (2024-11-27 10:45:44 UTC)
    Image digest: sha256:e23e65b5eafaa256c095081b4eb110b81ee486e07f1fef1a9dbe9bb4775bcf8c
~/opt/bluefin> kcli
usage: kcli [-h] [-C CLIENT] [--containerclient CONTAINERCLIENT] [--dnsclient DNSCLIENT] [-d] [-n NAMESPACE] [-o {json,jsoncompact,name,yaml}]
            [-r REGION] [-z ZONE]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant