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: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


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

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 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
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 <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