-
Notifications
You must be signed in to change notification settings - Fork 385
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
ImportError: libmypaint-1.3.so.0: can not open shared object file: No such file or directory #738
Comments
Please don't run MyPaint as root (do not run it with sudo as above). It will write files which you will not be able to overwrite or delete. Do not run commands with Please use Github's "code fencing" feature for log output or code. Like this:
If you don't, github sometimes tries to be too smart about references to other bugs, and will make an association when it shouldn't. More information here: https://guides.github.com/features/mastering-markdown/#examples (under "Code") |
Hi there - thanks for the feedback! This issue tracker is not for direct user support really. We try to limit it so that each thread is a single fixable issue which can be closed by changing the MyPaint code. I won't close this report straight away though because sometimes we can help. Often the feedback is useful too, and sometimes support requests can turn into stuff programmers can actually do something about! We may not be able to help you straight away here, but don't be discouraged if we can't. Issue trackers don't get that many views, sadly. You may find you get more useful feedback from the MyPaint Community Forums. |
First, lets be sure it's a real bug. Do a fresh clone of both mypaint and libmypaint, and reinstall them using the instruction on these pages:
You don't need the line about submodules, and you don't need to run anything with sudo except for the final "install" commands. After you have installed libmypaint, please do the following, and paste the output here between backtick lines: pkg-config --libs libmypaint
pkg-config --cflags libmypaint
ls -ld /usr/lib/*mypaint* /usr/local/lib/*mypaint* [EDIT: oops, pasted a bit too much. That's three lines...]
|
Have you tried |
@Itzcuauhtli any luck trying the suggestions above? |
I had the same problem, but running |
@Itzcuauhtli Please respond. If we get no response, this issue is just clutter in our issue tracker. Did running Why sudo for ldconfigldconfig is a program which updates your computer's idea of what libs it has installed by rewriting links with versions in their filenames. Normally this step is handled automatically by operating system packages or application bundles. If you are doing it manually, you need sudo for this step because the links are contained in a protected area. ldconfig is not part of MyPaint. It is a low-level program that can be found on any Linux system. ldconfig is not needed for Windows computers. Those use a different way of locating library files. Fixing a root-owned MyPaint configuration (accidental "sudo")Using sudo for arbitrary things because they don't work at first could eventually break your Ubuntu install. You may already have broken your MyPaint configuration. You should be able to fix that and other things which are going wrong with:
This chown command line changes the ownership of all files within your home folder, including any root-owned files which the MyPaint you ran as root may have written. It changes them to be owned by you once again. It will tell you about the changes it makes, so the output can be blank. Sudo is needed for this command because the underlying chown() system call is not allowed to make file ownership changes without special privileges. The system administrator in me is reminding me: unmount any drive mounts under your home first. I think Ubuntu and other systemd systems place flash drives and other things under /media these days, so you should be safe. But check what |
TRIAGE NOTE: looks like a user support request. Normally we direct these to the community forums, but there were issues with sudo which it is good to document. Works for everyone else, so this issue should be closed after one week if no further information is forthcoming that would allow it to be progressed to |
Closing this old, stale issue. |
Hello, I come to you with the following problem. Normally I use MyPaint compiled from git and normally I don't have a problem, but this time I can't resolve it. My problem then begins I reinstall Ubuntu 16.04 LTS in my laptop (an Asus S-300c) with Unity. I compile from both libmypaint and mypaint. In the case of libmypaint I follow the webpage's instructions
$./autogen.sh
$ ./configure
$ sudo make install
In the case of MyPaint I install from the next form:
$ git clone https://github.com/mypaint/mypaint.git
$ cd mypaint
$ git pull
$ git submodule update --init --force
$ scons
$ sudo scons prefix=/usr/local install
$ sudo mypaint
But in this last step, terminal give me the next message
INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix u'/usr/local'
INFO: lib.i18n: POSIX: LANG='es_MX.UTF-8'
INFO: lib.i18n: POSIX: LANGUAGE='es_MX:es'
Traceback (most recent call last):
File "/usr/local/bin/mypaint", line 462, in
main.main(datapath, iconspath, old_confpath, version=version)
File "/usr/local/share/mypaint/gui/main.py", line 96, in main
from gui import application
File "/usr/local/share/mypaint/gui/application.py", line 49, in
import lib.document
File "/usr/local/share/mypaint/lib/document.py", line 37, in
import lib.helpers as helpers
File "/usr/local/share/mypaint/lib/helpers.py", line 26, in
import mypaintlib
File "/usr/local/share/mypaint/lib/mypaintlib.py", line 28, in
_mypaintlib = swig_import_helper()
File "/usr/local/share/mypaint/lib/mypaintlib.py", line 20, in swig_import_helper
import _mypaintlib
ImportError: libmypaint-1.3.so.0: can not open shared object file: No such file or directory
(originally, in spanish:
ImportError: libmypaint-1.3.so.0: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio
)
So. I missing something or I'm missing something?
Thanks for reading me :)
The text was updated successfully, but these errors were encountered: