I'm trying to install Pytero with Poetry.
I'm on Python 3.11.8, and have python3.11-dev and python3.11-venv installed through deadsnake's ppa on Ubuntu 22.04.3 LTS (WSL).
I do have aiohttp installed, and other packages in the venv can use it as intended.
Here's the error:
(seacogs-jV_KYu65-py3.11) seasw@FishCenter:~/Documents/SeaCogs$ poetry add git+https://github.com/PteroPackages/Pytero.git
Unable to determine package info for path: /home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/src/Pytero
Command ['/tmp/tmp9xymcmjj/.venv/bin/python', '-I', '-W', 'ignore', '-c', "import build\nimport build.env\nimport pyproject_hooks\n\nsource = '/home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/src/Pytero'\ndest = '/tmp/tmp9xymcmjj/dist'\n\nwith build.env.DefaultIsolatedEnv() as env:\n builder = build.ProjectBuilder(\n source_dir=source,\n python_executable=env.python_executable,\n runner=pyproject_hooks.quiet_subprocess_runner,\n )\n env.install(builder.build_system_requires)\n env.install(builder.get_requires_for_build('wheel'))\n builder.metadata_path(dest)\n"] errored with the following return code 1
Error output:
Traceback (most recent call last):
File "<string>", line 15, in <module>
File "/tmp/tmp9xymcmjj/.venv/lib/python3.11/site-packages/build/__init__.py", line 239, in get_requires_for_build
with self._handle_backend(hook_name):
File "/usr/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/tmp/tmp9xymcmjj/.venv/lib/python3.11/site-packages/build/__init__.py", line 360, in _handle_backend
raise BuildBackendException(exception, f'Backend subprocess exited when trying to invoke {hook}') from None
build._exceptions.BuildBackendException: Backend subprocess exited when trying to invoke get_requires_for_build_wheel
Fallback egg_info generation failed.
Command ['/tmp/tmp9xymcmjj/.venv/bin/python', 'setup.py', 'egg_info'] errored with the following return code 1
Output:
Traceback (most recent call last):
File "/home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/src/Pytero/setup.py", line 12, in <module>
from pytero import __version__
File "/home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/src/Pytero/pytero/__init__.py", line 13, in <module>
from .app import PteroApp
File "/home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/src/Pytero/pytero/app.py", line 11, in <module>
from .http import RequestManager
File "/home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/src/Pytero/pytero/http.py", line 5, in <module>
from aiohttp import ClientSession, ClientResponse
ModuleNotFoundError: No module named 'aiohttp'
pip install git+https://github.com/PteroPackages/Pytero.git error:
(seacogs-jV_KYu65-py3.11) seasw@FishCenter:~/Documents/SeaCogs$ pip install git+https://github.com/PteroPackages/Pytero.git
Collecting git+https://github.com/PteroPackages/Pytero.git
Cloning https://github.com/PteroPackages/Pytero.git to /tmp/pip-req-build-ax_8ondu
Running command git clone --filter=blob:none --quiet https://github.com/PteroPackages/Pytero.git /tmp/pip-req-build-ax_8ondu
Resolved https://github.com/PteroPackages/Pytero.git to commit 2909951bf8d0f311a9b248fc26a13eaf3e2da61d
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
Traceback (most recent call last):
File "/home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogiq6u77/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogiq6u77/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-ogiq6u77/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-ogiq6u77/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 12, in <module>
File "/tmp/pip-req-build-ax_8ondu/pytero/__init__.py", line 13, in <module>
from .app import PteroApp
File "/tmp/pip-req-build-ax_8ondu/pytero/app.py", line 11, in <module>
from .http import RequestManager
File "/tmp/pip-req-build-ax_8ondu/pytero/http.py", line 5, in <module>
from aiohttp import ClientSession, ClientResponse
ModuleNotFoundError: No module named 'aiohttp'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
(seacogs-jV_KYu65-py3.11) seasw@FishCenter:~/Documents/SeaCogs$ pip -V
pip 24.0 from /home/seasw/.cache/pypoetry/virtualenvs/seacogs-jV_KYu65-py3.11/lib/python3.11/site-packages/pip (python 3.11)
p(seacogs-jV_KYu65-py3.11) seasw@FishCenter:~/Documents/SeaCogs$ python -V
Python 3.11.8
I'm trying to install Pytero with Poetry.
I'm on Python 3.11.8, and have
python3.11-devandpython3.11-venvinstalled through deadsnake's ppa on Ubuntu22.04.3LTS (WSL).I do have
aiohttpinstalled, and other packages in the venv can use it as intended.Here's the error:
pip install git+https://github.com/PteroPackages/Pytero.giterror: