Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423817 - dev-util/dwarves-1.9: ostra-cg cannot find python module ostra: ImportError: No module named ostra
Summary: dev-util/dwarves-1.9: ostra-cg cannot find python module ostra: ImportError: ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Reported: 2012-06-27 11:58 UTC by Alexander Stein
Modified: 2013-03-03 15:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info (info,5.22 KB, text/plain)
2012-06-27 11:58 UTC, Alexander Stein

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Stein 2012-06-27 11:58:10 UTC
Created attachment 316411 [details]
emerge --info

The python script ostra-cg doesn not find it's own python module which is installed as /usr/share/dwarves/runtime/python/
error message:
Traceback (most recent call last):
  File "/usr/bin/ostra-cg", line 13, in <module>
    import sys, datetime, os, ostra
ImportError: No module named ostra
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-27 14:08:20 UTC
Python team can you advise? I have no clue about Python.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-06-27 18:54:10 UTC
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
Comment 3 Julian Ospald 2013-03-03 15:13:52 UTC
+*dwarves-1.10-r1 (03 Mar 2013)
+  03 Mar 2013; Julian Ospald <> -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