Summary: | dev-util/dwarves-1.9: ostra-cg cannot find python module ostra: ImportError: No module named ostra | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Stein <alexanders83> |
Component: | [OLD] Development | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | python |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info |
Python team can you advise? I have no clue about Python. This package is missing dependency on Python 2. /usr/bin/ostra-cg contains syntax incompatible with Python 3, so shebang should be fixed. /usr/bin/ostra-cg should change sys.path: -import sys, datetime, os, ostra +import sys +sys.path.insert(0, "/usr/share/dwarves/runtime/python") +import datetime, os, ostra +*dwarves-1.10-r1 (03 Mar 2013) + + 03 Mar 2013; Julian Ospald <hasufell@gentoo.org> -dwarves-1.10.ebuild, + +dwarves-1.10-r1.ebuild, +files/dwarves-1.10-python-import.patch: + fix bug 423817 live ebuild is probably still broken, but I won't apply patches or funny seds there |
Created attachment 316411 [details] emerge --info The python script ostra-cg doesn not find it's own python module ostra.py which is installed as /usr/share/dwarves/runtime/python/ostra.py. error message: /usr/bin/ostra-cg Traceback (most recent call last): File "/usr/bin/ostra-cg", line 13, in <module> import sys, datetime, os, ostra ImportError: No module named ostra