Skip to content
Advertisement

Tag: python

Reload Flask app when template file changes under Linux

I am developing a flask application under Linux, and i’m suffering when i make any changes to template files. Actually i well configured my app to reload on template changes using PS: when i develop under Windows templates are reloading normally. EDIT I am using the built in server, and i run my app like this : Here is my

Unable to start a Python app using Supervisord

I have a small app that I want to start using supervisord. I’ve tried the following Installed supervisord and controlled a small script Read Introduction, Running Supervisord and Configuration File sections from the documentation Setting up groups in supervisord My initial shell script could start and stop celery and Flask as daemons by saving the PID in a text file.

Get the size of a folder in Linux server

While the following code works well in windows, in Linux server (of pythonanywhere) the function only returns 0, without errors. What am I missing? Ref: Code from https://stackoverflow.com/a/37367965/6546440 Answer The solution was given by @gilen-tomas in the comments: A complete path is needed!

How can I install python-gasp on Ubuntu 16.04?

I use a Ubuntu 16.04 system, and I want to install the gasp for python. I was told that the following commands can help me to install the python-gasp: I tried the commands, but it seems not to work, because when I run it returned as Then I use $ whereis python-gasp to check the location of the python-gasp I

Change ownership and permission without terminal – Python

I have a gui made in glade and am stuck on one thing. I have a button that changes the ownership and permissions; it works fine except for folders and files owned by root. Is there anyway of invoking root privilages to run this command without having to input the root password in terminal? i.e. either predefine it within the

Python program executable for windows

I have Linux installed and Python 3.5. The program itself is made in Linux but i need to make it executable in windows. I cant see any program that can do this for python 3.5. Please give me some working option. pyinstaller, cx_freeze and py2exe dont work with 3.5 After fighting with depends for some time i got it here:

Datastax Python cassandra driver build fails on Ubuntu

I was trying to install Datastax Python Cassandra driver on Ubuntu 14.04.5. LTS. Installation succeeds but subsequent attempt to use it fails with the error: Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-91-generic x86_64) ~$ python3 –version Python 3.5.2 ~$ python3 -c ‘import cassandra; print(cassandra.__version__)’ 3.7.0 ~$ python3 cassandra_loader.py Traceback (most recent call last): File “cassandra_loader.py”, line 7, in from cassandra_tools

Advertisement