Skip to content
New issue

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

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

Already on GitHub? # to your account

ImportError: cannot import name 'url_decode_stream' from 'werkzeug.urls' #87

Closed
ahrweber opened this issue Jan 26, 2024 · 2 comments
Closed
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@ahrweber
Copy link

ahrweber commented Jan 26, 2024

I installed cellxgene-gateway using anaconda Python 3.11.5.

cellxgene-gateway does not start with error:

ImportError: cannot import name 'url_decode_stream' from 'werkzeug.urls' (/home/user/.cellxgene-gateway/lib/python3.11/site-packages/werkzeug/urls.py)

After search I got aware of some changes in flask version >= 3.0.

And the standard installation installed
conda list | grep werkzeug

werkzeug 3.0.1 pypi_0 pypi

conda list | grep flask

flask 3.0.1 pypi_0 pypi

Solved the error by installing fix versions:
pip install werkzeug==2.3.0 flask==2.2.2

After that cellxgene-gateway starts and works fine.

@alokito
Copy link
Member

alokito commented Mar 2, 2024

I'll pin the versions for now. cellxgene-gateway is due for a cycle of dependency updates.

alokito pushed a commit that referenced this issue Mar 2, 2024
alokito pushed a commit that referenced this issue Mar 2, 2024
alokito pushed a commit that referenced this issue Mar 2, 2024
alokito pushed a commit that referenced this issue Mar 2, 2024
alokito pushed a commit that referenced this issue Mar 10, 2024
also remove dependency on flask-api
@alokito
Copy link
Member

alokito commented Mar 10, 2024

@ahrweber this issue should be addressed in cellxgene-gateway 0.4.0, please confirm if you have time.

@alokito alokito closed this as completed Mar 10, 2024
@alokito alokito self-assigned this Mar 10, 2024
@alokito alokito added bug Something isn't working dependencies Pull requests that update a dependency file labels Mar 10, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants