- asyncpg version:0.25.0
- PostgreSQL version:
- Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?:
- Python version:3.9.7
- Platform:mac m1 macos Monterey 12.3.1
- Do you use pgbouncer?:
- Did you install asyncpg with pip?:yes
- If you built asyncpg locally, which version of Cython did you use?:Clang 13.0.0
- Can the issue be reproduced under both asyncio and
uvloop?:
pip3 install asyncpg
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting asyncpg
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/38/80/4c03e190c86c78a5a85b440a5f719dd42c388c5976ab327c6358f5b86514/asyncpg-0.25.0.tar.gz (804 kB)
ERROR: Error expected str, bytes or os.PathLike object, not NoneType while executing command pip subprocess to install build dependencies
Installing build dependencies ... error
ERROR: Exception:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 340, in run
requirement_set = resolver.resolve(
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
result = self._result = resolver.resolve(
File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool
return bool(self._sequence)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool
return any(self)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
candidate = func()
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 215, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 291, in init
super().init(
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 161, in init
self.dist = self._prepare()
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 230, in _prepare
dist = self._prepare_distribution()
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 302, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 421, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 490, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 57, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py", line 35, in prepare_distribution_metadata
self._prepare_build_backend(finder)
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py", line 65, in _prepare_build_backend
self.req.build_env.install_requirements(
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/build_env.py", line 208, in install_requirements
self._install_requirements(
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/build_env.py", line 266, in _install_requirements
call_subprocess(
File "/opt/homebrew/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 141, in call_subprocess
proc = subprocess.Popen(
File "/opt/homebrew/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/[email protected]/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1754, in _execute_child
self.pid = _posixsubprocess.fork_exec(
TypeError: expected str, bytes or os.PathLike object, not NoneType
Any idea how to resolve this?