You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run linien on python 3.12 fails due to an import error
raceback (most recent call last):
File "/home/gardener/.local/bin/linien", line 5, in <module>
from linien_gui.app import main
File "/home/gardener/.local/lib/python3.12/site-packages/linien_gui/app.py", line 23, in <module>
from linien_client.connection import LinienClient
File "/home/gardener/.local/lib/python3.12/site-packages/linien_client/connection.py", line 29, in <module>
from .deploy import hash_username_and_password, start_remote_server
File "/home/gardener/.local/lib/python3.12/site-packages/linien_client/deploy.py", line 24, in <module>
from fabric import Connection
File "/home/gardener/.local/lib/python3.12/site-packages/fabric/__init__.py", line 3, in <module>
from .connection import Config, Connection
File "/home/gardener/.local/lib/python3.12/site-packages/fabric/connection.py", line 14, in <module>
from invoke import Context
File "/home/gardener/.local/lib/python3.12/site-packages/invoke/__init__.py", line 23, in <module>
from .loader import FilesystemLoader # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gardener/.local/lib/python3.12/site-packages/invoke/loader.py", line 3, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
The package imp is considered deprecated since python 3.6 and seems to have been dropped with python 3.12. Since the used version of fabric is kind of outdated and still relies on older versions of invoke which in turn uses imp, linien will not run on python 3.12 onwords.
Solution: Bump linien to use recent fabric package. This however needs some code refactoring, since there are breaking changes between fabric 2.7.1 to 3+.
The text was updated successfully, but these errors were encountered:
Trying to run linien on python 3.12 fails due to an import error
The package
imp
is considered deprecated since python 3.6 and seems to have been dropped with python 3.12. Since the used version offabric
is kind of outdated and still relies on older versions ofinvoke
which in turn usesimp
, linien will not run on python 3.12 onwords.Solution: Bump linien to use recent
fabric
package. This however needs some code refactoring, since there are breaking changes betweenfabric
2.7.1 to 3+.The text was updated successfully, but these errors were encountered: