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

Docker preview build fails with syntax error for gyp printing found python version #1175

Open
thoni56 opened this issue Dec 16, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@thoni56
Copy link

thoni56 commented Dec 16, 2022

Package version (if known): from repo - v1.0.0rc1 - 95feace

Describe the bug

Running

docker-compose -f docker-compose.full.yml up

as per [instructions](docker-compose -f docker-compose.full.yml up) fails with the following error in the build log

#21 93.69 gyp verb check python checking for Python executable "python" in the PATH
#21 93.69 gyp verb `which` succeeded python /usr/local/bin/python
#21 93.70 gyp ERR! configure error 
#21 93.71 gyp ERR! stack Error: Command failed: /usr/local/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
#21 93.71 gyp ERR! stack   File "<string>", line 1
#21 93.71 gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
#21 93.71 gyp ERR! stack                                ^
#21 93.71 gyp ERR! stack SyntaxError: invalid syntax
#21 93.71 gyp ERR! stack 
#21 93.71 gyp ERR! stack     at ChildProcess.exithandler (child_process.js:308:12)
#21 93.71 gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
#21 93.71 gyp ERR! stack     at maybeClose (internal/child_process.js:1022:16)
#21 93.71 gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

Environment

MacOS Ventura, with brew python.

Additional context

NOTE: I had to upgrade to python 3.7 in backend/Dockerfile since cryptography does not support 3.6.

@thoni56 thoni56 added the bug Something isn't working label Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant