name 'unicode' is not defined in 2.17.1

199 views
Skip to first unread message

sandeep patel

unread,
Aug 13, 2018, 2:08:59 PM8/13/18
to web2py-users
Hello,

 This was working with 2.16 and python3 but in 2.17.1 I get an error.

<class 'NameError'> name 'unicode' is not defined

Version

web2py™Version 2.17.1-stable+timestamp.2018.08.06.01.02.56
PythonPython 3.6.2: C:\Program Files\Python36\python.exe (prefix: C:\Program Files\Python36)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Traceback (most recent call last):
File "C:\web2py\gluon\restricted.py", line 219, in restricted
exec(ccode, environment)
File "C:/web2py/applications/institute/controllers/plugin_ckeditor.py", line 72, in <module>
File "C:\web2py\gluon\globals.py", line 421, in <lambda>
self._caller = lambda f: f()
File "C:/web2py/applications/institute/controllers/plugin_ckeditor.py", line 9, in upload
mime_type) = current.plugin_ckeditor.handle_upload()
File "C:\web2py\applications\institute\modules\plugin_ckeditor.py", line 112, in handle_upload
else:
File "C:\web2py\gluon\packages\dal\pydal\objects.py", line 1755, in store
dest_file = self.uploadfs.open(unicode(newfilename), 'wb')
NameError: name 'unicode' is not defined

Error snapshot help

NameError(name 'unicode' is not defined)


Thanks
Sandeep

Massimo Di Pierro

unread,
Sep 2, 2018, 1:12:04 PM9/2/18
to web2py-users
Fixed it now in trunk. thanks for reporting this.
Reply all
Reply to author
Forward
0 new messages