googlemaps 4.7.3 fails to install with Poetry
@wangela 已经在做这个了。
开始于 2022年11月29日。
评估
这个 Issue 还没有评估数据。
描述
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!
- 主要语言
- Python
- 星标
- 5k
- 派生
- 1.4k
- 平均合并
- 5 小时 9 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googlemaps/google-maps-services-python 的其他 Issue
-
maps未关闭triage me type: bug
难度 5/5 一周以上 新手友好度 10/100
-
triage me type: feature request
难度 5/5 一周以上 新手友好度 20/100
googlemaps/google-maps-services-python#541 · 3 条评论 · 38 个 reaction ·
-
Release failed - unexpected keyword argument: enable_address_descriptor still not supported可能已有人在做 @Rahulcse79 于 194 天前认领。 未关闭triage me type: bug
难度 3/5 1-2 天 新手友好度 35/100
googlemaps/google-maps-services-python#540 · 1 条评论 ·
-
triage me type: question
难度 1/5 1 小时以内 新手友好度 15/100
googlemaps/google-maps-services-python#539 · 3 条评论 ·
-
triage me type: bug
难度 3/5 1-2 天 新手友好度 30/100
查看 googlemaps/google-maps-services-python 的全部 Issue
相似的 Issue
-
bug drawing-tools
难度 2/5 1-3 小时 新手友好度 76/100
cofade/open-garden-planner#827 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug documentation good first issue help wanted testing
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
hololinked-dev/hololinked#213 ·
-
Show evidence time and supersede warnings in the memory inspector可能已有人在做 @Sinchanak-212 今天认领。 未关闭area: ux good first issue priority: medium
难度 2/5 1-3 小时 新手友好度 84/100