googlemaps 4.7.3 fails to install with Poetry
@wangela y travaille déjà.
Depuis le 29/11/2022.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Downgraded to 4.7.2 as workaround.
Please be sure to include as much information as possible:
Environment details
- Poetry version 1.2.2
- Arch Linux
- 4.7.3, python 3.10.8
Steps to reproduce
- poetry install
Stack trace
Package operations: 1 install, 0 updates, 0 removals
• Installing googlemaps (4.7.3): Failed
CalledProcessError
Command '['/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10', '--no-deps', '/home/b/.cache/pypoetry/artifacts/fa/2e/dc/0ad13545d84ef8bae2a8436e5add42fb1b76392a95372eff623e2a4445/googlemaps-4.7.3.tar.gz']' returned non-zero exit status 2.
at /usr/lib/python3.10/subprocess.py:526 in run
522│ # We don't call process.wait() as .__exit__ does that for us.
523│ raise
524│ retcode = process.poll()
525│ if check and retcode:
→ 526│ raise CalledProcessError(retcode, process.args,
527│ output=stdout, stderr=stderr)
528│ return CompletedProcess(process.args, retcode, stdout, stderr)
529│
530│
The following error occurred when trying to handle this error:
EnvCommandError
Command ['/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10', '--no-deps', '/home/b/.cache/pypoetry/artifacts/fa/2e/dc/0ad13545d84ef8bae2a8436e5add42fb1b76392a95372eff623e2a4445/googlemaps-4.7.3.tar.gz'] errored with the following return code 2, and output:
Processing /home/b/.cache/pypoetry/artifacts/fa/2e/dc/0ad13545d84ef8bae2a8436e5add42fb1b76392a95372eff623e2a4445/googlemaps-4.7.3.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: googlemaps
Building wheel for googlemaps (pyproject.toml): started
Building wheel for googlemaps (pyproject.toml): finished with status 'done'
Created wheel for googlemaps: filename=googlemaps-4.7.3-py3-none-any.whl size=40339 sha256=e951df14674dc2060248264978149a8e4b71d2734c1f5fd57a2273cd777c0376
Stored in directory: /home/b/.cache/pip/wheels/f7/e8/c5/93dff8f7899d7101de2cc476cdbc3fe3084528e4b428cc3ad1
ERROR: Exception:
Traceback (most recent call last):
File "/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
return func(self, options, args)
File "/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 450, in run
_, build_failures = build(
File "/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10/lib/python3.10/site-packages/pip/_internal/wheel_builder.py", line 361, in build
wheel_cache.record_download_origin(cache_dir, req.download_info)
File "/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10/lib/python3.10/site-packages/pip/_internal/cache.py", line 282, in record_download_origin
origin = DirectUrl.from_json(origin_path.read_text())
File "/home/b/.cache/pypoetry/virtualenvs/journa-backend-ashSwZ59-py3.10/lib/python3.10/site-packages/pip/_internal/models/direct_url.py", line 206, in from_json
return cls.from_dict(json.loads(s))
File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/utils/env.py:1476 in _run
1472│ output = subprocess.check_output(
1473│ command, stderr=subprocess.STDOUT, env=env, **kwargs
1474│ )
1475│ except CalledProcessError as e:
→ 1476│ raise EnvCommandError(e, input=input_)
1477│
1478│ return decode(output)
1479│
1480│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:
The following error occurred when trying to handle this error:
PoetryException
Failed to install /home/b/.cache/pypoetry/artifacts/fa/2e/dc/0ad13545d84ef8bae2a8436e5add42fb1b76392a95372eff623e2a4445/googlemaps-4.7.3.tar.gz
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/utils/pip.py:51 in pip_install
47│
48│ try:
49│ return environment.run_pip(*args)
50│ except EnvCommandError as e:
→ 51│ raise PoetryException(f"Failed to install {path.as_posix()}") from e
52│
Following these steps will guarantee the quickest resolution possible.
Thanks!
- Langage dominant
- Python
- Étoiles
- 5k
- Forks
- 1.4k
- Merge moyen
- 5 h 9 min
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de googlemaps/google-maps-services-python
-
mapsOuvertetriage me type: bug
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 10/100
-
triage me type: feature request
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
googlemaps/google-maps-services-python#541 · 3 commentaires · 38 réactions ·
-
Release failed - unexpected keyword argument: enable_address_descriptor still not supportedPeut-être pris @Rahulcse79 l’a pris il y a 194 jours. Ouvertetriage me type: bug
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
googlemaps/google-maps-services-python#540 · 1 commentaire ·
-
About Google API's you had usedOuvertetriage me type: question
Difficulté 1/5 Moins d'une heure Accessibilité débutants 15/100
googlemaps/google-maps-services-python#539 · 3 commentaires ·
-
triage me type: bug
Difficulté 3/5 1-2 jours Accessibilité débutants 30/100
Toutes les issues de googlemaps/google-maps-services-python
Issues similaires
-
Difficulté 1/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
bug documentation good first issue help wanted testing
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
-
Show evidence time and supersede warnings in the memory inspectorPeut-être pris @Sinchanak-212 l’a pris aujourd’hui. Ouvertearea: ux good first issue priority: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
daniel-ospina/tortoise#11649 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
ComposioHQ/awesome-claude-skills#2438 ·
Les mainteneurs répondent en général sous 15 jours