Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing #9

Open
Towux opened this issue Aug 18, 2023 · 3 comments
Open

Error while installing #9

Towux opened this issue Aug 18, 2023 · 3 comments

Comments

@Towux
Copy link

Towux commented Aug 18, 2023

Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/PteroPackages/Pytero
Cloning https://github.com/PteroPackages/Pytero to /tmp/pip-req-build-yfi10fef
Running command git clone --filter=blob:none --quiet https://github.com/PteroPackages/Pytero /tmp/pip-req-build-yfi10fef
Resolved https://github.com/PteroPackages/Pytero to commit de38e1a
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-yfi10fef/setup.py", line 12, in
from pytero import version
File "/tmp/pip-req-build-yfi10fef/pytero/init.py", line 13, in
from .app import PteroApp
File "/tmp/pip-req-build-yfi10fef/pytero/app.py", line 12, in
from .node import Node
File "/tmp/pip-req-build-yfi10fef/pytero/node.py", line 2, in
from .servers import AppServer
File "/tmp/pip-req-build-yfi10fef/pytero/servers.py", line 2, in
from .types import _Http, Allocation, Container, Egg, FeatureLimits, Limits,
File "/tmp/pip-req-build-yfi10fef/pytero/types.py", line 40, in
class _Http:
File "/tmp/pip-req-build-yfi10fef/pytero/types.py", line 43, in _Http
_raw: Callable[[str, str, Any | None], Any]
TypeError: unsupported operand type(s) for |: '_SpecialForm' and 'NoneType'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@devnote-dev
Copy link
Member

What version of Python are you using?

@Towux
Copy link
Author

Towux commented Aug 19, 2023

3.9

@devnote-dev
Copy link
Member

I think pip may have missed something here — the minimum supported version is 3.10 so it shouldn't have even installed. Upgrading your Python install should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants