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 build fails due to Python version (3.10 vs. 3.9) #1183

Open
jerobar opened this issue May 11, 2022 · 2 comments
Open

Docker build fails due to Python version (3.10 vs. 3.9) #1183

jerobar opened this issue May 11, 2022 · 2 comments

Comments

@jerobar
Copy link

jerobar commented May 11, 2022

When installing with make compose the docker build fails with error:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python3.9'

I believe it's because apt-get -y install python3 in the Dockerfile installs python 3.10. I (naively) tried just modifying the Dockerfile to create and activate the virtualenv with --python=/usr/bin/python3.10 (on line 45) but it seems like there is a compatibility issue there, that failed with a python error:

File "/bin/owtf/lib/python3.10/site-packages/tornado/httputil.py", line 107, in <module>
    class HTTPHeaders(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
@gcc-compiled
Copy link

I am getting the same fail on step 20:
Step 20/29 : RUN python3 -m virtualenv --python=/usr/bin/python3.9 $VIRTUAL_ENV ---> Running in 8c79a75c86ff FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python3.9' The command '/bin/sh -c python3 -m virtualenv --python=/usr/bin/python3.9 $VIRTUAL_ENV' returned a non-zero code: 1 ERROR: Service 'owtf' failed to build : Build failed make: *** [Makefile:98: compose] Error 1

I saw a merge in 2021 that apparently solves a compatibility issue with python3.8/.9 however there seems to be more specific requirements install instructions are required. Any recommendations would be beneficial.

@mrchainman
Copy link
Contributor

I created a Fork which fixes the Dockerfile here https://github.com/mrchainman/owtf/
I will make a PR, in the meantime you can use my version.

@mrchainman mrchainman mentioned this issue Jun 2, 2022
7 tasks
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

3 participants