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

Latest Comments

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

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.

jfabernathy commented on 2024-06-18 10:36 (UTC)

On a clean system I tried to install this and received errors causing a failure.

tests/unit/test_session.py .......................................................................... [ 75%] .............................................................................................. [100%]

================================================= FAILURES ================================================== ______ testmock_session _______

mock_http_adapter = <MagicMock name='get_connection' id='123468599450832'>

@patch.object(
    requests.adapters.HTTPAdapter, 'get_connection', side_effect=ValueError('Real request made!')
)
def test_mock_session(mock_http_adapter):
    """Test that the mock_session fixture is working as expected"""
    with get_responses():
        # An error will be raised if a real request is made
      with pytest.raises(ValueError):

E Failed: DID NOT RAISE <class 'ValueError'>

tests/compat/test_responses_load_cache.py:52: Failed ------------------------------------------- Captured stdout call -------------------------------------------- [06-18 06:30:42] INFO request.allowed-passthru init.py:1078 --------------------------------------------- Captured log call --------------------------------------------- INFO responses:init.py:1078 request.allowed-passthru ========================================== short test summary info ========================================== FAILED tests/compat/test_responses_load_cache.py::test_mock_session - Failed: DID NOT RAISE <class 'ValueError'> ================================= 1 failed, 379 passed, 1 skipped in 5.32s ================================== ==> ERROR: A failure occurred in check(). Aborting... -> error making: python-requests-cache-exit status 4

rest of console in pastebin: https://pastebin.com/hXR14MZY

pvdp commented on 2024-02-24 07:41 (UTC) (edited on 2024-02-24 07:43 (UTC) by pvdp)

Fails to build!

E       AssertionError: assert False is True
E        +  where False = CachedResponse(_content=b'', created_at='2024-02-24 07:34:13.140594+00:00', elapsed=datetime.timedelta(microseconds=80...od='GET', url='http+mock://requests-cache.com/200-404'), status_code=200, url='http+mock://requests-cache.com/200-404').is_expired

tests/unit/test_session.py:475: AssertionError

Full log: https://pastebin.com/G9g0Gt9H

carlosal1015 commented on 2024-01-19 16:41 (UTC)

Hi @hearth, please try again.

hearth commented on 2024-01-19 11:20 (UTC)

Incorrect checksum today:

==> Validating source files with sha512sums...
    requests-cache-1.1.1.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

carlosal1015 commented on 2023-05-21 00:00 (UTC)

Hi @hexadecagram, could you uninstall all the dependencies and reinstall requests-cache.

hexadecagram commented on 2023-05-20 23:56 (UTC)

python-url-normalize, which this package also depends upon, is still installing into /usr/lib/python3.10/. Below is the log that python-requests-cache produces. I have reported this to the python-url-normalize package maintaners.

==> Starting check()...
ImportError while loading conftest '/home/_/.cache/yay/python-requests-cache/src/requests-cache-1.0.1/tests/conftest.py'.
tests/conftest.py:31: in <module>
    from requests_cache import ALL_METHODS, CachedSession, install_cache, uninstall_cache
requests_cache/__init__.py:7: in <module>
    from .backends import *
requests_cache/backends/__init__.py:7: in <module>
    from .base import BaseCache, BaseStorage, DictStorage
requests_cache/backends/base.py:19: in <module>
    from ..cache_keys import create_key, redact_response
requests_cache/cache_keys.py:28: in <module>
    from url_normalize import url_normalize
E   ModuleNotFoundError: No module named 'url_normalize'
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-requests-cache-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-requests-cache - exit status 4

carlosal1015 commented on 2023-05-06 13:38 (UTC)

Hi @hamelg, the reason is that all python-packages must be rebuilt by users when python reach a major version.

See https://aur.archlinux.org/packages/python-requests-cache#comment-842175 and https://www.reddit.com/r/archlinux/comments/136uxj8/python_311_is_in_the_repos_now_o/

Solution: Rebuild python-timeout-decorator, if all is ok you will find the module over /usr/lib/python3.11/ when check with pacman -Ql python-timeout-decorator.