Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488506 - =app-admin/webapp-config-1.51-r1 on =dev-lang/python-3.2 - SyntaxError: invalid token in /usr/lib/python3.2/site-packages/WebappConfig/permissions.py", line 164 - Doesn't install =dev-db/phpmyadmin-4.0.6 in /var/www/localhost/htdocs/phpmyadmin/
Summary: =app-admin/webapp-config-1.51-r1 on =dev-lang/python-3.2 - SyntaxError: inval...
Status: RESOLVED DUPLICATE of bug 481298
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-18 17:00 UTC by Toralf Förster
Modified: 2013-11-02 09:04 UTC (History)
2 users (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 Toralf Förster gentoo-dev 2013-10-18 17:00:27 UTC
At an ~x86 phpmyadmin is not installed in /var/www/localhost/htdocs/(ofc it is installed in /usr/share/webapps/phpmyadmin/) - I assume, it is a webapp-config issue with python-3.2 :


n22 ~ # zcat /var/log/portage/dev-db:phpmyadmin-4.0.6:20131018-155826.log.gz
 * Package:    

dev-db/phpmyadmin-4.0.6                                                                                                                 
 * Repository: gentoo                                                                                                                                  
 * Maintainer: a3li@gentoo.org web-apps@gentoo.org                                                                                                     
 * USE:        abi_x86_32 elibc_glibc kernel_linux test userland_GNU x86                                                                               
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox                                                                                         
>>> Unpacking source...                                                                                                                                
>>> Unpacking phpMyAdmin-4.0.6-all-languages.tar.xz to /var/tmp/portage/dev-db/phpmyadmin-4.0.6/work                                                   
>>> Source unpacked in /var/tmp/portage/dev-db/phpmyadmin-4.0.6/work                                                                                   
>>> Preparing source in /var/tmp/portage/dev-db/phpmyadmin-4.0.6/work/phpMyAdmin-4.0.6-all-languages ...                                               
>>> Source prepared.                                                                                                                                   
>>> Configuring source in /var/tmp/portage/dev-db/phpmyadmin-4.0.6/work/phpMyAdmin-4.0.6-all-languages ...                                             
>>> Source configured.                                                                                                                                 
>>> Compiling source in /var/tmp/portage/dev-db/phpmyadmin-4.0.6/work/phpMyAdmin-4.0.6-all-languages ...
>>> Source compiled.
>>> Test phase [none]: dev-db/phpmyadmin-4.0.6

>>> Install phpmyadmin-4.0.6 into /var/tmp/portage/dev-db/phpmyadmin-4.0.6/image/ category dev-db
 * The phpMyAdmin setup utility has been removed.
 * It is a regular target of various exploits. If you need it, set USE=setup.
 * (config) htdocs/libraries/config.default.php
 * (server owned) htdocs/libraries/config.default.php
 * (info) /usr/portage/dev-db/phpmyadmin/files/postinstall-en-3.1.txt (lang: en)
>>> Completed installing phpmyadmin-4.0.6 into /var/tmp/portage/dev-db/phpmyadmin-4.0.6/image/

ecompressdir: bzip2 -9 /usr/share/doc

 * vhosts USE flag not set - auto-installing using webapp-config
 * This is an installation
 * phpmyadmin-4.0.6 is not installed - using install mode
 * Running /usr/sbin/webapp-config -I -h localhost -u root -d /phpmyadmin phpmyadmin 4.0.6
Traceback (most recent call last):
  File "/usr/sbin/webapp-config", line 42, in <module>
    main()
  File "/usr/sbin/webapp-config", line 39, in main
    config.run()
  File "/usr/lib/python3.2/site-packages/WebappConfig/config.py", line 1200, in run
    ws = self.create_webapp_source()
  File "/usr/lib/python3.2/site-packages/WebappConfig/config.py", line 1452, in create_webapp_source
    from WebappConfig.db import  WebappSource
  File "/usr/lib/python3.2/site-packages/WebappConfig/db.py", line 161, in <module>
    class WebappDB(AppHierarchy):
  File "/usr/lib/python3.2/site-packages/WebappConfig/db.py", line 268, in WebappDB
    dir_perm   = PermissionMap('0755'),
  File "/usr/lib/python3.2/site-packages/WebappConfig/permissions.py", line 164, in __init__
    self.__permissions = eval(permissions)
  File "<string>", line 1
    0755
       ^
SyntaxError: invalid token

 * Running /usr/sbin/webapp-cleaner -p -C /phpmyadmin
 * Package name must be in the form CATEGORY/PN






n22 ~ # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *
  [3]   python3.3



FWIW wwitching back to python 2.7 doesn't help
Comment 1 Toralf Förster gentoo-dev 2013-10-18 17:39:25 UTC
gah -  

re-emergeing webapp-config with python-2.7 and then re-ermerging phpmyadmin helps - so python > 2.7 isn't definitely a choice for portage, even on ~x86
Comment 2 Anthony Basile gentoo-dev 2013-10-18 19:16:28 UTC
(In reply to Toralf Förster from comment #1)
> gah -  
> 
> re-emergeing webapp-config with python-2.7 and then re-ermerging phpmyadmin
> helps - so python > 2.7 isn't definitely a choice for portage, even on ~x86

Yeah, we're working on it.
Comment 3 Devan Franchini (RETIRED) gentoo-dev 2013-10-19 03:37:39 UTC

*** This bug has been marked as a duplicate of bug 481298 ***
Comment 4 Devan Franchini (RETIRED) gentoo-dev 2013-11-02 00:07:54 UTC
Please install webapp-config-1.52 and let me know if you keep running into the issue. You shouldn't though.
Comment 5 Toralf Förster gentoo-dev 2013-11-02 09:04:27 UTC
(In reply to Devan Franchini from comment #4)
> Please install webapp-config-1.52 and let me know if you keep running into
> the issue. You shouldn't though.

solved