Category : python-3.x

I’m installing argon2 for Python with RUN apk add py3-argon2-cffi. This installs the Python argon2 package from Alpine (https://alpine.pkgs.org/3.14/alpine-community-x86_64/py3-argon2-cffi-20.1.0-r1.apk.html). When I try to import it with import argon2 I get ModuleNotFoundError: No module named ‘argon2′ I don’t want to install argon2 with pip because I don’t have gcc installed. gccwould tripple my container size and ..

Read more

When I run the following command: docker-compose run django python manage.py startapp hello OR docker-compose run django python manage.py createsuperuser Instead of starting a new container, it opens a Postgres shell. However, when I’m using exec, like so: docker-compose exec django python manage.py createsuperuser Then it works as expected. Here is my docker-compose.yml file: version: ..

Read more

I am running into the problem whenever I try to load custom trained NER model of spacy inside docker container. Note: I am using latest spacy version 3.0 and trained that NER model using CLI commands of spacy, first by converting Train data format into .spacy format The error throws as following(You can check error ..

Read more

Try to build docker-compose container on host machine. The problem with grpcio, which fails all the time. Error: distutils.errors.CompileError: command ‘/usr/bin/gcc’ failed with exit code 1 ERROR: Failed building wheel for grpcio With VERY big traceback Interesting that on my laptop there are no any problems with it. Container works well. I have tried (language ..

Read more

I created a python based Azure Time triggered Function on custom container. For many months it worked fine, but suddenly stopped working since last week. Examining the logs shows this error 2021-07-20T08:39:57.871Z INFO – Waiting for response to warmup request for container [Container Name]. Elapsed time = 199.7027324 sec 2021-07-20T08:40:13.018Z INFO – Waiting for response ..

Read more