Docker - Timeout value connect was Timeout

I have just started out with Docker, and I am currently trying to run docker-compose run --rm setup on a docker-compose.yml file, but whenever I do, I receive the following: Traceback (most recent...

Ansible Container: docker.errors.NotFound: 404 Client Error: Not Found ("No such container: web_data")

I'm trying to share a volume between multiple Docker containers using Ansible Container and am getting the following error: docker.errors.NotFound: 404 Client Error: Not Found ("No...

OSError: [Errno 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/man'

I'm trying to install shub, the Scrapinghub command line tool in OSX 10.11.6 (El Capitan) via pip. The installation script downloads the required modules and at some point returns the following...

Docker-compose Install: No module named docker.errors

I'm facing this issue when I'm installing docker-compose OS: ubuntu 14.04 docker --version Docker version 17.05.0-ce, build 89658be pip freeze | grep...

What dependencies are there to run pandas pd.test()?

After installing pandas via pip I tried running pd.test() per these instructions I'm getting errors that seem to indicate missing modules. Installed pytest and moto to resolve the first two and...

Ansible azure_rm_virtualmachine failing for missing pip package on mac

When I attempt to use the ansible azure plugin to provision a new vm on azure with azure_rm_virtualmachine I am getting the following error: failed: [localhost] (item=zk01) => {"changed": false,...

"EOF occurred in violation of protocol" using requests on wonky server

The problem I need to connect to a server running an outdated configuration using the Python requests package. Here's the report from SSL Labs on the server configuration. Despite trying just...

AWS EB CLI installation fails with "python setup.py egg_info" failed with error code 1"

I am trying to install awsebcli in a virtualenv like this: pip install awsebcli --upgrade --user Installation fails with the following error: Complete output from command python setup.py...

Installed Docker on Mac but can't find the command

On My mac I ran: pip install docker And it seems successfully: Installing collected packages: websocket-client, docker-pycreds, docker Successfully installed docker-3.4.1 docker-pycreds-0.3.0...

ansible-container is not JSON serializable

We just started getting container.yml "is not JSON serializable" from ansible-container 0.9.2 - which was the version we have been running for months and no errors have a occurred. Any ideas why...

ModuleNotFoundError: No module named 'flask_restful'

I've been trying this for awhile now with no luck. Making a basic api but running into some trouble with the flask_restful module. This is my code: import markdown import os import shelve from...

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...

deploying flask application to heroku not working

i am trying to deploy to heroku but its not working for me i am getting errors.Please help new to web development.I dont know whats missing i did the heroku part correctly nothing missing from...

Django and AWS S3: Static File Requests to Wrong URL

I'm trying to serve a Django 2.1 with Python 3.7 application with React 16.6 frontend to AWS Elastic Beanstalk. I build the React app using Create React App. So far I succesfully got the server...

How to fix ModuleNotFoundError in azureml-sdk when installed inside conda environment

I'm setting up a conda environment on Windows 10 Pro x64 using Miniconda 4.5.12 and have done a pip install of azureml-sdk inside the environment but get a ModuleNotFoundError when attempting to...

Ansible not able to find python module

Using ansible to run docker swarm on multiple virtual machines. The ansible is not able to find the python module docker on the remote machine, even though it has been installed. Runs the...

Unable to install pytorch in conda due to setuptools is a dependency of conda and cannot be removed

conda install pytorch torchvision cudatoolkit=9.0 -c pytorch Here is the error I encountered RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating...

ImportError: module incorrectly imported

I am getting error when I run below given command docker-compose run app python manage.py test ImportError: 'tests' module incorrectly imported from '/app/core/tests'. Expected '/app/core'. Is...

How is it that torch is not installed by torchvision?

Somehow when I do the install it installs torchvision but not torch. Command I am running as dictated from the main website: conda install pytorch torchvision cudatoolkit=10.0 -c pytorch then I...

SAM Build only completes successfully with --use-container parameter

I'm developing a Lambda function written in python3.6 to test locally, then deploy to AWS once working. I'm using PyCharm's AWS Serverless Toolkit for this. SAM build is not building successfully...

requirements.txt Issues while deploying Django on AWS Elastic Beanstalk

I am trying to deploy a Django APP on AWS Elastic Beanstalk, but i have been dealing with this requirements.txt file invalid error for hours. Please any help would be apppreciated Erros...

How to use Tensorboard with Pytorch in Sagemaker

I am using torch version 1.2.0 and installed with conda tensorboard 2.0.2. I am running on Sagemaker conda_pytorch_p36. I also followed this StackOverflow question from a while ago. My goal is to...

Can't get a simply Django app to build on Docker (Must have Postgres + Mysql support)

Dockerfile: # pull official base image FROM alpine:edge RUN apk update && apk add build-base libzmq musl-dev python3 python3-dev zeromq-dev \ mariadb-dev postgresql-dev RUN...

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...

Python/Anaconda can not locate installed modules in conda environments

I am using anaconda as an environment manager for my code. When i installed anaconda and created the environments everything worked fine. But when i came back the next day and activated the...

Apache Airflow DockerOperator not finding docker module

So I am trying to run a simple dag using the DockerOperator. I am running the command airflow webserver in my conda environment with the following modules: Package ...

Python: TypeError: required field "type_ignores" missing from Module in Jupyter notebook

I have been having issues with my jupyter notebook for a few days. I didn't fix them at the time but have decided to now. Earlier whenever I executed anything in the jupyter notebook, It showed a...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

Conda - how to update only cudatoolkit in an existing environment?

This is a specific instance of a general problem that I run into when updating packages using conda. I have an environment that is working great on machine A. I want to transfer it to machine...

psycopg2.errors.ActiveSqlTransaction: CREATE TABLESPACE cannot run inside a transaction block

I am quite new to Python, we have an app container & a DB container. App container collects values like DB_HOST,PORT etc from CLI & try to create Tablespace on containerized Postgres DB running on...