Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314003 - app-portage/metagen-0.5.1 crashes on startup
Summary: app-portage/metagen-0.5.1 crashes on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jesus Rivero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-08 23:11 UTC by Sebastian Pipping
Modified: 2010-04-09 19:27 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2010-04-08 23:11:12 UTC
# metagen
Traceback (most recent call last):
  File "/usr/bin/metagen-2.6", line 22, in <module>
    import metagenerator
ImportError: No module named metagenerator
Comment 1 Sebastian Pipping gentoo-dev 2010-04-09 13:38:27 UTC
I modified

  import metagenerator

to

  print '\n'.join('- %s' % e for e in sys.path)
  import metagenerator

resulting in this output:

# metagen -m
- /usr/bin
- /usr/lib/python26.zip
- /usr/lib/python2.6
- /usr/lib/python2.6/plat-linux2
- /usr/lib/python2.6/lib-tk
- /usr/lib/python2.6/lib-old
- /usr/lib/python2.6/lib-dynload
- /usr/lib/python2.6/site-packages
- /usr/lib/python2.6/site-packages/PIL
- /usr/lib/python2.6/site-packages/gst-0.10
- /usr/lib/python2.6/site-packages/gtk-2.0
- /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode
- /usr/lib/portage/pym
Traceback (most recent call last):
  File "/usr/bin/metagen-2.6", line 23, in <module>
    import metagenerator
ImportError: No module named metagenerator

I'll migrate it to

  import metagen.metagenerator

For that to work I'll rename metagen.py to main.py.
Having a file metagen/metagen.py seems to be trouble, anyway.
Comment 2 Sebastian Pipping gentoo-dev 2010-04-09 13:51:02 UTC
I have pushed a commit to fixed it, please take over.
http://git.overlays.gentoo.org/gitweb/?p=proj/metagen.git;a=commitdiff;h=78df52469b06031c4dea860843b2c6ac7ff2a4c0
Comment 3 Jesus Rivero (RETIRED) gentoo-dev 2010-04-09 19:27:05 UTC
Hi, 
    metagen-0.5.2 is in CVS now. Thanks Sebastian for the help. 

    Best regards,