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

__init__.py tries to import class SharedDataMiddleware from a wrong module #641

Closed
babakRz63ai opened this issue Apr 17, 2020 · 1 comment

Comments

@babakRz63ai
Copy link

babakRz63ai commented Apr 17, 2020

I installed isso on a CentOS 8 machine using PyPi for Python 3.6, and following instructions on the website, in a virtual environment in /opt/isso. Now when I want to start isso, it displays this stack trace and exits:

Traceback (most recent call last):
  File "./isso", line 5, in <module>
    from isso import main
  File "/opt/isso/lib/python3.6/site-packages/isso/__init__.py", line 60, in <module>
    from werkzeug.wsgi import SharedDataMiddleware
ImportError: cannot import name 'SharedDataMiddleware'

I've noticed there is no SharedDataMiddleware class in /opt/isso/lib/python3.6/site-packages/werkzeug/wsgi.py but this class indeed sits in /opt/isso/lib/python3.6/site-packages/werkzeug/middleware/shared_data.py.

These are versions of python and pip in the virtual environment:

Python 3.6.8
pip 20.0.2 from /opt/isso/lib/python3.6/site-packages/pip (python 3.6)

And this is version of werkzeug found in its __init__.py : __version__ = "1.0.1"

@jelmer
Copy link
Member

jelmer commented Apr 17, 2020

Thanks for the report - this is a dupe of #617.

@jelmer jelmer closed this as completed Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants