2023-10-26 18:44:17 |
Michał Sawicz |
description |
`readfp` is replaced by `read_file`, available since 3.2:
https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.read_file
```
Traceback (most recent call last):
File "/home/runner/work/mir-ci/mir-ci/bin/process_snaps.py", line 189, in <module>
lp = Launchpad.login_with(
^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/launchpadlib/launchpad.py", line 700, in login_with
return cls._authorize_token_and_login(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/launchpadlib/launchpad.py", line 445, in _authorize_token_and_login
cached_credentials = credential_store.load(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/launchpadlib/credentials.py", line 345, in load
return self.do_load(unique_key)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/launchpadlib/credentials.py", line 486, in do_load
return Credentials.load_from_path(self.filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/lazr/restfulclient/authorize/oauth.py", line 218, in load_from_path
credentials.load(credentials_file)
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/lazr/restfulclient/authorize/oauth.py", line 185, in load
reader = getattr(parser, 'read_file', parser.readfp)
^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?
``` |
`readfp` is no more since 3.12
https://docs.python.org/3.12/library/configparser.html#configparser.ConfigParser.read_file
```
Traceback (most recent call last):
File "/home/runner/work/mir-ci/mir-ci/bin/process_snaps.py", line 189, in <module>
lp = Launchpad.login_with(
^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/launchpadlib/launchpad.py", line 700, in login_with
return cls._authorize_token_and_login(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/launchpadlib/launchpad.py", line 445, in _authorize_token_and_login
cached_credentials = credential_store.load(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/launchpadlib/credentials.py", line 345, in load
return self.do_load(unique_key)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/launchpadlib/credentials.py", line 486, in do_load
return Credentials.load_from_path(self.filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/lazr/restfulclient/authorize/oauth.py", line 218, in load_from_path
credentials.load(credentials_file)
File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/lazr/restfulclient/authorize/oauth.py", line 185, in load
reader = getattr(parser, 'read_file', parser.readfp)
^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?
``` |
|