Skip to content

ERROR: Service 'uwsgi' failed to build #12

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

Closed
rbrecheisen opened this issue May 31, 2021 · 4 comments · Fixed by #13
Closed

ERROR: Service 'uwsgi' failed to build #12

rbrecheisen opened this issue May 31, 2021 · 4 comments · Fixed by #13

Comments

@rbrecheisen
Copy link

Hi,

I just pulled the repo and ran docker-compose up -d straightaway. Unfortunately, the build failed with the following output:

=> ERROR [5/9] RUN pip install -r /tmp/requirements.txt 0.3s

[5/9] RUN pip install -r /tmp/requirements.txt:
#9 0.244 Traceback (most recent call last):
#9 0.244 File "/usr/local/bin/pip", line 7, in
#9 0.244 from pip._internal.cli.main import main
#9 0.244 File "/usr/local/lib/python3.5/site-packages/pip/_internal/cli/main.py", line 58
#9 0.244 sys.stderr.write(f"ERROR: {exc}")
#9 0.244 ^
#9 0.244 SyntaxError: invalid syntax


executor failed running [/bin/sh -c pip install -r /tmp/requirements.txt]: exit code: 1
ERROR: Service 'uwsgi' failed to build : Build failed

Any idea why this happens? I'm running Docker 20.10.6 for Mac OS Mojave

Any help would be appreciated!

Ralph

@vsoch
Copy link
Owner

vsoch commented May 31, 2021

That's strange - let me give it a shot!

@vsoch
Copy link
Owner

vsoch commented May 31, 2021

Ah okay I see what's going on! During the build we upgrade pip, and pip added that format string (the third to last line) that is technically invalid syntax for the Python version. I'll put in a PR with a newer Python base for you to test!

@vsoch
Copy link
Owner

vsoch commented May 31, 2021

okay here is a PR for you to test!

#13

When this looks good, we can merge and release.

@rbrecheisen
Copy link
Author

Hi, not sure I correctly pulled your branch (git checkout -b update/python-base) but I'm still seeing the same error when I run docker-compose up -d.

@rbrecheisen
Copy link
Author

Sorry, my bad I should've typed "git checkout update/python-base" without the -b option. With that option it actually created a branch locally I think :) Anyway, the docker-compose up -d seems to work now. It built the image and I can run it. I'm seeing some other errors but I think these are on my side. Thanks!

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

Successfully merging a pull request may close this issue.

2 participants