I have encountered a problem while trying to run my django project on a new Docker container. It is my first time using Docker and I can’t seem to find a good way to run a django project on it. Having tried multiple tutorials, I always get the error about psycopg2 not being installed. requirements.txt: Dockerfile: While running docker-compose build,
Tag: docker
Django+Celery Module not found error with app installed from git
I’m have a project split on 2 separate apps and both have another shared app as reusable one(i store my models there and install it from git link. So when i run celery worker locally all is working perfect, but if i use docker(with celery in separate image) i got this error In some reason celery gets improper configuration from
How to debug django staticfiles served with whitenoise, gunicorn, and heroku?
I’ve got a project that runs on Heroku from a Dockerfile and heroku.yml. The site generally works, but I am having trouble with static files. collectstatic is run when building the pack. If I set DEBUG to True, it finds the files. I’m trying to use whitenoise but not sure why it’s not working. It sounds so simple so I’m
How to solve “Could not find any Python installation to use” with docker node alpine Image when adding bcrypt to package.json?
Before I added bcrypt to my package.json, everything was working fine. Now, I get the error message below. This is an excerpt of my package.json: This is my dockerfile. I am using the offical node alpine image. I wonder if alpine has phyton already installed. I get this error message when I run docker-compose: How can I solve this issue?
apk python packages not installing in Alpine Docker Image
I have a dockerfile as below: When I got into the container with docker run -it –rm mycontainer /bin/sh cython appears not to be installed. What am I missing? Answer Alpine installed python pacakges using this path /usr/lib/python3.7/site-packages, just run the command inside the container and you will see the package is installed. All you need to add this path
Testing-containers and clickhouse-driver error:Unexpected EOF while reading bytes
I have these libraries installed: This code: I am trying to get a generic container with clickhouse DB running. But it gives me: EOFError: Unexpected EOF while reading bytes. I am using Python 3.5.2. How to fix this? Answer It takes some time to run a container. Add a time delay before executing operations.
Flask app on Docker: Max retries exceeded with URL
I’m working on a simple Flask app for which I’m using the default template: I’m just calling a dummy function that return and ‘ok’ response: When I call it directly on my machine with the following code: It works without any issue, but if I run it from the docker image I get the following error: ConnectionError: HTTPConnectionPool(host=’localhost’, port=5000): Max
Is there a way to get the error raised from a Python program outside Docker container and handle it?
I have a container that runs a Python program and it can run in two ways, using docker exec in the localhost terminal or by making an API Rest request (that is outside the container) which executes the same command as it would be done by using the first method. What I am trying to do is whenever my Python
Windows compatibility: Permissions?
OS Windows 10, I am using Docker Engine version 18.09.2, the API version is 1.39 The website explaining the steps to run CAT is: https://libraries.io/pypi/medcat I am building the medcat image locally. Output looks good until the end of the build process: When I am trying to start the container I just built, I get: Does anyone have experience with
What is the difference between C.UTF-8 and en_US.UTF-8 locales?
I’m migrating a Python application from an Ubuntu server with a en_US.UTF-8 locale to a new Debian server which comes with C.UTF-8 already set by default. I’m trying to understand if there could be any impact from this change. Answer In general C is for computer, en_US is for people in US who speak English (and other people who want