Thank you, Anthony, for the clarification.
I would like to deploy a web app in a VM (I have very limited privileges)  
with Red Hat 7 (python 2.6 installed) + apache + mod wsgi.
I was able to install python 2.7.
Problem is that mod wsgi was compiled with python 2.6 but web2py requires 
python 2.7 now.
When I try to launch web2py ( with python 2.7), I got this error message
Target WSGI script '/nfs/www-prod/web_hx2/rep/rhome/web2py/wsgihandler.py' 
cannot be loaded as Python module
Is because of the discrepancies between the two versions?

The only walkaround I can imagine is to downgrade web2py to a release 
compatible with python 2.6.
Any other suggestions?


Il giorno sabato 23 giugno 2018 15:51:35 UTC+1, Anthony ha scritto:
>
> 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.

Reply via email to