I am deploying a Django site in production and now from a week I couldn’t get Gunicorn script in /etc/init/project.conf to bind Nginx no matter what I do inside a Django virtual environment and under newly created user djagno at location /home/Django/project/bin/gunicorn. I need to know that can I run a…
Tag: python
Grouping and deleting Files
I have to come up with a solution to delete all files but the newest 2 in a directory stucture of our owncloud. The be exact – its the file versioning folder. There are files in one folder with the following structure: Filename.Ext.v[random_Number] The hard part is that there are different files in one …
No module named objects [bokeh]
Note from maintainers: This question is no longer relevant. The bokeh.objects module has not existed for years I’m trying to run this script: from: https://www.continuum.io/content/painless-streaming-plots-bokeh but at this line: I got: The version I’m using is 0.11.1 On linux mint 17.1 Answer Not…
How to open new bash terminal using Python
I am trying to open a new terminal window in Tkinter application. I’ve used os.system(“/bin/bash”) but it works in current bash only. Which stops runnning code and causes application freeze. I want to open new Terminal. How to do that? gedit like programs work fine without disturbing current…
Changing python version on platform LSF job script on Linux server
I want to execute my python code on LSF, and problem is that the return of in lsf is 2.6.6 (r266:84292, Jul 22 2015, 16:47:47) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] But my code has been written for python2.7. How can I change or assign the correct version of python to LSF job script. Answer I found the answ…
Rabbitmq remote call with Pika
I am new to rabbitmq and trying to figure out how I can make a client request a server with information about memory and CPU utilization with this tutorial (https://www.rabbitmq.com/tutorials/tutorial-six-python.html). So the client requests for CPU and memory ( I believe I will need two queues) and the serve…
improperly configured at /accounts/login/
In order to simulate sdn networks i downloaded the mini net 64 bit version and imported it in vmware Workstation pro 12 and through github all the project related stuff have been installed but the thing is when i wanna run it i encounter an error , do you think it’s because of the mysql not being config…
G++ cannot resolve paths when called from subprocess
I am writing a small python script to for automatic student homework evaluation. I have a skeleton, where submitted homework is unzipped into a temporary folder and my script is called with path to the temporary folder as an argument. My script first copies over some extra files I need and then tries to compi…
Bash: Sort text file by bytewise case sensitive sort command or using python sort command
Text File using sort -s (case sensitive) using sort -f (Not case sensitive) The words starting with an uppercase are sorted alphabetically between the lowercase words. What I want is that the words in uppercase are at the start of each next letter (upercase alphabetically sorted): Expected output: How can I r…
how to identify source of frequent process startup
Some months ago I used to play around with Python and Django, finally setting up a Django web service running python manage.py … on a RaspberryPi. Now, I’d like to use the Linux device for other things. Unfortunately, there seems to be a frequent startup of some process (every couple of seconds) t…