Search Criteria
Package Details: python-requests-cache 1.2.0-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: | 30 |
Popularity: | 0.002846 |
First Submitted: | 2015-09-21 13:55 (UTC) |
Last Updated: | 2024-02-18 07:57 (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 (python-pytest7) (check)
- python-requests-mock (check)
- python-responses (check)
- python-rich (python-rich-gitAUR) (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
- python-pymongo (optional) – Cache backend for MongoDB database
- python-redis (optional) – Cache backend for Redis cache
- python-ujson (optional) – for JSON serializer for improved performance
- python-yaml (python-yaml-gitAUR) (optional) – for bindings yaml support
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-akshare
- python-apts
- python-apts (make)
- python-bioservices
- python-chembl-webresource-client
- python-coinmarketcap
- python-dwdweather2
- python-libtimed
- python-license
- python-pypdns
- python-rows-git
- python-shillelagh
- python-tvdb_api
- python-tvdb_api-git
- python-yfinance (optional)
- radioactive
- whatlastgenre-git (optional)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »
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).bpierre commented on 2022-06-29 16:17 (UTC)
Scratch that last comment about
bson
, it's provided bypython-pymongo
, and now necessary, along withpython-ujson
, for running the tests (even when ignoring the integration tests).carlosal1015 commented on 2022-06-29 16:13 (UTC) (edited on 2022-06-29 16:14 (UTC) by carlosal1015)
Thanks @bpierre for quick response.
Should
python-cattrs
add this patch or change something here? If we write something likeimport cattrs; cattrs.foo()
that shows an unexpected behavior will be appreciated.I will try adding
python-bson
ascheckdependency
as first but it is unusual since that is not required in the past. Thank you very much for the hint.bpierre commented on 2022-06-29 16:01 (UTC)
The initial exception occurs in
cattr
:It's fixed in main, but no released yet: https://github.com/python-attrs/cattrs/commit/4f0840c8e48ce0123fc742148859155499fc502b
It looks like you're also missing a dependency on
bson
.carlosal1015 commented on 2022-06-29 15:40 (UTC) (edited on 2022-06-29 15:51 (UTC) by carlosal1015)
Hi, I have the following message error
if someone understand this message or suggest solution, please explain above.
See more here.
carlosal1015 commented on 2022-03-22 13:35 (UTC)
Hi @kIERO, I can confirm some differences when we install with
python-install
andpython-installer
inskimpy
(not working withpython-installer
if we mix commands install or installer). I will look more, but forrequests-cache
is working with both ways.« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »