MyPaint no longer able open in Trisquel after removing kernels from my root partition
- Inicie sesión ou rexístrese para enviar comentarios
Hi there,
I've recently been cleaning out my root partition because it was getting full and I had no choice but to remove quite a few kernels, leaving some behind especially the first and latest kernels.
However, although happy to have made more space, this change must've affected my creative app 'MyPaint' which I use for sketches and what not. I can still open 'Krita' without an issue, but my main focus is trying to find out which kernel that I had removed which must've been the one able to open up 'Mypaint' in the first place.
I'm just unsure where to begin looking for it.
I've recently been cleaning out my root partition because it was getting full and I had no choice but to remove quite a few kernels, leaving some behind especially the first and latest kernels.
'sudo apt autoremove' should take care of that for you. What kernel images remain, in /boot?
However, although happy to have made more space, this change must've affected my creative app 'MyPaint' which I use for sketches and what not.
MyPaint should run on top of any kernel. Any error message when you execute it from a terminal emnulator?
Hi again Magic Banana,
Thank you for your time.
I have used 'sudo apt autoremove' before but my root partition just kept filling up for some reason. As for the remaining kernels, here is a list of them:
"dpkg --list | grep linux-image
rc linux-image-5.15.0-140-generic 5.15.0-140.150+11.0trisquel31 amd64 Linux-libre kernel image for version 5.15.0
rc linux-image-5.15.0-141-generic 5.15.0-141.151+11.0trisquel31 amd64 Linux-libre kernel image for version 5.15.0
rc linux-image-5.15.0-142-generic 5.15.0-142.152+11.0trisquel31 amd64 Linux-libre kernel image for version 5.15.0
rc linux-image-5.15.0-143-generic 5.15.0-143.153+11.0trisquel31 amd64 Linux-libre kernel image for version 5.15.0
rc linux-image-5.15.0-144-generic 5.15.0-144.157+11.0trisquel31 amd64 Linux-libre kernel image for version 5.15.0
rc linux-image-5.15.0-151-generic 5.15.0-151.161+11.0trisquel31 amd64 Linux-libre kernel image for version 5.15.0
ii linux-image-5.15.0-152-generic 5.15.0-152.162+11.0trisquel31 amd64 Linux-libre kernel image for version 5.15.0
ii linux-image-5.15.0-153-generic 5.15.0-153.163+11.0trisquel31 amd64 Linux-libre kernel image for version 5.15.0
ii linux-image-5.15.0-56-generic 5.15.0-56.62+11.0trisquel13 amd64 Linux-libre kernel image for version 5.15.0
ii linux-image-6.8.0-79-generic 6.8.0-79.79~22.04.1+11.0trisquel34 amd64 Linux-libre kernel image for version 6.8.0
ii linux-image-generic 5.15.0.153.153+11.0trisquel7 amd64 Generic Linux-libre kernel image
ii linux-image-generic-hwe-11.0 6.8.0-79.79~22.04.1+11.0trisquel7 amd64 Generic Linux-libre kernel image
ii linux-image-virtual-hwe-22.04-edge 5.15.0.56.54+11.0trisquel6 amd64 "
When opening 'MyPaint' from the terminal, all I get is this:
"mypaint
INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix '/usr'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 161, in
from . import random
File "/usr/lib/python3/dist-packages/numpy/random/__init__.py", line 180, in
from . import _pickle
File "/usr/lib/python3/dist-packages/numpy/random/_pickle.py", line 1, in
from .mtrand import RandomState
File "mtrand.pyx", line 1, in init numpy.random.mtrand
File "bit_generator.pyx", line 40, in init numpy.random.bit_generator
File "/usr/lib/python3.10/secrets.py", line 18, in
from hmac import compare_digest
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 879, in exec_module
File "", line 1012, in get_code
File "", line 672, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_mypaint.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 161, in
from . import random
File "/usr/lib/python3/dist-packages/numpy/random/__init__.py", line 180, in
from . import _pickle
File "/usr/lib/python3/dist-packages/numpy/random/_pickle.py", line 1, in
from .mtrand import RandomState
File "mtrand.pyx", line 1, in init numpy.random.mtrand
File "bit_generator.pyx", line 40, in init numpy.random.bit_generator
File "/usr/lib/python3.10/secrets.py", line 18, in
from hmac import compare_digest
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 879, in exec_module
File "", line 1012, in get_code
File "", line 672, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
File "/usr/bin/mypaint", line 293, in
= get_paths()
File "/usr/bin/mypaint", line 241, in get_paths
from lib import fileutils
File "/usr/lib/mypaint/lib/fileutils.py", line 25, in
import lib.helpers
File "/usr/lib/mypaint/lib/helpers.py", line 25, in
from . import mypaintlib
File "/usr/lib/mypaint/lib/mypaintlib.py", line 13, in
from . import _mypaintlib
ImportError: numpy.core.multiarray failed to import
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_mypaint.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/mypaint", line 293, in
= get_paths()
File "/usr/bin/mypaint", line 241, in get_paths
from lib import fileutils
File "/usr/lib/mypaint/lib/fileutils.py", line 25, in
import lib.helpers
File "/usr/lib/mypaint/lib/helpers.py", line 25, in
from . import mypaintlib
File "/usr/lib/mypaint/lib/mypaintlib.py", line 13, in
from . import _mypaintlib
ImportError: numpy.core.multiarray failed to import
"
It's worth mentioning that I have already tried uninstalling and re-installing the app without success.
It's like there are files missing or relocated and lost or something.
I have used 'sudo apt autoremove' before but my root partition just kept filling up for some reason.
Use it again: it will invite you to remove more kernels. Doesn't UpdateManager suggest you that too? It should, if it is installed. Is it?
ImportError: numpy.core.multiarray failed to import
The above line suggests that the package named python3-numpy is not installed. Nevertheless, it should be, if MyPaint was installed through the package manager, because it is a dependence of mypaint. How did you install MyPaint?
I've just tried 'sudo apt autoremove' again. Some kernels apparently have been removed now. I've also updated and upgraded everything too. Still doesn't work unfortunately.
I just installed MyPaint via the 'Add/Remove Applications' software found on Trisquel. It had always worked fine without issues til recently.
Also, my 'Software Update' & my 'Software & Updates' isn't opening now for some reason.
Maybe this link could give you some ideas, perhaps it's a problem with your python.
https://stackoverflow.com/questions/30861493/how-to-fix-python-valueerrorbad-marshal-data
Also,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_mypaint.1000.crash'
I'm guessing but could be wrong that having crashed it wants to log it in some way in a /var/crash directory which doesn't exist in my system but I did create one and the file it was looking for:
$ sudo mkdir /var/crash
$ sudo touch /var/crash/_usr_bin_mypaint.1000.crash
Okay, I followed your advice using:
$ sudo mkdir /var/crash
$ sudo touch /var/crash/_usr_bin_mypaint.1000.crash
...but now,I'm just getting this:
"
sudo mypaint
INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix '/usr'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 161, in
from . import random
File "/usr/lib/python3/dist-packages/numpy/random/__init__.py", line 180, in
from . import _pickle
File "/usr/lib/python3/dist-packages/numpy/random/_pickle.py", line 1, in
from .mtrand import RandomState
File "mtrand.pyx", line 1, in init numpy.random.mtrand
File "bit_generator.pyx", line 40, in init numpy.random.bit_generator
File "/usr/lib/python3.10/secrets.py", line 18, in
from hmac import compare_digest
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 879, in exec_module
File "", line 1012, in get_code
File "", line 672, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Traceback (most recent call last):
File "/usr/bin/mypaint", line 293, in
= get_paths()
File "/usr/bin/mypaint", line 241, in get_paths
from lib import fileutils
File "/usr/lib/mypaint/lib/fileutils.py", line 25, in
import lib.helpers
File "/usr/lib/mypaint/lib/helpers.py", line 25, in
from . import mypaintlib
File "/usr/lib/mypaint/lib/mypaintlib.py", line 13, in
from . import _mypaintlib
ImportError: numpy.core.multiarray failed to import
"
I'm assuming I will have to try reinstalling (python3) the setuptools using this:
"
sudo pip3 install --upgrade --force-reinstall setuptools
" ?
But I only get this:
"
sudo pip3 install --upgrade --force-reinstall setuptools
sudo: pip3: command not found
"
The last entry in the link I posted might be interesting. It suggests:
1. Read the stack trace from the bottom to the top to find the first installed package causing the issue.
2. Uninstall and then reinstall the problematic package.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 161, in ...
So is it saying the problem started with numpy?
Doing '$ sudo apt search numpy' I found:
python3-numpy/aramo-security,aramo-updates 1:1.21.5-1ubuntu22.04.1 amd64
Fast array facility to the Python 3 language
I guess I would try to resolve the numpy problem as it's the first place a problem is indicated. That might fix it or maybe I would have a new error to fix and have to go down the line fixing each one. But I'm not a certified computer health provider so I can't legally make any recommendations. :) But I do wish you luck.
Also, was anything written to
/var/crash/_usr_bin_mypaint.1000.crash ?
I would do '$file /var/crash/_usr_bin_mypaint.1000.crash' to see if it has asci text safe to open in mousepad or read with the less command. Have no idea what its purpose is but it might contain some clues.
So is it saying the problem started with numpy?
Yes, it is, as I wrote earlier. Nevertheless, I am afraid the issue is more fundamental, now that hi-from-mike wrote that:
Also, my 'Software Update' & my 'Software & Updates' isn't opening now for some reason.
I would check the root filesystem and the disk itself from a live system. See https://trisquel.info/en/wiki/starting-installable-live-system on how to start it. Once done, you can install the package named "gnome-disk-utility", as you would normally do, for instance using the "Synaptic Package Manager". After launching GNOME Disks, select the disk in the left-hand pane and test it (click on "SMART Data & Self-Tests..." in the burger menu and on the "Start Self-test" button) or click on the root partition and on the button with gears below, to check/repair its filesystem.
I have searched for numpy but could only find 'numpy-stl.' Had tried installing 'python3-numpy' but states that it's already installed. Had uninstalled it and re-installed it, plus 'mypaint python3-fonttools python3-numpy python3-pythran python3-scipy python3-ufolib2 python3-wxgtk4.0' but still getting the same results. Even updated and upgraded. Same experience, unfortunately.
Also:
$ file /var/crash/_usr_bin_mypaint.1000.crash
/var/crash/_usr_bin_mypaint.1000.crash: empty
'So is it saying the problem started with numpy?
Yes, it is, as I wrote earlier.'
Oh yeah, I see you did write that right off the bat.
I was wondering about this:
I would check the root filesystem and the disk itself from a live system. See https://trisquel.info/en/wiki/starting-installable-live-system on how to start it. Once done, you can install the package named "gnome-disk-utility", as you would normally do, for instance using the "Synaptic Package Manager".'
MB, are you saying install "gnome-disk-utility" while in the live system? I've never tried to install something while using a live iso. Does it get just installed to RAM?
Yes, it does. It is of course also possible to directly execute the command line utilities GNOME Disks actually run. Those are already any good live system.
Hey all,
I have already followed your advice, used the 'SMART Data & Self-Tests' and checked/repaired the root. Still, nothing has changed.
I'm hoping that I won't need to try removing and re-install Python3/python3.10.
I have already followed your advice, used the 'SMART Data & Self-Tests' and checked/repaired the root.
Does SMART deem the disk healthy? Was the root filesystem corrupted?
I'm hoping that I won't need to try removing and re-install Python3/python3.10.
Does the interpreter apparently work, if you launch it in the following way in a terminal?
$ python3
Do you have "broken packages"? For instance does the "Synaptic Package Manager" list some (filter behind the button "Custom Filters", in the bottom-left corner of the window)?