Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466390 - www-apps/moinmoin-1.9.7 - moin.cgi fails to execute if Python 3 is the default interpreter
Summary: www-apps/moinmoin-1.9.7 - moin.cgi fails to execute if Python 3 is the defaul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-18 18:31 UTC by Chris Mayo
Modified: 2013-04-21 21:08 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 Chris Mayo 2013-04-18 18:31:51 UTC
With USE="-vhosts" and apache, /var/log/apache2/error_log:

Traceback (most recent call last):
  File "/var/www/localhost/htdocs/moinmoin/moin.cgi", line 37, in <module>
    from MoinMoin.web.flup_frontend import CGIFrontEnd
ImportError: No module named 'MoinMoin'
[Thu Apr 18 19:02:45.012906 2013] [cgid:error] [pid 5539:tid 140308134201088] 


Editing shebang to specify python2 /var/www/localhost/htdocs/moinmoin/moin.cgi:
#!/usr/bin/env python2

gets it working.


One file could probably be installed in /usr/bin with a fixed shebang too instead of current:
/usr/bin/moin
/usr/bin/moin-python2.7
Comment 1 Tim Harder gentoo-dev 2013-04-21 21:08:48 UTC
Fixed in 1.9.7-r1.