Search Criteria
Package Details: python-requests-cache 1.2.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-requests-cache.git (read-only, click to copy) |
---|---|
Package Base: | python-requests-cache |
Description: | A persistent cache for python requests |
Upstream URL: | https://github.com/requests-cache/requests-cache |
Keywords: | cache dynamodb http mongodb performance redis requests sqlite web webscraping |
Licenses: | custom:BSD-2-clause |
Submitter: | Shibumi |
Maintainer: | carlosal1015 (JWCook, flying-sheep, AutoUpdateBot) |
Last Packager: | AutoUpdateBot |
Votes: | 28 |
Popularity: | 0.000009 |
First Submitted: | 2015-09-21 13:55 (UTC) |
Last Updated: | 2024-06-19 07:56 (UTC) |
Dependencies (24)
- python-cattrs
- python-platformdirs
- python-requests
- python-url-normalizeAUR
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-poetry-core (python-poetry-core-gitAUR) (make)
- python-wheel (make)
- python-itsdangerous (check)
- python-pytest (check)
- python-requests-mock (check)
- python-responses (check)
- python-rich (check)
- python-time-machine (check)
- python-timeout-decoratorAUR (check)
- python-ujson (check)
- python-boto3 (optional) – Cache backend for Amazon DynamoDB database
- python-botocore (python-botocore-gitAUR) (optional) – Interface for Amazon Web Services
- python-bsonAUR (optional) – for BSON codec
- python-itsdangerous (optional) – for pass trusted data to untrusted environments
- Show 4 more dependencies...
Required by (30)
- betterbib
- howdoi-git
- keyman
- lastfm_cg-git
- manubot
- mnamer
- mythtv-git
- mythtv-git (optional)
- netease-musicbox
- netease-musicbox-git
- parselcli
- plover_plugins_manager
- pyfa
- python-abi3audit
- python-akshare
- python-apts
- python-apts (make)
- python-bioservices
- python-chembl-webresource-client
- python-dwdweather2
- Show 10 more...
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »
carlosal1015 commented on 2022-06-29 20:17 (UTC)
Thanks for suggestion, when
python-requests-cache
deprecatedpython-bson
I will do the same in the PKGBUILD.bpierre commented on 2022-06-29 18:47 (UTC)
Also, I think
python-bson
should be removed from the optional dependency: it has not been updated for a while, and the testsuite does not pass when using it instead of thebson
module provided bypython-pymongo
(cattrs
is also using the later).bpierre commented on 2022-06-29 18:39 (UTC) (edited on 2022-06-29 18:42 (UTC) by bpierre)
Can you re-raise the (real) exception as the root of the problem in
requests_cache/__init__.py
? There might be another missing dependency. Or alternatively installpython-exceptiongroup
so the warning is about the root exception (notepython-exceptiongroup
check phase is failing on my side).There's a least 3 issues: - some missing dependencies for running the tests - the exception handling in
requests_cache/__init__.py
- the missingpython-exceptiongroup
dependency forpython-cattrs
exception handlingcarlosal1015 commented on 2022-06-29 18:24 (UTC) (edited on 2022-06-29 18:28 (UTC) by carlosal1015)
Yes, the different error in
check()
function, but not workaround yet. Video here. Dear upstream fill an issue on cattrs GitHub repository.bpierre commented on 2022-06-29 17:52 (UTC)
Do you still get the same exact exception output when
python-pymongo
is installed?bpierre commented on 2022-06-29 17:51 (UTC)
Using
python-bson
does not work for me:(followed by the same nonsensical
ImportError
exception as before)But with
python-pymongo
installed, everything works fine.carlosal1015 commented on 2022-06-29 17:47 (UTC) (edited on 2022-06-29 17:48 (UTC) by carlosal1015)
Thank you for precise, I found
When I have installed actually all optional dependencies, but I tested all combinations and the same error at
check()
function. I follow the suggestion to disable the tests and tell the problem to python-requests-cache upstream.From my side, when install
python-pymongo
the error still happening.bpierre commented on 2022-06-29 17:44 (UTC)
Just to be clear: the tests work fine once the missing dependency is present (
python-pymongo
). There's no need for the patchedcattrs
, as the problem is with some exception handling code when failing to import a dependency.bpierre commented on 2022-06-29 16:27 (UTC)
IMHO that code in
requests_cache/__init__.py
that unconditionally ignore import errors, only showing a warning, is problematic: https://github.com/requests-cache/requests-cache/blob/main/requests_cache/__init__.pybpierre commented on 2022-06-29 16:22 (UTC)
OK, so the issue goes away once
python-pymongo
is available, so there's no need for the patchedcattrs
(which is a fix related to exception handling).« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »