AWS Elastic Beanstalk error when uploading Flask application

I recently tried to upload a Flask application to AWS however I received an error stating: Your requirements.txt is invalid. Snapshot your logs for details. I uploaded a test application (which...

Error on "docker-compose" when I use by pipe with sh ( echo "docker-compose... " | sh )

I've a application which has multi container. to easy installation, I decide to use packaging image. what I expected is like below $ docker run my_application install | sh -> pull all related...

sudo: docker-compose: command not found

I am trying to run docker-compose using sudo. I have both docker and docker-compose installed on Ubuntu 16.01. Due to an error while trying to download compose using curl, I ended up installing it...

AWS Elastic Beanstalk - error requirements.txt

When I try to deploy my Amazon Web Services Elastic Beanstalk project (Python + Django), I get the following error: 2016-09-14 14:46:37,244 ERROR Error installing dependencies: Command...

Cant find module Django while deploying on Elastic Beanstalk

I am trying to deploy the backend of this repository https://github.com/LaunchKit/LaunchKit on Elastic Beanstalk. I am very new to Django and I successfully did those two tutorials explaining how...

Django & Heroku - ImportError: No module named gettingstarted.wsgi

I'm trying to deploy a Django1.10 app to Heoroku, and I followed this guide to add the required configurations. After deploy, application crash and I get a No module named gettingstarted.wsgi...

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

How to tell docker-compose exec to read from stdin?

docker-compose exec is failing when reading from stdin: $ echo "use mydb; show measurements;" | docker-compose exec influxdb influx Connected to http://localhost:8086 version 1.2.4 InfluxDB shell...

docker-compose throws error with gitlab-ci

I try to use Gitlab CI with docker-compose but I always get this error : $ docker-compose up -d --build Creating network "backoffice_default" with the default driver Building php Creating...

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

Fill requirements.txt from PyCharm virtual environment

I am trying to fill a requirements.txt for my PyCharm Django project that has a virtual environment. I am using the following when my virtual environment has been started: pip freeze >...

ERROR: AlreadyExistsError - Cannot exceed quota for PoliciesPerRole: 10

Im using awsebcli(*pip install awsebcli —upgrade —user) for build NLB (NetWork Load Balancer) on elasticbeanstalk with awsebcli(https://pypi.python.org/pypi/awsebcli/3.0.3) But I have a...

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

Not able to install Docker compose in Linux

I am not able to install docker compose on my Linux system.getting below error after running installation command: ~$ sudo apt-get -f install docker-compose Reading package lists... Done Building...

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

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

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

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

Cant start docker-compose & failes on No module

We installed the docker and docker-compose on our Linux red-hat 7.2 instructions - from the link -...

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

no django file in the site packages

**Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File...

Elastic Beanstalk, Django deployment error, Could not find a version that satisfies the requirement pkg-resources==0.0.0

I am trying to deploy my django project on Elastic Beanstalk. I am following the official document and this article and I think I have done most of the things asked in those resources...

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

M1 Processor: Installing docker compose within docker could not build wheels for pynacl

I am using the latest version of docker 3.5 and unable to have my docker file install docker-compose ARG docker_compose_version="1.25.3" RUN pip3 install docker-compose==$docker_compose_version &&...