- docker-compose build fails with weird python errors
- Saved searches
- Use saved searches to filter your results more quickly
- Python error when running docker-compose up #4299
- Python error when running docker-compose up #4299
- Comments
- docker-compose cannot start service: "exec: \"python3\": executable file not found
- ошибка при запуске docker-compose
docker-compose build fails with weird python errors
docker-compose build Traceback (most recent call last): File «docker-compose», line 6, in File «compose/cli/main.py», line 68, in main File «compose/cli/main.py», line 118, in perform_command File «compose/cli/command.py», line 37, in project_from_options File «compose/cli/command.py», line 91, in get_project File «compose/config/config.py», line 368, in load File «compose/config/config.py», line 534, in process_config_file File «compose/config/validation.py», line 393, in validate_against_config_schema File «compose/config/validation.py», line 450, in handle_errors File «site-packages/jsonschema/validators.py», line 105, in iter_errors File «site-packages/jsonschema/_validators.py», line 304, in properties_draft4 File «site-packages/jsonschema/validators.py», line 121, in descend File «site-packages/jsonschema/validators.py», line 105, in iter_errors File «site-packages/jsonschema/_validators.py», line 16, in patternProperties File «site-packages/jsonschema/validators.py», line 121, in descend File «site-packages/jsonschema/validators.py», line 105, in iter_errors File «site-packages/jsonschema/_validators.py», line 212, in ref File «site-packages/jsonschema/validators.py», line 375, in resolve File «site-packages/functools32/functools32.py», line 400, in wrapper File «site-packages/jsonschema/validators.py», line 385, in resolve_from_url jsonschema.exceptions.RefResolutionError: HTTP Error 400: Bad request»
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
Python error when running docker-compose up #4299
Python error when running docker-compose up #4299
Comments
- Downloaded all the compose files from the installation guide: http://cog-book.operable.io/#_installing_and_running_cog_with_docker_compose
- Populated the environment variables SLACK_API_TOKEN and COG_HOST .
- Run docker-compose up , output:
[user@pc cog]$ docker-compose up Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in load_entry_point('docker-compose==1.9.0', 'console_scripts', 'docker-compose')() File "/usr/lib/python3.5/site-packages/compose/cli/main.py", line 65, in main command() File "/usr/lib/python3.5/site-packages/compose/cli/main.py", line 114, in perform_command project = project_from_options('.', options) File "/usr/lib/python3.5/site-packages/compose/cli/command.py", line 36, in project_from_options environment=environment File "/usr/lib/python3.5/site-packages/compose/cli/command.py", line 103, in get_project config_data = config.load(config_details) File "/usr/lib/python3.5/site-packages/compose/config/config.py", line 323, in load service_dicts = load_services(config_details, main_file) File "/usr/lib/python3.5/site-packages/compose/config/config.py", line 414, in load_services service_config = merge_services(service_config, next_config) File "/usr/lib/python3.5/site-packages/compose/config/config.py", line 405, in merge_services for name in all_service_names File "/usr/lib/python3.5/site-packages/compose/config/config.py", line 405, in for name in all_service_names File "/usr/lib/python3.5/site-packages/compose/config/config.py", line 704, in merge_service_dicts_from_files new_service = merge_service_dicts(base, override, version) File "/usr/lib/python3.5/site-packages/compose/config/config.py", line 769, in merge_service_dicts md.merge_field(field, merge_unique_items_lists, default=[]) File "/usr/lib/python3.5/site-packages/compose/config/config.py", line 728, in merge_field self.override.get(field, default)) File "/usr/lib/python3.5/site-packages/compose/config/config.py", line 788, in merge_unique_items_lists return sorted(set().union(base, override)) TypeError: unorderable types: int() < str()
Client: Version: 1.12.5 API version: 1.24 Go version: go1.7.4 Git commit: 7392c3b0ce Built: Wed Dec 28 22:26:08 2016 OS/Arch: linux/amd64 Server: Version: 1.12.5 API version: 1.24 Go version: go1.7.4 Git commit: 7392c3b0ce Built: Wed Dec 28 22:26:08 2016 OS/Arch: linux/amd64
Latest Manjaro linux, kernel version:
The text was updated successfully, but these errors were encountered:
docker-compose cannot start service: "exec: \"python3\": executable file not found
(I'm not deeply experienced with docker , fwiw) I have a django appication I'm containerizing. Currently when I run docker-compose up the redis service starts up, but api exits with error: ERROR: for api Cannot start service api: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"python3\": executable file not found in $PATH": unknown
#docker-compose.yaml version: '3' services: redis: image: redis ports: - 6379 api: build: context: ../backend/ dockerfile: ../backend/Dockerfile env_file: .env volumes: - ../backend:/code/ ports: - "8001:8001" depends_on: - redis
#../backend/Dockerfile FROM python:3 ENV PYTHONUNBUFFERED 1 RUN mkdir /code ADD . /code/ WORKDIR /code/ RUN pip install -r requirements.txt CMD python manage.py runserver
#./.env DJANGO_SETTINGS_MODULE=backend.settings.dev DJANGO_SECRET_KEY= SENTRY_URL=
I've also, based on other issues, tried using both CMD and RUN with their differing argument types, i.e. in the existing shell and without, but the output hasn't changed. I should also acknowledge that it's possible I'm not restarting actually catching the updates to docker-compose.yaml or Dockerfile . My workflow has been $ docker-compose down followed by $ docker-compose up . EDITS: @henrik-andersson pointed me in the right direction. The proximate cause of the error is the fact that the image itself was not built, so the executable python didn't exist. the command I needed to run was docker-compose up --build
ошибка при запуске docker-compose
Установил контейнер python в docker Настроил его в pycharm. Настроил интерпретатор Но не могу установить библиотеки в pycharm попробовал установить через консоль:
Библиотека установилась успешно, но ее не видно. Что я делаю не так? Сам контейнер ставил через kitematik, так же хотел собрать контейр сам без kitematik, но выходит ошибка. Dockerfile
FROM python:3.6 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt ADD . /code/
pandas lxml cssselect XlsxWriter
version: '2' services: db: image: postgres web: build: . command: python manage.py runserver 0.0.0.0:8000 volumes: - .:/code ports: - "8000:8000" depends_on: - db
docker-compose run web startproject composeexample
PS D:\docker python> docker-compose run web startproject composeexample ERROR: Cannot create container for service web: D: drive is not shared. Please share it in Docker for Windows Settings
Removing intermediate container 1794eefd67fa Successfully built 145154c97b94 WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-co mpose build` or `docker-compose up --build`. Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"startp roject\": executable file not found in $PATH"