web2py no longer supports Python 2.6 (the website should be updated to
reflect this). The line in question includes a dictionary comprehension,
which was introduced in Python 2.7.
Anthony
On Saturday, June 23, 2018 at 10:34:45 AM UTC-4, Girolamo Giudice wrote:
>
> Dear all,
> I am getting this error:
> Traceback (most recent call last):
> File "web2py.py", line 21, in <module>
> import gluon.widget
> File "/nfs/www-prod/web_hx2/rep/rhome/web2py/gluon/__init__.py", line
> 23, in <module>
> import pydal
> File
> "/nfs/www-prod/web_hx2/rep/rhome/web2py/gluon/packages/dal/pydal/__init__.py",
>
> line 3, in <module>
> from .base import DAL
> File
> "/nfs/www-prod/web_hx2/rep/rhome/web2py/gluon/packages/dal/pydal/base.py",
> line 145, in <module>
> from .objects import Table, Field, Rows, Row, Set
> File
> "/nfs/www-prod/web_hx2/rep/rhome/web2py/gluon/packages/dal/pydal/objects.py",
> line 385
> return [{key: noncallable(getattr(field, key)) for key in keys}
>
> when trying to lunch web2py with python 2.6.6
> suggestions?
> Thank you very much
> Girolamo
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.