googlemaps 4.7.3 fails to install with Poetry

Ouverte
#460 1 commentaire 1 réaction 1 personne assignée Voir sur GitHub

@wangela y travaille déjà.

Depuis le 29/11/2022.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

triage me type: bug

Downgraded to 4.7.2 as workaround.

Please be sure to include as much information as possible:

Environment details
  1. Poetry version 1.2.2
  2. Arch Linux
  3. 4.7.3, python 3.10.8
Steps to reproduce
  1. 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

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de googlemaps/google-maps-services-python

Toutes les issues de googlemaps/google-maps-services-python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.