Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 313065

Summary: app-portage/metagen-0.5.1 fails to import metagenerator
Product: Gentoo Linux Reporter: Ai Locke Shinseiko (Wizzleby) <Wizzleby>
Component: Current packagesAssignee: Jesus Rivero (RETIRED) <neurogeek>
Status: RESOLVED INVALID    
Severity: normal CC: rion4ik
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: metagen-0.5.1-frommetagenimport.patch

Description Ai Locke Shinseiko (Wizzleby) 2010-04-04 08:18:38 UTC
when running metagen, traceback occurs:

Traceback (most recent call last):
  File "/usr/bin/metagen-2.6", line 26, in <module>
    import metagenerator
ImportError: No module named metagenerator
Comment 1 Ai Locke Shinseiko (Wizzleby) 2010-04-04 08:20:23 UTC
Created attachment 226525 [details, diff]
metagen-0.5.1-frommetagenimport.patch

instead of 'import metagenerator', 'from metagen import metagenerator'
Comment 2 Jesus Rivero (RETIRED) gentoo-dev 2010-04-08 02:02:15 UTC
Hi Wizzleby, 

   Could you reinstall and retry? I can't reproduce this and its pretty weird that you get this error as site-packages/metagen should be the first dir in sys.path, therefore it should find metagenerator. 

   I'm closing the bug, please re-open if you still get issues with this. 

   Best regards and thanks for the report.
Comment 3 Sergey Ilinykh 2010-04-11 08:02:59 UTC
i'm sure something wrong /usr/bin/metagen wrapper, since /usr/bin/metagen-2.6 works fine
Comment 4 Sergey Ilinykh 2010-04-11 08:12:30 UTC
I've commented out this line in the wrapper script

os.execv(python_interpreter_path, [python_interpreter_path] + sys.argv)

and it started working