The application works fine on my local linux server but I have trouble of running it on Azure. I checked the Files folder and all python libraries are installed correctly under /antenv2.7/lib/python2.7/site-packages. Here is my pip requirements file: But when gunicorn starts, it generates this error. I don…
Tag: python-2.7
Running flask app automatically after boot does not work correctly
I am setting up Flask project in Raspberry Pi (python 2.7). It runs perfectly when the python script is called manually. However, I am trying to run the script automatically after boot, it cannot run properly. I have tried modifying /etc/profile to run the script after boot; /etc/profile start_script.py I exp…
repo fail to init on Ubuntu 16,0 virtual box on Macbook
I am trying to build AOSP image on my mac Book using Linux virtual box. Since I don’t have enough space on Mac I am trying to checkoutAOSP on external 2 TB Segate HDD which I planned to use for build. I have installed repo tool and python 2.7 but when I try to init repo with this command repo
reboot raspberry if python script stop with error
I use a Python script on a raspberry that communicates with the Internet and USB with an Arduino and it happens that one of the 2 communications blow because of some error, and I would like in case this file python stops because of an error that the Raspberry restarts ! can some one hepl me ? Answer This is
Creating files from a Python script within a shell script within a shell script
I’m trying to run a Python script from a shell script within a shell script, but I’m running into some problems. Imagine my root shell script looks like this: and my test2.sh: The python file is in the same directory as test2.sh but test2.sh’s working directory seems to be the root’s s…
Unable to import paramiko
I wrote a Python script on my laptop(written in 2.7.14) which makes use of paramiko module. It runs just fine on my laptop. I moved this script to a linux box & while running it, I get an error saying paraniko not found which is of course because the linux machine where I moved the script to doesn’t…
Running compiled Linux executable on other Linux computers
I’ve been working on a custom program that allows me to control my other Linux-based computers on my network. I’ve been using Python and used PyInstaller to compile the code into a Linux executable. Running the executable on my own computer works just fine and does exactly what it’s supposed…
Cannot import any modules (installed used pip) in python 2.7.14
I downloaded the source code of python 2.7.14 and built it and installed it on linux ( Red Hat 4.8.5-16 ). I have earlier installed python-magic and requests libraries. Now when I try to import modules installed using pip, I get this: while similar thing works perfectly fine in python 2.7.5 (default with the …
‘module’ object has no attribute ‘STARTUPINFO’
my program have a code: and my OS is kali linux. when I run program in python 2 or 3 has error: please help me. thanks. Answer The STARTINFO class is only available on Windows. Clearly stated in the docs: The STARTUPINFO class and following constants are only available on Windows.
[ Python 2.7 ]Package program with Pynsist
I am packaging a Python 2.7 program with the lastest version of Pynsist. I’ve created an installer.cfg file following this example. But when I try to package my application running into the application folder it comes up with So the problem I think is with Pygame. On Google there in nothing about this, …