Package Details: python-x2go 0.6.1.3-2

Git Clone URL: https://aur.archlinux.org/python-x2go.git (read-only, click to copy)
Package Base: python-x2go
Description: Python module providing X2Go client API
Upstream URL: http://www.x2go.org/
Licenses: AGPL
Submitter: Muflone
Maintainer: Muflone
Last Packager: Muflone
Votes: 3
Popularity: 0.002622
First Submitted: 2021-09-26 18:51 (UTC)
Last Updated: 2021-09-26 18:51 (UTC)

Latest Comments

lahwaacz commented on 2024-05-16 08:19 (UTC)

This package is not compatible with Python 3.12, which leads to pyhoca-cli failing at runtime with errors such as

Traceback (most recent call last):
  File "/usr/bin/pyhoca-cli", line 453, in <module>
    thisPyHocaCLI = PyHocaCLI(args, logger=logger, liblogger=liblogger)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pyhoca/cli/frontend.py", line 380, in __init__
    x2go.X2GoClient.__init__(self, broker_url=self.args.broker_url, broker_password=self.args.broker_password, logger=liblogger, **_backend_kwargs)
  File "/usr/lib/python3.12/site-packages/x2go/client.py", line 314, in __init__
    self.session_profiles = self.profiles_backend(config_files=[_sessions_config_file], logger=self.logger, broker_url=broker_url, broker_password=broker_password, broker_noauth=broker_noauth)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/x2go/backends/profiles/file.py", line 60, in __init__
    inifiles.X2GoIniFile.__init__(self, config_files=config_files, logger=logger, loglevel=loglevel)
  File "/usr/lib/python3.12/site-packages/x2go/inifiles.py", line 102, in __init__
    self.iniConfig = configparser.SafeConfigParser()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

The SafeConfigParser was deprecated for a long time and removed in 3.12, see https://docs.python.org/3/whatsnew/3.12.html#configparser