from cherrypy import wsgiserver -> ImportError: cannot import name wsgiserver
See original GitHub issue-
I’m submitting a … [x] bug report [ ] feature request [ ] question about the decisions made in the repository
-
What is the current behavior?
>>> from cherrypy import wsgiserver
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name wsgiserver
-
What is the expected behavior? Using the latest version of
cherrypy
I’m expecting to be able to perform this import. I could temporarily resolve the issue going back to version8.9.0
. But I’m wondering if there any better solution. -
Please tell us about your environment:
- Python version: 2.7.10
- OS: macOS Sierra
- Browser: Opera
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
python - ImportError: cannot import name wsgiserver
CherryPy moved wsgiserver to cheroot in 2017. http://docs.cherrypy.dev/en/latest/history.html#v9-0-0. So now you need to import it like this ...
Read more >[bottlepy] bottle with current (10.*) cherrypy
File "C:\opt\Python27\lib\site-packages\bottle.py", line 2787, in run from cherrypy import wsgiserver ImportError: cannot import name wsgiserver
Read more >lib/cherrypy/cherrypy/wsgiserver/ssl_builtin.py - Google Git
"""A library for integrating Python's builtin ``ssl`` library with CherryPy. The ssl module must be importable for SSL functionality. To use this module, ......
Read more >https://strike.scec.org/csep/cherrypy/cherrypy/wsg...
Simplest example on how to use this module directly (without using CherryPy's application machinery):: from cherrypy import wsgiserver def ...
Read more >ImportError: No module named wsgiserver - Google Groups
I'm using rev 161 from subversion and running into what I think is an install problem. (Platform Gentoo, python 2.5). Does anyone have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No @DWilches, the generic solution is:
So the solution is to not use:
But instead: