Bug 797263
Summary: | [abrt] mypaint-1.0.0-2.fc17: mypaint:108:get_paths:ImportError: No module named lib | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joshua <woodguy552010> |
Component: | mypaint | Assignee: | Christoph Wickert <christoph.wickert> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 17 | CC: | christoph.wickert, harald, jtrutwin, tomspur |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:92b8f8ba517a031470eb52f56260cc6c3c1f1c7c | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-10-10 16:30:19 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joshua
2012-02-24 17:38:52 UTC
Thanks for submitting this crash report. Does 'rpm -V mypaint mypaint-data' produce any output? Hey, can you please get back to me? As I received no feedback from you, I am closing this bug now. Feel free to reopen it when you can provide the info I need. Is it possible to reopen this? I'm having the exact same problem on Fedora 17 - the rpm -V command produces no output on my system. Thank you, Josh Sure we can reopen this, but frankly speaking I have no idea why the lib cannot be imported. It *is* definitely there. Thomas, I recall we once had a bug report where python did not import something for some reason I don't remember. Can you help me out? (In reply to comment #5) > Sure we can reopen this, but frankly speaking I have no idea why the lib > cannot be imported. It *is* definitely there. > > Thomas, I recall we once had a bug report where python did not import > something for some reason I don't remember. Can you help me out? Uh... There are so many python bugs ;) I just tried to reproduce this, without success. It's working fine here on f16 (both versions, the current one of f16 and recompiled the one from rawhide). After a dive deep in, it seems mypaint must be called with /usr/bin/mypaint or mypaint doesn't know that it's installed properly. When being called with "/usr/mypaint" it thinks that prefix is / and not /usr: $ /bin/mypaint We are not correctly installed or compiled! script: "/bin/mypaint" deduced prefix: "/" lib_shared: "/share/mypaint/" lib_compiled: "/lib64/mypaint/" Traceback (most recent call last): File "/bin/mypaint", line 164, in <module> datapath, extradata, confpath, localepath = get_paths() File "/bin/mypaint", line 108, in get_paths from lib import mypaintlib ImportError: No module named lib Christoph, it is possible to change the behaviour of KDE, so it properly opens /usr/bin/mypaint? Confirmed - the problem exists only when running /bin/mypaint, not /usr/bin/mypaint. In my env the PATH has /bin before /usr/bin. Also, I'm not sure if this changed in f17 or earlier but /bin is a link to /usr/bin so cannot just the /bin version. For now I will just adjust our environment to run the /usr/bin/mypaint explicitly. Thanks, Josh /bin/mypaint: ... # this script is installed as $prefix/bin. We just need $prefix to continue. #pwd=os.getcwd() # why???? #dir_install=os.path.normpath(join(pwd,scriptdir)) # why???? dir_install=scriptdir # same, except maybe if scriptdir is relative... ... And I would do: dir_install = os.path.realpath(scriptdir) which should fix the issue. Thomas, hold your horses please, I think Harald's patch is better than yours. I just fixed it differently, but your solution is better seemed better. A few lines above scriptdir already needs the os.path.realpath instead. Update on the way. Thanks! mypaint-1.0.0-4.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/mypaint-1.0.0-4.fc18 mypaint-1.0.0-4.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/mypaint-1.0.0-4.fc17 Package mypaint-1.0.0-4.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mypaint-1.0.0-4.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-14845/mypaint-1.0.0-4.fc18 then log in and leave karma (feedback). curious how long it'll take before this passes QA and can be applied on FC 17? thank you! Josh 3-4 more days. The update needs to be in updates-testing for a week unless there are 3 testers that give positive feedback. |