Package Details: python-requests-cache 1.2.1-1

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)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »

bpierre commented on 2022-06-29 16:17 (UTC)

Scratch that last comment about bson, it's provided by python-pymongo, and now necessary, along with python-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 like import cattrs; cattrs.foo() that shows an unexpected behavior will be appreciated.

I will try adding python-bson as checkdependency 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:

    from cattr import GenConverter
  File "/usr/lib/python3.10/site-packages/cattr/__init__.py", line 1, in <module>
    from .converters import Converter, GenConverter, UnstructureStrategy
  File "/usr/lib/python3.10/site-packages/cattr/converters.py", line 1, in <module>
    from cattrs.converters import Converter, GenConverter, UnstructureStrategy
  File "/usr/lib/python3.10/site-packages/cattrs/__init__.py", line 1, in <module>
    from cattr import converters, disambiguators, dispatch, errors, gen, preconf
  File "/usr/lib/python3.10/site-packages/cattr/disambiguators.py", line 15, in <module>
    from cattrs._compat import get_origin
  File "/usr/lib/python3.10/site-packages/cattrs/_compat.py", line 38, in <module>
    from exceptiongroup import ExceptionGroup
ModuleNotFoundError: No module named 'exceptiongroup'

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

==> Starting check()...
No module named 'exceptiongroup'
ImportError while loading conftest '/tmp/makepkg/python-requests-cache/src/requests-cache-0.9.4/tests/conftest.py'.
tests/conftest.py:24: in <module>
    from requests_cache import ALL_METHODS, CachedSession, install_cache, uninstall_cache
E   ImportError: cannot import name 'ALL_METHODS' from 'requests_cache' (/tmp/makepkg/python-requests-cache/src/requests-cache-0.9.4/requests_cache/__init__.py)
==> ERROR: A failure occurred in check().

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 and python-installer in skimpy (not working with python-installer if we mix commands install or installer). I will look more, but for requests-cache is working with both ways.

carlosal1015 commented on 2022-03-11 17:10 (UTC) (edited on 2022-03-11 17:11 (UTC) by carlosal1015)

Hey folks, Arch Linux is 20 years old today. I encourage you to express your regards on IRC channel or in your favorite media outlet. Happy day to everyone.

carlosal1015 commented on 2022-02-26 15:46 (UTC) (edited on 2022-02-28 00:42 (UTC) by carlosal1015)

Hi @kIERO, I can not confirm this issue, could you please paste on some service like pastebin or gist the full log with makepkg -s 2>&1 | tee -a log.

carlosal1015 commented on 2022-02-26 15:41 (UTC) (edited on 2022-02-28 17:10 (UTC) by carlosal1015)

Thanks @AchmadFathoni, checking now.

Edited: Is working now, could you please try first yay -Scc or clean cache and later try again installing. The latest changed was two days ago https://github.com/reclosedev/requests-cache/releases/tag/v0.9.3

AchmadFathoni commented on 2022-02-26 13:26 (UTC)

sha512sum of requests-cache-0.9.3.tar.gz is d413fbed156bd3fca48db8b153b01a883ee72d62f6e8982d490a5378dc188c19d0b3af5e37e6f47d19ed0ba11b3c0e01489720d56df12afcf1b47088e1541221

AchmadFathoni commented on 2022-02-26 13:09 (UTC)

==> Validating source files with sha512sums... requests-cache-0.9.3.tar.gz ... FAILED