Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481298 - app-admin/webapp-config-1.51-r1 - /usr/sbin/webapp-config-python3.3: SyntaxError: invalid token
Summary: app-admin/webapp-config-1.51-r1 - /usr/sbin/webapp-config-python3.3: SyntaxEr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
: 488506 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-16 12:47 UTC by tot-to
Modified: 2013-11-02 12:57 UTC (History)
6 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 tot-to 2013-08-16 12:47:39 UTC
Every time I run webapp-config, it craches with the same error. For example:
# webapp-config --list-installs
Traceback (most recent call last):
  File "/usr/sbin/webapp-config-python3.3", line 42, in <module>
    main()
  File "/usr/sbin/webapp-config-python3.3", line 39, in main
    config.run()
  File "/usr/lib64/python3.3/site-packages/WebappConfig/config.py", line 1131, in run
    self.maybe_get('pvr')).listinstalls()
  File "/usr/lib64/python3.3/site-packages/WebappConfig/config.py", line 1430, in create_webapp_db
    from WebappConfig.db import  WebappDB
  File "/usr/lib64/python3.3/site-packages/WebappConfig/db.py", line 161, in <module>
    class WebappDB(AppHierarchy):
  File "/usr/lib64/python3.3/site-packages/WebappConfig/db.py", line 268, in WebappDB
    dir_perm   = PermissionMap('0755'),
  File "/usr/lib64/python3.3/site-packages/WebappConfig/permissions.py", line 164, in __init__
    self.__permissions = eval(permissions)
  File "<string>", line 1
    0755
       ^
SyntaxError: invalid token

Reproducible: Always




Comments cannot be longer than 16384 characters. If you need to post contents of files or logs, use the attachment feature instead.
Comment 1 Ben L. 2013-08-27 10:01:52 UTC
Same Problem here...

switching to python27 to run webapp-config is a working workaround for me...
Comment 2 tot-to 2013-08-27 10:16:19 UTC
Your workaround work for me, too. Thanks.
Comment 3 Devan Franchini (RETIRED) gentoo-dev 2013-09-04 22:42:02 UTC
Reproducable, looking into it :)
Comment 4 Devan Franchini (RETIRED) gentoo-dev 2013-09-18 01:58:28 UTC
The issue is with the upgrade of python3.1 to python3.2 I have already fixed this particular issue and I am working on many other fixes required to make webapp-config fully compatible with python3.2 again :)

Your patience is appreciated while we resolve the issues.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2013-09-18 02:09:20 UTC
0755 is not a valid syntax in Python 3.1 (or any 3.* version).
Comment 6 Devan Franchini (RETIRED) gentoo-dev 2013-09-20 05:36:55 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #5)
> 0755 is not a valid syntax in Python 3.1 (or any 3.* version).

I wasn't aware of that. Previously, when this was run using python 3.1 the interpreter would not raise any errors. Because of what you said though, this leads me to believe that it was just being ignored or something else was happening that I can't really explain due to lack of investigation.
Comment 7 Devan Franchini (RETIRED) gentoo-dev 2013-10-19 03:37:39 UTC
*** Bug 488506 has been marked as a duplicate of this bug. ***
Comment 8 Devan Franchini (RETIRED) gentoo-dev 2013-11-02 00:06:33 UTC
(In reply to tot-to from comment #0)
> Every time I run webapp-config, it craches with the same error. For example:
> # webapp-config --list-installs
> Traceback (most recent call last):
>   File "/usr/sbin/webapp-config-python3.3", line 42, in <module>
>     main()
>   File "/usr/sbin/webapp-config-python3.3", line 39, in main
>     config.run()
>   File "/usr/lib64/python3.3/site-packages/WebappConfig/config.py", line
> 1131, in run
>     self.maybe_get('pvr')).listinstalls()
>   File "/usr/lib64/python3.3/site-packages/WebappConfig/config.py", line
> 1430, in create_webapp_db
>     from WebappConfig.db import  WebappDB
>   File "/usr/lib64/python3.3/site-packages/WebappConfig/db.py", line 161, in
> <module>
>     class WebappDB(AppHierarchy):
>   File "/usr/lib64/python3.3/site-packages/WebappConfig/db.py", line 268, in
> WebappDB
>     dir_perm   = PermissionMap('0755'),
>   File "/usr/lib64/python3.3/site-packages/WebappConfig/permissions.py",
> line 164, in __init__
>     self.__permissions = eval(permissions)
>   File "<string>", line 1
>     0755
>        ^
> SyntaxError: invalid token
> 
> Reproducible: Always
> 
> 
> 
> 
> Comments cannot be longer than 16384 characters. If you need to post
> contents of files or logs, use the attachment feature instead.

Install webapp-config-1.52 and please let me know if this issue ensues. :)
Comment 9 Anthony Basile gentoo-dev 2013-11-02 12:57:31 UTC
(In reply to Devan Franchini from comment #8)
> 
> Install webapp-config-1.52 and please let me know if this issue ensues. :)

comment 5 of duplicate bug #488506 says solved.  Please reopen if this is still an issue.