You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying my hardest to make Wok 3.0 wok on Centos7 and there are a few issues.
ldap has been renamed to ldap3 this can be fixed by adding the below line to auth.py
try:
import ldap
except ModuleNotFoundError:
import ldap3 as ldap
Making the above change will boot up wokd but when browsing to it this error is thrown.
Traceback (most recent call last):
File "/usr/local/lib64/python3.6/site-packages/cherrypy/_cprequest.py", line 638, in respond
self._do_respond(path_info)
File "/usr/local/lib64/python3.6/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
response.body = self.handler()
File "/usr/local/lib64/python3.6/site-packages/cherrypy/lib/encoding.py", line 219, in call
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/lib64/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in call
return self.callable(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/wok/root.py", line 121, in default
return template.render(page, kwargs)
File "/usr/lib/python3.6/site-packages/wok/template.py", line 130, in render
content = render_cheetah_file(resource, data)
File "/usr/lib/python3.6/site-packages/wok/template.py", line 104, in render_cheetah_file
return Template(file=filename, searchList=params).respond()
File "/usr/local/lib64/python3.6/site-packages/Cheetah/Template.py", line 1337, in init
self._compile(source, file, compilerSettings=compilerSettings)
File "/usr/local/lib64/python3.6/site-packages/Cheetah/Template.py", line 1638, in _compile
keepRefToGeneratedCode=True)
File "/usr/local/lib64/python3.6/site-packages/Cheetah/Template.py", line 772, in compile
settings=(compilerSettings or {}))
File "/usr/local/lib64/python3.6/site-packages/Cheetah/Compiler.py", line 1660, in init
source = f.read()
File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 7784: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
I'm trying my hardest to make Wok 3.0 wok on Centos7 and there are a few issues.
try:
import ldap
except ModuleNotFoundError:
import ldap3 as ldap
Making the above change will boot up wokd but when browsing to it this error is thrown.
Traceback (most recent call last):
File "/usr/local/lib64/python3.6/site-packages/cherrypy/_cprequest.py", line 638, in respond
self._do_respond(path_info)
File "/usr/local/lib64/python3.6/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
response.body = self.handler()
File "/usr/local/lib64/python3.6/site-packages/cherrypy/lib/encoding.py", line 219, in call
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/lib64/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in call
return self.callable(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/wok/root.py", line 121, in default
return template.render(page, kwargs)
File "/usr/lib/python3.6/site-packages/wok/template.py", line 130, in render
content = render_cheetah_file(resource, data)
File "/usr/lib/python3.6/site-packages/wok/template.py", line 104, in render_cheetah_file
return Template(file=filename, searchList=params).respond()
File "/usr/local/lib64/python3.6/site-packages/Cheetah/Template.py", line 1337, in init
self._compile(source, file, compilerSettings=compilerSettings)
File "/usr/local/lib64/python3.6/site-packages/Cheetah/Template.py", line 1638, in _compile
keepRefToGeneratedCode=True)
File "/usr/local/lib64/python3.6/site-packages/Cheetah/Template.py", line 772, in compile
settings=(compilerSettings or {}))
File "/usr/local/lib64/python3.6/site-packages/Cheetah/Compiler.py", line 1660, in init
source = f.read()
File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 7784: ordinal not in range(128)
The text was updated successfully, but these errors were encountered: