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

Bug 466390

Summary: www-apps/moinmoin-1.9.7 - moin.cgi fails to execute if Python 3 is the default interpreter
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: Current packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.