Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

[ISSUE] Issues with arch linux pip (python 3.10) while installing arigram, TypeError: SafeFileCache.set() got an unexpected keyword argument 'expires' #6

Closed
linuxmobile opened this issue Jan 6, 2022 · 5 comments

Comments

@linuxmobile
Copy link

./do local                                                                                                                            src/arigram  

+ main local
++ dirname ./do
+ SRC=.
+ cd .
+ ARG=local
+ case $ARG in
+ python3 -m poetry check
All set!
+ python3 -m poetry lock
Updating dependencies
Resolving dependencies... (0.2s)
+ python3 -m poetry install
Installing dependencies from lock file

No dependencies to install or update

Installing the current project: arigram (0.1.1)
+ python3 -m pip install --user --upgrade .
Processing /home/linuxmobile/.local/src/arigram
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 223, in _main
    status = self.run(options, args)
  File "/usr/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
    return func(self, options, args)
  File "/usr/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 320, in run
    requirement_set = resolver.resolve(
  File "/usr/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 121, in resolve
    self._result = resolver.resolve(
  File "/usr/lib/python3.10/site-packages/resolvelib/resolvers.py", line 454, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/usr/lib/python3.10/site-packages/resolvelib/resolvers.py", line 348, in resolve
    failure_causes = self._attempt_to_pin_criterion(name, criterion)
  File "/usr/lib/python3.10/site-packages/resolvelib/resolvers.py", line 208, in _attempt_to_pin_criterion
    criteria = self._get_criteria_to_update(candidate)
  File "/usr/lib/python3.10/site-packages/resolvelib/resolvers.py", line 200, in _get_criteria_to_update
    name, crit = self._merge_into_criterion(r, parent=candidate)
  File "/usr/lib/python3.10/site-packages/resolvelib/resolvers.py", line 176, in _merge_into_criterion
    crit = Criterion.from_requirement(self._p, requirement, parent)
  File "/usr/lib/python3.10/site-packages/resolvelib/resolvers.py", line 83, in from_requirement
    if not cands:
  File "/usr/lib/python3.10/site-packages/resolvelib/structs.py", line 124, in __bool__
    return bool(self._sequence)
  File "/usr/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 99, in __bool__
    return any(self)
  File "/usr/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 220, in iter_index_candidates
    result = self._finder.find_best_candidate(
  File "/usr/lib/python3.10/site-packages/pip/_internal/index/package_finder.py", line 882, in find_best_candidate
    candidates = self.find_all_candidates(project_name)
  File "/usr/lib/python3.10/site-packages/pip/_internal/index/package_finder.py", line 825, in find_all_candidates
    package_links = self.process_project_url(
  File "/usr/lib/python3.10/site-packages/pip/_internal/index/package_finder.py", line 789, in process_project_url
    html_page = self._link_collector.fetch_page(project_url)
  File "/usr/lib/python3.10/site-packages/pip/_internal/index/collector.py", line 618, in fetch_page
    return _get_html_page(location, session=self.session)
  File "/usr/lib/python3.10/site-packages/pip/_internal/index/collector.py", line 430, in _get_html_page
    resp = _get_html_response(url, session=session)
  File "/usr/lib/python3.10/site-packages/pip/_internal/index/collector.py", line 127, in _get_html_response
    resp = session.get(
  File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3.10/site-packages/pip/_internal/network/session.py", line 428, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 697, in send
    r.content
  File "/usr/lib/python3.10/site-packages/requests/models.py", line 836, in content
    self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
  File "/usr/lib/python3.10/site-packages/requests/models.py", line 758, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "/usr/lib/python3.10/site-packages/urllib3/response.py", line 579, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/lib/python3.10/site-packages/urllib3/response.py", line 522, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "/home/linuxmobile/.local/lib/python3.10/site-packages/cachecontrol/filewrapper.py", line 96, in read
    self._close()
  File "/home/linuxmobile/.local/lib/python3.10/site-packages/cachecontrol/filewrapper.py", line 76, in _close
    self.__callback(result)
  File "/home/linuxmobile/.local/lib/python3.10/site-packages/cachecontrol/controller.py", line 329, in cache_response
    self.cache.set(
TypeError: SafeFileCache.set() got an unexpected keyword argument 'expires'
@TruncatedDinoSour
Copy link
Owner

Yep, look #5, Might port it today :)

@TruncatedDinoSour
Copy link
Owner

Update: that's an issue with your pip installation, works on my machine locally, try to troubleshoot with pip devs or package maintainers? but just in case I can help, could I get your current environment? like OS, pakcgage version, etc.

@linuxmobile
Copy link
Author

linuxmobile commented Jan 9, 2022

Update: that's an issue with your pip installation, works on my machine locally, try to troubleshoot with pip devs or package maintainers? but just in case I can help, could I get your current environment? like OS, pakcgage version, etc.

I'm using latest arch, with latest kernel. And python 3.10.1-2. And python-pip 20.3.4-4

Edit: I found a issue with pip on arch pypa/pip#10750

@TruncatedDinoSour
Copy link
Owner

Update: that's an issue with your pip installation, works on my machine locally, try to troubleshoot with pip devs or package maintainers? but just in case I can help, could I get your current environment? like OS, pakcgage version, etc.

I'm using latest arch, with latest kernel. And python 3.10.1-2. And python-pip 20.3.4-4

Edit: I found a issue with pip on arch pypa/pip#10750

Yeah, seems that arch is having issues with pip, if you want you can install pip from source or take my pip installation which is from gentoo

@TruncatedDinoSour TruncatedDinoSour changed the title [ISSUE] I've got a python error with latest version [ISSUE] Issues with arch linux pip while installing arigram, TypeError: SafeFileCache.set() got an unexpected keyword argument 'expires' Jan 9, 2022
@TruncatedDinoSour TruncatedDinoSour pinned this issue Jan 9, 2022
@TruncatedDinoSour TruncatedDinoSour changed the title [ISSUE] Issues with arch linux pip while installing arigram, TypeError: SafeFileCache.set() got an unexpected keyword argument 'expires' [ISSUE] Issues with arch linux pip (python 3.10) while installing arigram, TypeError: SafeFileCache.set() got an unexpected keyword argument 'expires' Jan 9, 2022
@linuxmobile
Copy link
Author

linuxmobile commented Jan 9, 2022

Hi there. I'm here again. If someone have the same problem with Archlinux. I can install without problem using: python and python-poetry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants