web2py is not starting with python 3.0/3.1

110 views
Skip to first unread message

Pradeeshnarayan

unread,
Jun 24, 2013, 5:19:15 AM6/24/13
to web...@googlegroups.com

I am trying to run a web2py application. Using python2.7 it is running fine. But I want to use python higher version. When I try with python3.0 or 3.1, am getting an error as

Traceback (most recent call last):
  File "/var/www/vhosts/astrozon/web2py/web2py.py", line 18, in <module>
    import gluon.widget
  File "/var/www/vhosts/astrozon/web2py/gluon/__init__.py", line 15, in <module>
    from globals import current
ImportError: No module named globals

I have checked, the module gobals is present in the same folder. and python2.7 is able to import that module but not for 3.0 or 3.1.

I would greatly appreciate any suggestions.

LightDot

unread,
Jun 24, 2013, 6:08:49 AM6/24/13
to web...@googlegroups.com
Web2py is not compatible with python 3.x.

Regards,
Ales

villas

unread,
Jun 24, 2013, 6:11:12 AM6/24/13
to web...@googlegroups.com
Web2py is not available for 3.x python.
There is an experimental port to 3 (unmaintained) but that was more of a 'proof of concept' and not recommended.
The main developer, Massimo,  is working on web3py which is being rewritten and enhanced to take advantage of python 3.  However,  that is still very much an alpha work-in-progress and not likely to be completed until there is broad demand to move to python 3 (very few people on this list ask at the moment).


Nico Zanferrari

unread,
Apr 27, 2017, 4:29:10 AM4/27/17
to web...@googlegroups.com
Hello,

I have the same problem now, with the current nightly build. Massimo and others said that it's working now with Python3 (experimentally), so I think I'm missing something obvious...

Python 3.6.1 on Windows 10 64 bit, and also Python 3.5.2 on Ubuntu 16.10


Thank you




--
 
---
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 web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Marlysson Silva

unread,
Apr 27, 2017, 7:28:33 AM4/27/17
to web2py-users
This feature seems to be in a commit of branch's web2py repository , I think that still do not was merged with master branch .. But cloning the repository and checking this branch you can run in py3 enviroment.

Nico Zanferrari

unread,
Apr 27, 2017, 7:53:58 AM4/27/17
to web...@googlegroups.com
Yes, cloning the master branch works fine!

Thanks,
Nico


---
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 web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages