Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313065 - app-portage/metagen-0.5.1 fails to import metagenerator
Summary: app-portage/metagen-0.5.1 fails to import metagenerator
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Jesus Rivero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-04 08:18 UTC by Ai Locke Shinseiko (Wizzleby)
Modified: 2010-04-11 08:12 UTC (History)
1 user (show)

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


Attachments
metagen-0.5.1-frommetagenimport.patch (metagen-0.5.1-frommetagenimport.patch,400 bytes, patch)
2010-04-04 08:20 UTC, Ai Locke Shinseiko (Wizzleby)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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