Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on Centos 7 Python 3.6 #297

Open
jdevzero opened this issue Feb 6, 2020 · 0 comments
Open

Issues on Centos 7 Python 3.6 #297

jdevzero opened this issue Feb 6, 2020 · 0 comments
Labels

Comments

@jdevzero
Copy link

jdevzero commented Feb 6, 2020

I'm trying my hardest to make Wok 3.0 wok on Centos7 and there are a few issues.

  1. 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)

@jdevzero jdevzero added the bug label Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant