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: 27
Popularity: 0.000000
First Submitted: 2015-09-21 13:55 (UTC)
Last Updated: 2024-06-19 07:56 (UTC)

Latest Comments

1 2 3 4 5 6 .. 11 Next › Last »

willemw commented on 2025-06-09 13:15 (UTC)

Yes, it looks like it. python-attrs version 25 is the latest (compatible) version, not version 24. If you go to https://gitlab.archlinux.org/archlinux/arch-mirrors/-/issues you will see several incomplete "new mirror website" tasks.

Vitrum-cnkj34kr8 commented on 2025-06-09 10:05 (UTC)

Same problem. For a misterious reason file /usr/lib/python3.13/site-packages/attrs/__init__.py didn't import 'NothingType' from attr (compare to upstream).

I had to download the package from archive.archlinux.org and install it manually:

pacman -U python-attrs-25.3.0-1-any.pkg.tar.zst

Now requests-cache does work correctly. Was the problem caused by a broken mirror?

solarisfire commented on 2025-06-08 20:36 (UTC)

Broken for me too.

willemw commented on 2025-06-07 07:57 (UTC)

Fails to build:

/usr/lib/python3.13/site-packages/cattrs/_compat.py:45: in <module>
    from attrs import NOTHING, Attribute, Factory, NothingType, resolve_types
E   ImportError: cannot import name 'NothingType' from 'attrs' (/usr/lib/python3.13/site-packages/attrs/__init__.py)

micwoj92 commented on 2025-03-04 22:45 (UTC)

Please use spdx license identifier.

cubanismo commented on 2025-02-25 00:44 (UTC) (edited on 2025-02-25 00:48 (UTC) by cubanismo)

FYI, I was running into the same error as 'asday' below, and it turns out the problem was that python-timeout-decorator (Another AUR package: https://aur.archlinux.org/packages/python-timeout-decorator) was installed, and is properly listed as a dependency, but like all AUR python packages apparently, was not rebuilt when python was upgraded (From 3.11 to 3.12 and subsequently 3.13 in my case). From here:

https://www.reddit.com/r/archlinux/comments/k56ydd/updating_all_aur_packages_dependant_on_python/

You can force this and any other necessary AUR python package rebuilds manually with something like this (I'm using yay as my AUR manager/pacman wrapper, and last installed python-timeout-decorator when using python 3.11. Look for /usr/lib/python*/site-packages/timeout_decorator to find the version you need to upgrade from):

$ pacman -Qoq /usr/lib/python3.11/ | yay -S --rebuild -

It would be nice if there was a proper way to hook into the python install process and trigger this automatically, but the above got things working again for me in the meantime.

solarisfire commented on 2024-12-07 11:15 (UTC)

This isn't building correctly at present.

python-requests-cache-git works though.

carlosal1015 commented on 2024-07-05 14:50 (UTC)

Hi @asday, look if some Python package is over /usr/lib/python3.11/site-packages. Otherwise rebuilt there and try again qa

asday commented on 2024-07-04 21:07 (UTC)

I believe this package has been failing for me for a while now.

==> Making package: python-requests-cache 1.2.1-1 (Thu 04 Jul 2024 21:58:13 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found requests-cache-1.2.1.tar.gz
==> Validating source files with sha512sums...
    requests-cache-1.2.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting requests-cache-1.2.1.tar.gz with bsdtar
==> Sources are ready.
==> Making package: python-requests-cache 1.2.1-1 (Thu 04 Jul 2024 21:58:16 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Building wheel...
Successfully built requests_cache-1.2.1-py3-none-any.whl
==> Starting check()...
ImportError while loading conftest '/home/asday/.cache/yay/python-requests-cache/src/requests-cache-1.2.1/tests/conftest.py'.
tests/conftest.py:30: in <module>
    from timeout_decorator import timeout
E   ModuleNotFoundError: No module named 'timeout_decorator'
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-requests-cache-exit status 4

I believe I have this required as a dependency for pyfa.

JWCook commented on 2024-06-18 16:03 (UTC)

@jfabernathy This was due to a change in requests 2.32, and fixed here: https://github.com/requests-cache/requests-cache/issues/990

It will be included in an upstream patch release soon.