question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

// , Possibly broken CherryPy dependency

See original GitHub issue

// , CherryPy gives a name error for wsgiserver, even though wsgiserver-1.3 is installed.

0bin $python3 zerobin.py
Bottle v0.12.13 server starting up (using CherryPyServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.

Traceback (most recent call last):
  File "zerobin.py", line 6, in <module>
    main()
  File "/Users/nbasane/proj/pubvault/0bintest/0bin/zerobin/cmd.py", line 101, in main
    clize.run(runserver, delete_paste)
  File "/usr/local/lib/python3.6/site-packages/sigtools/modifiers.py", line 158, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/clize/runner.py", line 360, in run
    ret = cli(*args)
  File "/usr/local/lib/python3.6/site-packages/clize/runner.py", line 220, in __call__
    return func(*posargs, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/clize/runner.py", line 262, in _cli
    return func('{0} {1}'.format(name, command), *args)
  File "/usr/local/lib/python3.6/site-packages/clize/runner.py", line 220, in __call__
    return func(*posargs, **kwargs)
  File "/Users/nbasane/proj/pubvault/0bintest/0bin/zerobin/cmd.py", line 56, in runserver
    run(app, host=settings.HOST, port=settings.PORT, server="cherrypy")
  File "/usr/local/lib/python3.6/site-packages/bottle.py", line 3127, in run
    server.run(app)
  File "/usr/local/lib/python3.6/site-packages/bottle.py", line 2787, in run
    from cherrypy import wsgiserver
ImportError: cannot import name 'wsgiserver'
0bin $pip freeze
attrs==18.1.0
backports.functools-lru-cache==1.5
base58==1.0.0
block-io==1.1.6
bottle==0.12.13
certifi==2018.8.24
chardet==3.0.4
cheroot==6.4.0
CherryPy==17.3.0
clize==4.0.3
contextlib2==0.5.5
docutils==0.14
ecdsa==0.13
hvac==0.6.3
idna==2.7
jaraco.functools==1.20
lockfile==0.12.2
more-itertools==4.3.0
od==1.0
pytz==2018.5
requests==2.19.1
sigtools==2.0.2
six==1.11.0
urllib3==1.23
WSGIserver==1.3
zc.lockfile==1.3.0
zerobin==0.5
0bin $```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
gabe565commented, Dec 8, 2018

This happens if you have CherryPy >= 9.0.0 installed. Looks like the wsgiserver codebase was moved to replace the older cheroot.

Until the dependency gets fixed in this repo, you can install a version of CherryPy from before this change took place:

pip install 'cherrypy<9.0.0'
1reaction
epsilon-0commented, Jan 20, 2020

cherrypy is now version 18.5, using version 8.9 is a mistake and a potential problem. Please fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip can no longer install cherrypy (without tweaking ... - GitHub
When trying to pip3 install cherrypy on raspbian (stretch) with python 3.5.3, ... install cherrypy (without tweaking) on python 3.5.3 due to 4...
Read more >
Advanced — CherryPy 18.6.1.dev49+g98929b51.d20210117 ...
Let's assume you wish to create an application that exposes music bands and their records. Your application will probably have the following URLs:....
Read more >
CherryPy Documentation - Read the Docs
CherryPy is among the oldest web framework available for Python, yet many people aren't aware of its existence. One.
Read more >
Full Text Bug Listing - Red Hat Bugzilla
Summary: Broken dependency for python-cherrypy ... of python-paste-script-1.7.5-6.el7.noarch is not possible any more because of a broken dependency.
Read more >
Configure — CherryPy 3.2.4 documentation - Read the Docs
Configuration in CherryPy is implemented via dictionaries. ... method is the norm for that path; in fact, the code could be considered broken...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found