2.9.12 for Windows \ cache \ "Cannot import name wintypes"

36 views
Skip to first unread message

Kiran Subbaraman

unread,
Jan 20, 2015, 3:55:03 AM1/20/15
to web...@googlegroups.com
I downloaded the Windows installable: http://www.web2py.com/examples/static/web2py_win.zip
Installed the attached sample app, and I see this error on first use.



<type 'exceptions.ImportError'> cannot import name wintypes


Version

web2py™Version 2.9.12-stable+timestamp.2015.01.17.06.11.03
PythonPython 2.7.6: C:\Users\subbaraman\Downloads\web2py_win\web2py\web2py.exe (prefix: D:\programs\open\python27)


Traceback


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Traceback (most recent call last):
 
File "gluon/restricted.py", line 224, in restricted
  File
"C:/Users/subbaraman/Downloads/web2py_win/web2py/applications/cache2912_issue/controllers/default.py", line 77, in <module>
 
File "gluon/globals.py", line 393, in <lambda>
 
File "C:/Users/subbaraman/Downloads/web2py_win/web2py/applications/cache2912_issue/controllers/default.py", line 24, in index
    rows
= db(db.t1.id > 0).select(**cache_settings)
 
File "gluon/dal/objects.py", line 2066, in select
  File
"gluon/dal/adapters/base.py", line 1230, in select
  File
"gluon/cache.py", line 399, in __call__
  File
"gluon/cache.py", line 391, in initialize
  File
"gluon/cache.py", line 272, in __init__
ImportError
: cannot import name wintypes


web2py.app.wintype_error.w2p

Leonel Câmara

unread,
Jan 20, 2015, 8:45:01 AM1/20/15
to web...@googlegroups.com
You found a bug with the binary version. You need to use the source one as apparently wintypes wasn't included.

Kiran Subbaraman

unread,
Jan 20, 2015, 10:00:43 AM1/20/15
to web...@googlegroups.com
Thanks for confirming. Have opened an issue for the binary version: https://code.google.com/p/web2py/issues/detail?id=2034
Reply all
Reply to author
Forward
0 new messages