Stop pip from failing on single package when installing with requirements.txt

I am installing packages from requirements.txt pip install -r requirements.txt The requirements.txt file reads: Pillow lxml cssselect jieba beautifulsoup nltk lxml is the only package failing...

I cannot install mysql-connector-python using pip

I am trying to install mysql-connector-python==1.0.12 as part of my project's automated installation, and I get the following error from pip install: Collecting mysql-connector-python==1.0.12...

standard_init_linux.go:178: exec user process caused "exec format error"

docker started throwing this error: standard_init_linux.go:178: exec user process caused "exec format error" whenever I run a specific docker container with CMD or ENTRYPOINT, with no regard to...

Deploy a simple VS2017 Django app to Azure - server error

I've been trying to create a Django web app using VS2017 Preview (which includes Python tools for Visual Studio), and deploy the resulting app to Azure (I'm currently on the 30-day trial period to...

docker-compose "No such file or directory" for sh-command

I am setting up docker-for-windows on my private pc. When I set it up a while ago on my office laptop I had the same issue but it just stopped happening. So I am stuck with this: I have a...

AppEngine warning - OpenBLAS WARNING - could not determine the L2 cache size on this system

I try to deploy application on the GC AppEngine. There are no errors during deploy process but application doesn't work (Just show loading page). The only one strange raw in logs OpenBLAS WARNING...

Maintaining Library/Packages on Azure Databricks via requirements.txt

There is great documentation for installing packages 1-by-1 on azure databricks but not a way to do the equivalent of: pip install -r requirements.txt or to use the requirements file at all. Am...

How to install certain packages before building wheels for other packages in requirements.txt using pip?

Here is a section of my requirements.txt file. pystan cython lunardate holidays convertdate plotly fbprophet While using pip install, all the packages are downloaded, built and installed in the...

ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication'

I am trying to deploy a django app on GCP but when i try to make migrations it gives me this error: ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for...

Could not find a version that satisfies the requirement tensorflow==1.12.0 [ Deploying Flask Python App on Cloud foundry]

Hello Need help in resolving the following error while deploying Python Flask App on Pivotal Cloud Foundry. "Could not find a version that satisfies the requirement...

Failed to install gcc on Python-3.7-alpine docker container

I am trying to set up a Python docker container, when I run the command "docker-compose up" to build the Dockerfile it throws me this error message below. The docker file was successfully built...

Database Permission denied after running docker-compose up

I'm getting the following error after I run docker-compose up. How do I resolve this? db_1 | chown: changing ownership of '/var/lib/mysql/': Permission denied db_1 | chown:...

Python Google Cloud Function won't install Pandas

I'm deploying a Python function as a Google Cloud Function. It tests fine locally and deploys to GCP without complaint. However, when I actually execute it, it crashes with... Error: function...

Bitbucket pipeline cannot find the file in the test folder: FileNotFoundError: [Errno 2]

I am getting the following error in the bitbucket pipeline: E FileNotFoundError: [Errno 2] File /opt/atlassian/pipelines/agent/build/tests/Test_input.csv does not exist:...

How to install ffmpeg on Google App Engine?

I intend to install ffmpeg and ffprobe to my Google App Engine flex environment, how can I do this with requirements.txt as a package ? I am currently using ffmpeg-python yet, this is only a...

How to import requirements.txt from an existing project using Poetry

I am trying out Poetry in an existing project. It used pyenv and virtual env originally so I have a requirements.txt file with the project's dependencies. I want to import the requirements.txt...

Error with Pillow library when dockerinzing Django app

I develop Django apps in Windows environnement and deploy my apps in production in Linux server. Python 3.8.3 I have a Django project that works (in dev and prod) and I try to "dockerize" it but I...

exec: "com.docker.cli": executable file not found in $PATH

I am getting this error when docker-compose up on one of the containers only. exec: "com.docker.cli": executable file not found in $PATH The terminal process "/bin/zsh '-c', 'docker logs -f...

Is there any way to see the output of a shell script when launched through make, for SAM

I'm trying to build a multi-layer Python SAM (AWS Serverless Application Model) app. Nothing too fancy, but it has some dependencies, which are managed using pipenv. SAM has a sam build command...

Can't deploy container image to lambda function

I try to deploy container image to lambda function, but this error message appear The image manifest or layer media type for the source image <image_source> is not supported. here is my...

ERROR: Failed building wheel for psycopg2 (Ubuntu 20.04 + Python 3.8.5 + venv)

Greetings wisdom from Stackoverflow! I'm having issues building wheel for psycopg2 thru pip install -r requirements.txt. I'm on ubuntu 20.04 + python 3.8.5 + venv. This is my...

error building docker image 'executor failed running [/bin/sh -c apt-get -y update]'

I'm trying to build a docker image but it throws an error and I can't seem to figure out why. It is stuck at RUN apt-get -y update with the following error messages: 4.436 E: Release file for...

how to make static files works using django docker nginx and postgresql since its not serving them

When i try to access http://127.0.0.1:8000/admin, i get this. my folder structure is : django-react-nginx | |_ _ docker-compose.yml | > backend | |_ Dockerfile | ...

Docker Alpine executable binary not found even if in PATH

I have an alpine running container which contains some binaries in usr/local/bin When I ls the content of usr/local/bin I got this output : /usr/local/bin # ls dwg2SVG dwg2dxf dwgadd ...

How to solve about Docker error about failed to compute cache key: "/requirements.txt?

I use this docker build - < Dockerfile -t deepface to build a docker image. When I runin command it show Error: > ERROR [3/4] COPY ./requirements.txt /requirements.txt > 0.0s >...

Using a pip requirements file in a conda yml file throws AttributeError: 'FileNotFoundError'

I have a requirements.txt like numpy and an environment.yml containing # run via: conda env create --file environment.yml --- name: test dependencies: - python>=3 - pip - pip: - -r...

ModuleNotFoundError: No module named '_tkinter' Heroku

I am trying to deploy a webapp using Heroku and it get deployed but it gives internal server error when I try to open it. The complete log as from heroku logs -t is as...

Docker-compose up runs perfectly localy ,but on gcp i get error could not translate host name db to address: Temporary failure in name resolution

line 187, in get_new_connection connection = Database.connect(**conn_params) File "/usr/local/lib/python3.9/site-packages/psycopg2/init.py", line 122, in connect conn = _connect(dsn,...

Why TensorFlow CPU 2.7.0 is not found by docker while creating an image?

I am building a docker image, using this Dockerfile: FROM python:3.8-alpine EXPOSE 5000/tcp WORKDIR /app COPY . /app RUN pip install -r requirements.txt CMD [ "python", "./app.py" ] This is the...

Error no matching distribution found for MarkupSafe==1.0

Trying to install libraries in a newly created environment after using the command pip install -r requirements.txt And got an error: ERROR: Command errored out with exit status 1: command:...