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

Failed to run on python 3.12 #3

Open
k4ml opened this issue Jan 3, 2025 · 1 comment
Open

Failed to run on python 3.12 #3

k4ml opened this issue Jan 3, 2025 · 1 comment

Comments

@k4ml
Copy link
Contributor

k4ml commented Jan 3, 2025

Ubuntu 24.04 comes with python 3.12. Running webship on it failed with error:-

Traceback (most recent call last):
  File "/home/ubuntu/.local/share/pipx/venvs/webship/lib/python3.12/site-packages/invoke/util.py", line 24, in <module>
    from .vendor.six.moves import reduce  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'invoke.vendor.six.moves'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.local/bin/webship", line 5, in <module>
    from webship import program
  File "/home/ubuntu/.local/share/pipx/venvs/webship/lib/python3.12/site-packages/webship/__init__.py", line 22, in <module>
    from invoke import Collection, Program
  File "/home/ubuntu/.local/share/pipx/venvs/webship/lib/python3.12/site-packages/invoke/__init__.py", line 2, in <module>
    from .collection import Collection  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.local/share/pipx/venvs/webship/lib/python3.12/site-packages/invoke/collection.py", line 4, in <module>
    from .util import six, Lexicon, helpline
  File "/home/ubuntu/.local/share/pipx/venvs/webship/lib/python3.12/site-packages/invoke/util.py", line 31, in <module>
    from lexicon import Lexicon  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'lexicon'
@k4ml
Copy link
Contributor Author

k4ml commented Jan 3, 2025

One workaround now is to install python 3.8 using uv and install webship into local venv.

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

1 participant