Skip to content

Failed to run on python 3.12 #3

Description

@k4ml

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions