Fresh install - ImportError: cannot import name Cookie

200 views
Skip to first unread message

Paul Ellis

unread,
Feb 28, 2019, 2:04:22 PM2/28/19
to web...@googlegroups.com
with a fresh install of web2py by running
   
git clone --recursive https://github.com/web2py/web2py.git

and then running:
    
python web2py.py

I am getting:
Traceback (most recent call last):
 
File "web2py.py", line 21, in <module>
   
import gluon.widget
 
File "C:\w2p\gluon\__init__.py", line 47, in <module>
   
from .globals import current
 
File "C:\w2p\gluon\globals.py", line 16, in <module>
   
from gluon._compat import pickle, StringIO, copyreg, Cookie, urlparse, PY2, iteritems, to_unicode, to_native, \
ImportError: cannot import name Cookie

Edit: Version 2.18.2
- Not having this problem with previous version.

Leonel Câmara

unread,
Feb 28, 2019, 4:55:13 PM2/28/19
to web2py-users
Most of compat stuff got moved to pydal but the version in the release doesn't have the version with the pydal with the compat stuff there.

Marcelo Huerta

unread,
Mar 2, 2019, 12:51:52 PM3/2/19
to web2py-users
El jueves, 28 de febrero de 2019, 18:55:13 (UTC-3), Leonel Câmara escribió:
Most of compat stuff got moved to pydal but the version in the release doesn't have the version with the pydal with the compat stuff there.


 It's the latest pydal supposed to have the moved components? Because I just updated it and I got the same error.
Reply all
Reply to author
Forward
0 new messages