'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? on Python 3.12
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Undecided
|
Unassigned | ||
lazr.restfulclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
`readfp` is no more since 3.12
https:/
```
Traceback (most recent call last):
File "/home/
lp = Launchpad.
File "/opt/hostedtoo
return cls._authorize_
File "/opt/hostedtoo
cached_
File "/opt/hostedtoo
return self.do_
File "/opt/hostedtoo
return Credentials.
File "/opt/hostedtoo
credentials
File "/opt/hostedtoo
reader = getattr(parser, 'read_file', parser.readfp)
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?
```
Related branches
- Simone Pelosi: Approve
-
Diff: 16 lines (+4/-1)1 file modifiedsrc/lazr/restfulclient/authorize/oauth.py (+4/-1)
no longer affects: | launchpadlib |
description: | updated |
Changed in lazr.restfulclient: | |
status: | New → Fix Committed |
Changed in lazr.restfulclient: | |
status: | Fix Committed → Fix Released |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
Hi Michael,
Thanks for the report!
We will drop Python 2 support for all our packages in the next cycle, that also will include adding support for all modern Python versions.
When did you encounter this issue?
Are you currently blocked on anything, so we'd need to provide a fix sooner than scheduled?