-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Configuration error with Python 3.5 keywordargs #1382
Comments
Original comment by Robert Kuska (Bitbucket: xkuska, GitHub: Unknown): Hi, is there any update with Python3.5 support? |
Original comment by emmanuel_blot (Bitbucket: emmanuel_blot, GitHub: Unknown): Any idea on how to work around this issue? Does it mean that for now, CherryPy cannot work with Python 3.5+? Thanks. |
Original comment by Imran Hendley (Bitbucket: ihendley, GitHub: ihendley): I was able to work around the issue by defining the configuration directly in a python dictionary, instead of trying to parse it from a text file. For example:
|
Original comment by Florijan Hamzic (Bitbucket: florijanh, GitHub: Unknown): If you don't want to work around by adding all your config into python code you can also do this:
|
Original comment by Anonymous: Hi, do you need any help with issue? |
Original comment by Anonymous: Hi @cyraxjoe, I believe there already is a test for this. The cherrypy fedora package fails to build against python 3.5 because the tests currently throw 3 errors, the first of which tracebacks to the same problem as in this issue. See buildlog: https://kojipkgs.fedoraproject.org//work/tasks/9421/12879421/build.log Section: I've created a patch from the pull request #120, I've applied it to the package, and now the error is gone. New buildlog: https://kojipkgs.fedoraproject.org//work/tasks/5632/13115632/build.log |
Original comment by Anonymous: EDIT: Since I'm not the main fedora packager for cherrypy I didn't at first realize it was building an older version of CherryPy. So apologies and here are the updated buildlogs: Building 5.0.1 without the patch: https://kojipkgs.fedoraproject.org//work/tasks/6148/13136148/build.log Reporter's error is reproduced, see section "ERROR: test suite for <class 'cherrypy.test.test_config.ConfigTests'>". Building 5.0.1 with patch from pull request #120: https://kojipkgs.fedoraproject.org//work/tasks/6169/13136169/build.log Error goes away without issue. Note that the second error in the patched build is caused by issue #1406 which has yet to be resolved. |
…ily implemented --HG-- branch : 1282-ast-call-signature
Originally reported by: Florijan Hamzic (Bitbucket: florijanh, GitHub: Unknown)
I am using VirtualHost dispatcher in config file but with python 3.5 this doesn't work:
[/]
request.dispatch = cherrypy.dispatch.VirtualHost(
**{
'bay.de:9111': '/Web',
})
To work around it is possible to set the dispatch right in the python code.
The text was updated successfully, but these errors were encountered: