-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
SyntaxError: invalid syntax #9
Comments
13 tasks
same issue when trying to build for nixpkgs in version 0.8.1, 0.9.0 and can not import module. File "<string>", line 1, in <module>
File "<string>", line 1, in <lambda>
File "/nix/store/asiphbpiy2gmidfm3xbwcikayhs66289-python3-3.11.7/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/nix/store/clqigl9gvs52dvsq15xsm7w5pbwq47yj-python3.11-mpris-server-0.9.0/lib/python3.11/site-packages/mpris_server/__init__.py", line 5, in <module>
from . import adapters, base, interfaces, mpris, server, types
File "/nix/store/clqigl9gvs52dvsq15xsm7w5pbwq47yj-python3.11-mpris-server-0.9.0/lib/python3.11/site-packages/mpris_server/adapters.py", line 6, in <module>
from .base import ActivePlaylist, DEFAULT_DESKTOP, DEFAULT_ORDERINGS, DEFAULT_PLAYLIST_COUNT, DEFAULT_RATE, DbusObj, \
File "/nix/store/clqigl9gvs52dvsq15xsm7w5pbwq47yj-python3.11-mpris-server-0.9.0/lib/python3.11/site-packages/mpris_server/base.py", line 27
type Properties = Collection[Property]
^^^^^^^^^^
SyntaxError: invalid syntax
|
That is typing syntax that was introduced in Python 3.12. https://github.com/alexdelorenzo/mpris_server/blob/master/pyproject.toml#L15 should say |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It builds fine with
python -m build --wheel --no-isolation
, however, I receive this output runningpython -m installer --destdir="$pkgdir" dist/*.whl
with both 0.8.0 and 0.8.1:The text was updated successfully, but these errors were encountered: