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

Open
opened 1 year ago by pettai · 2 comments
pettai commented 1 year ago

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 1 year ago
Owner

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 1 year ago
Poster

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 Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: micke/knotctl#2
Loading…
There is no content yet.