From chrisking7603@gmail.com  Mon Jul 22 06:04:01 2024
Received: (at submit) by bugs.x2go.org; 22 Jul 2024 04:04:06 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-2.0 required=3.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,
	SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no
	version=3.4.4
Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 561995DB58
	for <submit@bugs.x2go.org>; Mon, 22 Jul 2024 06:04:00 +0200 (CEST)
Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2cd487b5470so271949a91.1
        for <submit@bugs.x2go.org>; Sun, 21 Jul 2024 21:04:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1721621038; x=1722225838; darn=bugs.x2go.org;
        h=subject:from:content-language:to:user-agent:mime-version:date
         :message-id:from:to:cc:subject:date:message-id:reply-to;
        bh=JRM7m2j2hJuYHnIvVa3i+Y8rTXbH2UB1V97WdfV+OjM=;
        b=EoiSd1o5eBOoSvGa6X1QH6lgEadl0jm6ns9lHZWCQboOhGGNxJWOniU9QsfZaqbmNE
         GLMTSsjy0oQnEKQD8XlEi0GllkfdRJGl3yI7sG8WblwLcj3mqS/9i8TQE5JFRcqg52w2
         XlokmIfRDhzmGW+l+/ddft2d/hERz534NAN9QWRiK6VPEMOi6JKZUJmN3NdLlwACe91R
         VuvkKgg3OFh/varKze0gOtb9Tbj61I+kqmQjDisY0U/cPuC2glR8ukEWXPN/6fDkoXKd
         Vqk8/RNkB1pvUOjUNal4nVe4D9Ui7GWgFSgTo/CrCRo7W3/wEM3LPPoXSxB3bkzSaIb5
         5hqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1721621038; x=1722225838;
        h=subject:from:content-language:to:user-agent:mime-version:date
         :message-id:x-gm-message-state:from:to:cc:subject:date:message-id
         :reply-to;
        bh=JRM7m2j2hJuYHnIvVa3i+Y8rTXbH2UB1V97WdfV+OjM=;
        b=N9Skxjh9B5Rv29m9fiGPyBnY1dv2UlOIycJNtKXHyKbnKxGaCFnpyRwOSZNZSFylDX
         DYr5SpAVb2QUcEwE9hf6gVJsVn4QO3zTDqf/Gq/K1UwV52UQgMawGzz65RuB/ebzZWWG
         YNaycTxzGovq17A51R3Biq+qKbxTF9TSG5OIgxvO/HAq6wmzdlV5mOUbgJALbSKm6N4N
         fXrFn7JgmDgVhHgH0GO9uAtY6rS0o7P9BaFvWbkz1k/I1IayqU4LeL5V04b5JJLz99Az
         KUemllIeM0WcO4HzeweKUs+PgA75il0ByjY9FLfZ/s0PliNY7YxhJltztuhxDSeRqpEA
         QUUA==
X-Gm-Message-State: AOJu0YxvvjExAhFnp3PU/LFvI5XTGAg9xDbieLuAcCVgNNFiCRcXXWra
	6/a0shAyWJZt7PrA2XVcTR5bfUItl678x3sXHx1VKV2Qnfh0a5ZjjSztu+qh
X-Google-Smtp-Source: AGHT+IHhn0vWnSl6PpcU6DoD8jbd7qJNqFDVYYYYUPOZvX6ClSmVf3aZPSmgG0cBZXjvJAQ8hwY5sQ==
X-Received: by 2002:a17:90a:ca83:b0:2c9:7a8d:43f7 with SMTP id 98e67ed59e1d1-2cd2743e0a5mr2391462a91.23.1721621037449;
        Sun, 21 Jul 2024 21:03:57 -0700 (PDT)
Received: from ?IPV6:2001:44b8:218:f200:18b9:87bd:cfce:4445? (2001-44b8-0218-f200-18b9-87bd-cfce-4445.static.ipv6.internode.on.net. [2001:44b8:218:f200:18b9:87bd:cfce:4445])
        by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2cb77345e2dsm6936930a91.27.2024.07.21.21.03.56
        for <submit@bugs.x2go.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sun, 21 Jul 2024 21:03:57 -0700 (PDT)
Content-Type: multipart/alternative;
 boundary="------------Va08yBMr4JZbpPhvwyU2iEqi"
Message-ID: <137aeaa2-8df7-4e56-99e5-8632c794164e@gmail.com>
Date: Mon, 22 Jul 2024 13:33:53 +0930
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: submit@bugs.x2go.org
Content-Language: en-US
From: Chris King <chrisking7603@gmail.com>
Subject: python3.12 removed configparser.SafeConfigParser breaking python-x2go
 (inifiles.py)

This is a multi-part message in MIME format.
--------------Va08yBMr4JZbpPhvwyU2iEqi
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Package: python-x2go

Version: 0.6.1.4

pyhoca-cli --session-profile frank11
/usr/bin/pyhoca-cli:560: SyntaxWarning: invalid escape sequence '\.'
  elif not re.match("^.*:[0-9]+(|\.[0-9]+)$", os.environ.get('DISPLAY')):
