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

Chapter 17. Error installing uWSGI in docker #44

Open
robeche opened this issue May 11, 2023 · 3 comments
Open

Chapter 17. Error installing uWSGI in docker #44

robeche opened this issue May 11, 2023 · 3 comments

Comments

@robeche
Copy link

robeche commented May 11, 2023

Hi there,

I'm in chapter 17 trying to create the docker image, but when it tries to install the uwsgi image it shows the following error:

#0 17.93 Failed to build uwsgi
#0 17.93 ERROR: Could not build wheels for uwsgi, which is required to install pyproject.toml-based projects

I have tried to install it in the virtual environment as well but i get:

AttributeError: module 'os' has no attribute 'uname'. Did you mean: 'name'?

I did some search which explains that i should run the command via cygwin, but i don't know how it will be possible to run it from docker...

Where is the trick to install it?

Kind regards

Roberto

@Vkuzmeniuk
Copy link

The save for me =(

@robeche
Copy link
Author

robeche commented May 11, 2023

I fixed it by removing uwsgi from the requirements list and installing it before... so basically add the following to the docker file:
RUN pip install uwsgi

@jmpmcmanus
Copy link

Upgrading uwsgi==2.0.20 to uwsgi==2.0.22 worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants