Issue with cut sixth .deb package on ubuntu/jammy #2

Closed
opened 2023-01-17 09:56:30 +01:00 by pettai · 2 comments
pettai commented 2023-01-17 09:56:30 +01:00 (Migrated from code.smolnet.org)

deb-package installation resulterar i en icke-fungerande knotctl

ubuntu@knotapitest:~$ python3 -V
Python 3.10.6
ubuntu@knotapitest:~$ knotctl
Traceback (most recent call last):
  File "/usr/bin/knotctl", line 16, in <module>
    from requests.exceptions import JSONDecodeError as RequestsJSONDecodeError
ImportError: cannot import name 'JSONDecodeError' from 'requests.exceptions' (/usr/lib/python3/dist-packages/requests/exceptions.py)

ubuntu python3 native packages som är deps till knotctl

ubuntu@knotapitest:~$ pip3 list | egrep "argcomplete|requests|simplejson"
argcomplete            1.8.1
requests               2.25.1
requests-toolbelt      0.9.1
simplejson             3.17.6
deb-package installation resulterar i en icke-fungerande knotctl ``` ubuntu@knotapitest:~$ python3 -V Python 3.10.6 ``` ``` ubuntu@knotapitest:~$ knotctl Traceback (most recent call last): File "/usr/bin/knotctl", line 16, in <module> from requests.exceptions import JSONDecodeError as RequestsJSONDecodeError ImportError: cannot import name 'JSONDecodeError' from 'requests.exceptions' (/usr/lib/python3/dist-packages/requests/exceptions.py) ``` ubuntu python3 native packages som är deps till knotctl ``` ubuntu@knotapitest:~$ pip3 list | egrep "argcomplete|requests|simplejson" argcomplete 1.8.1 requests 2.25.1 requests-toolbelt 0.9.1 simplejson 3.17.6 ```
micke commented 2023-01-17 15:12:59 +01:00 (Migrated from code.smolnet.org)

Ser ut som det är en för gammal requests, JSONDecodeError kom in 2.27: db575eeedc

Ser ut som det är en för gammal requests, JSONDecodeError kom in 2.27: https://github.com/psf/requests/commit/db575eeedcfdb03bf31285afd3033e301df8b685
pettai commented 2023-01-17 23:21:55 +01:00 (Migrated from code.smolnet.org)

Kan man möjligen hoppa över att använda den funktionen om requests är lite äldre?
requests på Ubuntu/Jammy (22.04) är ju inte stenålders, och jag tänker mig att fler vill kunna köra det på aktuella stable releaser.

Kan man möjligen hoppa över att använda den funktionen om requests är lite äldre? requests på Ubuntu/Jammy (22.04) är ju inte stenålders, och jag tänker mig att fler vill kunna köra det på aktuella stable releaser.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: micke/knotctl#2
No description provided.