python-daemon installation fails when using --prefix

if I execute: pip install --install-option="--prefix=/root/folder" airflow==1.8.0 it will end so 'dist_version': self.distribution.get_version(), File "version.py", line 656, in...

How to get the result of an SQL query from Big Query in Airflow?

Using Airflow I want to get the result of an SQL Query fomratted as a pandas DataFrame. def get_my_query(*args, **kwargs) bq_hook = BigQueryHook(bigquery_conn_id='my_connection_id',...

pip is not fully installing packages from requirements.txt

I'm trying to install python dependencies from a requirements.txt file on my raspberry pi. This worked fine on an ubuntu VM image I initially tested it on, so I'm a little confused. When I run...

airflow webserver starting - gunicorn workers shutting down

I am running airflow 1.8 on centos7 on docker and my webserver is not getting to the browser. I installed airflow via pip2.7. Flower ui is displaying fine, initdb ran connecting to a postgres...

bash parameter substitution error - Bad substitution

I have a bash script which is taking a file and converting the == to >=. This command works fine from the command line: while read a ; do echo ${a//==/>=} ; done < /opt/scanner/requirements.txt >...

Can't run MLflow web-based user interface

I've installed MLflow on Ubuntu Server 18.04 LTS, in a virtual environment (Python 3), using its Quickstart documentation: $ python3 -m venv mlflow $ source /home/emre/mlflow/bin/activate $ pip...

error importing backend from keras over tensorflow

After installing cuda 9, cudnn 7, tensorflow and keras, keras cannot find the backend. Running on Ubuntu. Any idea what to do? Thanks! Here are some outputs that may help find the problem: $...

cloud composer build logs, where are they?

I am trying to install pypi dependencies on cloud composer following this guide. The build failed, and the error message says: name: "operations/14021472-6dbe-42b3-8ec1-ba7ac62be60e" done:...

Airflow webserver not starting in 1.10

Trying to migrate from Airflow 1.9 to Airflow 1.10. After some effort I was able to install the new version but could not load the web UI. When I try to start webserver It gives an error of file...

Gunicorn SSL exception

I am runninug Gunicorn 19.9.0 and when accessing the webpage I receive an exception. This causes the browser the gunicorn to freeze for a few minutes until it is able to start serving again. These...

jellyfish C package not appearing in conda environment

I have developed something using my home machines conda environment. I want to move this to a different user on the machine so I exported the environment to a environment.yml file. I done this...

Installing w3af in Debian 9 "Strech"?

i'm performing security audits for business, i wanted to install w3af on a debian virtualized machine hosted in azure. Platform informations : Linux 4.9.0-8-amd64 SMP Debian 4.9.110-3+deb9u6...

Docker build taking too long when installing grpcio via pip

I have a Dockerfile which installs a few packages via pip. Some of them are requiring grpcio, and it takes a few minutes only to build this part. Does anyone have a tip to speed up this...

bq cli tool unable to connect to server

I'm trying to use the bq tool in my docker container, but I am having difficulty connecting. I have ran gcloud init, also, I can query on webui and outside of docker container w/ bq. bq query...

Airflow Worker SQL connection lost

I'm new to Apache-Airflow and have Problems setting it up correctly. I'm using Python 3.6.6 in the Linux subsystem on a Windows 10 machine. [email protected]:~$ cat /etc/issue Ubuntu 18.04.1 LTS...

Error during building of exe using cx_freez

I am getting: "import error :No Module named 'PyQt5.QtGui'" during the build. The code snippet for setup.py file and .py is below. Please take a look and suggest changes i need to make to either...

Running setup.py install for mod-wsgi-packages: finished with status 'error'

I get this error below when i am trying to deploy my python app on heroku. Attached here are my requirements.txt...

KeyError: 'collectstatic' When deploying the Django application to pythonanywhere

During the implementation of my Django application on pythonanywhere for the first time I encountered such an error. Previous applications with a very similar structure were able to be implemented...

Could not find a version that satisfies the requirement ItsDangerous==1.0.0. Django, Pythonanywhere

When I try to deploy my application to pythonanywhere, the following error it is returned. Could not find a version that satisfies the requirement ItsDangerous==1.0.0 How can I solve it? I...

Could not find a version that satisfies the requirement requests-html-0.8.2/ 0.9.0 / 0.10.0. Django - pythonanaywhere

When I try to deploy my application to pythonanywhere, the following error it is returned. Could not find a version that satisfies the requirement requests-html. I tried with the following...

Error when init Vertica as a database backend for airflow

I'm trying to use airflow with a Vertica database as a backend for metadata. I have configured correctly the airflow.cfg file providing the string connection with Vertica and the schema name. This...

Getting an error when writing a test for celery task

I wrote the following bare minimum unit test class for celery import pytest @pytest.fixture def celery_config(): return { "broker_url": "redis://localhost:6379/0", ...

Django on Heroku: No module named 'future'

I'm not good in English, so I'm sorry if I couldn't ask questions well. I'm having trouble with deploying Django apps on Heroku. I executed git push heroku master command. The result is as...

ContextualVersionConflict when importing guesslang package

When importing guesslang package, I've got ContextualVersionConflict error about html5lib package. ContextualVersionConflict: (html5lib 1.0.1...

Tensorflow Python 3 Docker Image with mysql failing to install

Note: yes, there are many, many posts regarding the issues of installing mysql for python, specifically for python3 (e.g....

GCloud Upload httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header

I am attempting to upload a small file to gcloud using a simple python program client = storage.Client(project=GCLOUD_PROJECT) bucket = client.get_bucket(GCLOUD_BUCKET) blob =...

Keras callback on_epoch_end throws error (Nonetype has no len())

I'm training a lot of neural networks using hyperopt at the moment. Sometimes it runs perfectly through, sometimes not and I don't understand why. It refers to the validation data, but that's...

ModuleNotFoundError: No module named 'flake8'

here is the part of the files that are important for this question: . ├── .env ├── tox.ini ├── requirements-dev.txt └── tests/ ├── test_blocking.py └──...

Heroku requirements

I'd tried to deploy my app on Heroku, but smth went wrong. ERROR: Could not find a version that satisfies the requirement get==2019.4.13 (from -r /tmp/build_53ad6d03_/requirements.txt (line 17))...