pyhoca-cli[18486] WARN: in case of a authentication failure, pyhoca-cli 
will interactively ask for a password.
pyhoca-cli[18486] NOTICE: preparing requested X2Go session
pyhoca-cli[18486] (PyHocaCLI) NOTICE: preparing requested X2Go session
Traceback (most recent call last):
  File "/usr/bin/pyhoca-cli", line 569, in <module>
    thisPyHocaCLI = PyHocaCLI(args, logger=logger, liblogger=liblogger)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pyhoca/cli/frontend.py", line 
379, 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/dist-packages/x2go/client.py", line 316, in 
__init__
    self.session_profiles = 
self.profiles_backend(config_files=[_sessions_config_file], 
logger=self.logger, broker_url=broker_url, b
roker_password=broker_password, broker_noauth=broker_noauth)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-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/dist-packages/x2go/inifiles.py", line 102, in 
__init__
    self.iniConfig = configparser.SafeConfigParser()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 
'SafeConfigParser'. Did you mean: 'RawConfigParser'?


SafeConfigParser has been an alias of ConfigParser since very early 
version of python3

Warnings were emitted in python3.11

python3.12 removed it entirely

I don't understand if the comment in inifiles.py makes just renaming the 
class a more complex solution.



My platform... not that I think it particularly impacts this bug, or its 
fix...

kubuntu-24.04 pyhoca-cli/0.6.1.3  python3/3.12.3  
remmina-plugin-x2go/1.4.35 remmina/1.4.35  x2goclient/4.1.2.3


This blocks the ability to connect to a remote x2goserver


I haven't reported this bug elsewhere.

All hail to wonderful package maintainers.


Chris.

--------------Va08yBMr4JZbpPhvwyU2iEqi
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Package: python-x2go</p>
    <p>Version: 0.6.1.4</p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">pyhoca-cli
          --session-profile frank11
        </span><br>
        /usr/bin/<a class="moz-txt-link-freetext" href="pyhoca-cli:560">pyhoca-cli:560</a>: SyntaxWarning: invalid escape sequence
        '\.'
        <br>
         elif not re.match("^.*:[0-9]+(|\.[0-9]+)$",
        os.environ.get('DISPLAY')):
        <br>
        pyhoca-cli[18486] WARN: in case of a authentication failure,
        pyhoca-cli will interactively ask for a password.
        <br>
        pyhoca-cli[18486] NOTICE: preparing requested X2Go session
        <br>
        pyhoca-cli[18486] (PyHocaCLI) NOTICE: preparing requested X2Go
        session
        <br>
        Traceback (most recent call last):
        <br>
         File "/usr/bin/pyhoca-cli", line 569, in &lt;module&gt;
        <br>
           thisPyHocaCLI = PyHocaCLI(args, logger=logger,
        liblogger=liblogger)
        <br>
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        <br>
         File "/usr/lib/python3/dist-packages/pyhoca/cli/frontend.py",
        line 379, in __init__
        <br>
           x2go.X2GoClient.__init__(self,
        broker_url=self.args.broker_url,
        broker_password=self.args.broker_password, logger=liblogger, **_<br>
        backend_kwargs)
        <br>
         File "/usr/lib/python3/dist-packages/x2go/client.py", line 316,
        in __init__
        <br>
           self.session_profiles =
        self.profiles_backend(config_files=[_sessions_config_file],
        logger=self.logger, broker_url=broker_url, b<br>
        roker_password=broker_password, broker_noauth=broker_noauth)
        <br>
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        <br>
         File
        "/usr/lib/python3/dist-packages/x2go/backends/profiles/file.py",
        line 60, in __init__
        <br>
           inifiles.X2GoIniFile.__init__(self,
        config_files=config_files, logger=logger, loglevel=loglevel)
        <br>
         File "/usr/lib/python3/dist-packages/x2go/inifiles.py", line
        102, in __init__
        <br>
           self.iniConfig = configparser.SafeConfigParser()
        <br>
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        <br>
        AttributeError: module 'configparser' has no attribute
        'SafeConfigParser'. Did you mean: 'RawConfigParser'?<br>
        <br>
      </span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
    <p><span style="font-family:monospace">SafeConfigParser has been an
        alias of ConfigParser since very early version of python3</span></p>
    <p><span style="font-family:monospace">Warnings were emitted in
        python3.11</span></p>
    <p><span style="font-family:monospace">python3.12 removed it
        entirely</span></p>
    <p><span style="font-family:monospace">I don't understand if the
        comment in inifiles.py makes just renaming the class a more
        complex solution.</span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
    <p><span style="font-family:monospace">My platform... not that I
        think it particularly impacts this bug, or its fix...</span></p>
    <p><span style="font-family:monospace">kubuntu-24.04 
        pyhoca-cli/0.6.1.3  python3/3.12.3  remmina-plugin-x2go/1.4.35 
        remmina/1.4.35  x2goclient/4.1.2.3<br>
      </span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
    <p><span style="font-family:monospace">This blocks the ability to
        connect to a remote x2goserver<br>
      </span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
    <p><span style="font-family:monospace">I haven't reported this bug
        elsewhere.</span></p>
    <p><span style="font-family:monospace">All hail to wonderful package
        maintainers.</span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
    <p><span style="font-family:monospace">Chris.<br>
      </span></p>
  </body>
</html>

--------------Va08yBMr4JZbpPhvwyU2iEqi--

