Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232536 - Can`t install squirrelmail-1.4.15 - problem with "No module named WebappConfig.config"
Summary: Can`t install squirrelmail-1.4.15 - problem with "No module named WebappConfi...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-21 06:16 UTC by Marek Królikowski
Modified: 2010-01-13 01:15 UTC (History)
1 user (show)

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 Marek Królikowski 2008-07-21 06:16:24 UTC
After i try update squirrelmail to 1.4.15 got error "No module named WebappConfig.config"

Reproducible: Always

Steps to Reproduce:
1. emerge -pv squirrelmail
2. crash :-(
3.

Actual Results:  
1. emerge -pv squirrelmail
Calculating dependencies... done!
[ebuild  NS   ] mail-client/squirrelmail-1.4.15  USE="mysql nls ssl -filter -ldap -postgres -spell -vhosts" 0 kB

[CUT]
>>> Emerging (1 of 1) mail-client/squirrelmail-1.4.15 to /
 * compatibility-2.0.9-1.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...         [ ok ]
 * secure_login-1.3-1.2.8.tar.gz RMD160 SHA1 SHA256 size ;-) ...          [ ok ]
 * admin_add.0.1-1.4.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...             [ ok ]
 * show_ssl_link-2.2-1.2.8.tar.gz RMD160 SHA1 SHA256 size ;-) ...         [ ok ]
 * squirrelmail-1.4.15.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
 * all_locales-1.4.13-20071220.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...    [ ok ]
 * squirrelmail-decode-1.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...        [ ok ]
 * retrieveuserdata.0.9-1.4.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...      [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking squirrelmail-1.4.15.tar.bz2 ;-) ...                           [ ok ]
 * checking squirrelmail-decode-1.2.tar.bz2 ;-) ...                       [ ok ]
 * checking retrieveuserdata.0.9-1.4.0.tar.gz ;-) ...                     [ ok ]
 * checking compatibility-2.0.9-1.0.tar.gz ;-) ...                        [ ok ]
 * checking secure_login-1.3-1.2.8.tar.gz ;-) ...                         [ ok ]
 * checking show_ssl_link-2.2-1.2.8.tar.gz ;-) ...                        [ ok ]
 * checking admin_add.0.1-1.4.0.tar.gz ;-) ...                            [ ok ]
 * checking all_locales-1.4.13-20071220.tar.bz2 ;-) ...                   [ ok ]
Traceback (most recent call last):
  File "/usr/sbin/webapp-config", line 27, in <module>
    from WebappConfig.config import Config
ImportError: No module named WebappConfig.config
 *
 * ERROR: mail-client/squirrelmail-1.4.15 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1244:  Called webapp_pkg_setup
 *           webapp.eclass, line  378:  Called webapp_read_config
 *           webapp.eclass, line   60:  Called die
 * The specific snippet of code:
 *              ENVVAR=$(${WEBAPP_CONFIG} --query ${PN} ${PVR}) || die "Could no                                              t read settings from webapp-config!"
 *  The die message:
 *   Could not read settings from webapp-config!
 *
 * If you need support, post the topmost build error, and the call stack if rele                                              vant.
 * A complete build log is located at '/var/tmp/portage/mail-client/squirrelmail                                              -1.4.15/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-client/squir                                              relmail-1.4.15/temp/die.env'.
 *

 * Messages for package mail-client/squirrelmail-1.4.15:

 *
 * ERROR: mail-client/squirrelmail-1.4.15 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1244:  Called webapp_pkg_setup
 *           webapp.eclass, line  378:  Called webapp_read_config
 *           webapp.eclass, line   60:  Called die
 * The specific snippet of code:
 *              ENVVAR=$(${WEBAPP_CONFIG} --query ${PN} ${PVR}) || die "Could no                                              t read settings from webapp-config!"
 *  The die message:
 *   Could not read settings from webapp-config!
 *
 * If you need support, post the topmost build error, and the call stack if rele                                              vant.
 * A complete build log is located at '/var/tmp/portage/mail-client/squirrelmail                                              -1.4.15/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-client/squir                                              relmail-1.4.15/temp/die.env'.
 *

Expected Results:  
Install with no problem :-)
Comment 1 Sven Schwyn (svoop) 2008-07-21 08:12:09 UTC
Same here (amd64).
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2008-07-21 15:16:50 UTC
(In reply to comment #0)
> Traceback (most recent call last):
>   File "/usr/sbin/webapp-config", line 27, in <module>
>     from WebappConfig.config import Config
> ImportError: No module named WebappConfig.config

I guess you (actually both of you) updated python to 2.5 without reading the postinst messages and without running python-updater - and now try to prove that I'm wrong :P
Comment 3 John Goggan 2009-01-19 16:16:16 UTC
Actually, I'm having this same exact problem -- and I DID run python-updater after upgrading python to 2.5.2.  I am using python-updater 0.5 (which is the latest stable for my x86 system).  I am open to suggestions.
Comment 4 Anthony Basile gentoo-dev 2009-09-19 13:15:38 UTC
I confirmed comment #3 on both x86 and amd64.  Running python-updater was insufficient.  I also had to re-emerge webapp-config which "Clean[ed] orphaned Python bytecode from /usr/lib/python2.5/site-packages .."

This also fixes webalizer, net-snmp, and probably other python dependent webapps.

Shall we reopen the bug rather than leaving it as resolved invalid?
Comment 5 Anthony Basile gentoo-dev 2009-09-19 13:21:10 UTC
Sorry, I should add to my previous comment that this was after upgrading to python-2.6.2-r1.