-
Notifications
You must be signed in to change notification settings - Fork 66
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
ModuleNotFoundError: No module named 'encodings' #481
Comments
I guess this is the problem:
But DietPi (based on Rasbian/Debian 11) has Python 3.9, so the correct target for the symlink would be |
I fixed it by copying python 3.9 to the mariner directory, copying some files from python3.7 to python3.9 directory, and editing/relaunching the post-install script. It's faster than compiling required Python on Zero. Symlink Python 3.7 to the Python 3.9
Copy Python 3.9 libs to the mariner: Go to the mariner directory and copy some files/dirs from the Python 3.7 to the Python 3.9 directory:
Edit postinstall script adding Python 3.9 version - find the next string and add Python 3.9 version: Run postinstall script: Now web interface is running but there are another error "Unexpected Printer Response" (I don't have a connected printer yet, so not sure if this error cannot be due to this fact)
|
Thanks @dmpanch, i've now rebuilt everything against Python 3.9 and got it to work, at least theoretically. Your approach is probably a lot faster, so i'll give that a shot for the next time. But i guess it would be nicer if the package would be built for the current Python version, i guess. Anyways, now i'm running into a problem similar to yours (which doesn't look like it's python related, though):
That looks like mariner doesn't understand what printer's status output? |
@jangrewe totally agree with you about the Python version. Btw, today I found PPA with the different Python versions, it would have been useful a few days ago. |
Thank you dmpanch, you saved my day. There is only one slight mistake in your ln command, the parameters need to be swapped; the correct command is |
Problem solved, check here #493 for install python 3.7.4 |
I got around this by starting with a legacy raspbian image. The Debian Buster based image released Dec 2nd 2021 comes with python 3.7 instead of 3.9, and Mariner installs & runs with no issues. |
I'm in the process of writing a comprehensive issue with a sane solution included, maybe using pyenv. |
Description
Mariner can't be started on DietPi
Reproduction Steps
Steps to reproduce the behavior:
dbus
to make systemd behave properlyExpected Behavior
Mariner starts, preferably from the systemd unit, but manual start via
sudo -u mariner mariner
is acceptable.Screenshots / Logs
Details:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: