Python is a dynamically and strongly typed programming language that encourages readability.

learn more… | top users | synonyms

-1
votes
0answers
8 views

high io wait in file uploading process

I have a server with the following information : two hard disk, sas and raid 6(50 T) 98G of Memory Intel(R) Xeon(R) CPU E5620 @ 2.40GHz 16 core OS is Ubuntu 16.04 and Swap is disabled We use ...
0
votes
0answers
9 views

error: An error occured while connecting to the server [on hold]

please your help. The question about the errors in the source code to scraping web pages. Code written in Python is running on the Google App Engine. url address can be properly connected, and also ...
0
votes
0answers
8 views

Syslog filter to own file by tag or text contain

I need to log from my Python application to syslog. In syslog I want filter messages from my app to own file. I'm using Debian 8.3. My rsyslog rules: # cat /etc/rsyslog.d/99-MyLog.conf :syslogtag, ...
1
vote
6answers
3k views

Cannot install mercurial properly - PYTHONPATH error

I have a server running on Ubuntu 10.04 on which I wanted to install Mercurial via % sudo apt-get install mercurial It seems to have installed successfully and doesn't show me any error messages. ...
0
votes
1answer
19 views

Deploying django on mod_wsgi

The problem: I get 404 error when trying to reach localhost:80. [root@alarmpi public_html]# tail -n 1 /var/log/httpd/error_log [Sat Jun 04 23:09:50.235251 2016] [wsgi:error] [pid 2323:tid 1973417008]...
0
votes
1answer
3k views

Error while installing with Python “pip”: Cannot fetch index base URL http://

I am trying to install a local version of ScrumDo for testing. Only then I come to the point in my installation that I have to run: source bin/activate pip install -r requirements.txt I get ...
-2
votes
0answers
8 views

Server load balancing apache2 and python multiprocessing job

I have a VM that has two things to do, one is building (python script, multiprocessing) a key-value pairs and write results to redis within the same machine. Same machine also serves as my webserver,...
1
vote
0answers
16 views

Apache with python wsgi reaches MaxRequestWorkers and becomes unresponsive

I have an application running on apache under Ubuntu (tried 12 and 14) using python via WSGI. When I get a little too much traffic I see "server reached MaxRequestWorkers..." in the error log, I will ...
2
votes
2answers
1k views

Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock. If I'm creating the file by ...
-1
votes
0answers
27 views

How to resolve “unavailable modifier requested” from uWSGI log?

I believe this is occuring because of incorrect python interpretter for uWSGI. How can this be corrected? I have installed uwsgi-python-plugin and enabled it with plugin=python in my config file for ...
0
votes
2answers
2k views

How to find timestamp of file on FTP server

I need to find the latest created file in a FTP folder. However the FTP server is not returning full timestamps for files with the LIST command (missing the year): drwxr-xr-x 2 owner group ...
-1
votes
0answers
8 views

Openshift timeout exceed

I have an python3.3 + bottle app on Openshift. It takes picture and soundtrack from use (summary size<20MB) and makes video from them. Uploading and processing takes a quite long time, so when i ...
6
votes
6answers
8k views

Slow Memcached: Average 10ms memcached `get`

We're using Newrelic to measure our Python/Django application performance. Newrelic is reporting that across our system "Memcached" is taking an average of 12ms to respond to commands. Drilling down ...
1
vote
1answer
2k views

Finding local IP addresses using Python's stdlib under Debian jessie

I am writing a distributed systems program in python, and in this program I need to know the local ip-address... eg. 168.192.... 10.13..... etc, not 127.0.0.1 or hostname. I have found following ...
0
votes
2answers
1k views

How can I get event details in a transform with Zenoss 3.x

I need to get the event details from a trap in an event transform. The traps come with oids in the event details. The problem is that the OIDs are not predictable because the last digit is the event ...
1
vote
2answers
6k views

Executing a python script through php button

I am having an issue with executing my python script through using a button on PHP. I looked through any or all relevant questions regarding my issue, and tried any answers i could find and modifying ...
1
vote
1answer
12 views

Enable SCL python27 so other RPMs can see it

Trying to create an RPM that uses Python 2.7 on a RHEL 6 machine. I'm using SCL to enable Python2.7 and building the RPM with it fine. However, when I try to install that RPM on a different system ...
1
vote
1answer
28 views

GAE Front-end instance hours are increasing without the app being used (python-backend)

My GAE Front-end instance hours keep increasing even though the application is no being used and there are no instances running (because i manually shut them down!!). My question has several sub-...
1
vote
1answer
2k views

uwsgi Import Error: No module named 'encodings'

I'm trying to setup flask with uwsgi. This is my directory structure: /srv/http/www/myapp | +-- env -> virtualenv | +-- mpd -> the project directory | +-- main.py -> main application ...
0
votes
2answers
4k views

Install Python setuptools on CentOS 6

I'm trying to install setuptools with no success so far. When I do python3.3 ez_setup.py I get the following error: Extracting in /tmp/tmp6nn4cz Traceback (most recent call last): File "ez_setup....
0
votes
1answer
76 views

How can i check software version with Ansible?

I have three linux servers and i created the ansible inventory file: [web] 192.168.0.155 192.168.0.165 192.168.0.175 And i have playbook.yml: --- - hosts: web tasks: - name: Check drinks ...
-1
votes
1answer
25 views

Getting VM metrics from Vcenter

Is there a way to get VM information like resource utilization metrics from Vcenter server via an API ? I want to query them from a python script and I don't want to get them from powerCli. Vsphere ...
0
votes
1answer
8 views

PyPi Django installation incomplete

I've encountered an interesting issue, and haven't yet managed to solve it with Google. I'm using virtualenv+python3.5. After a number of ImportErrors, I came to a conclusion that my Django ...
1
vote
1answer
95 views

What kind of request is it?

I have installed Nginx in my server and i am getting a TCP request from a GPS + GPRS device. When i access the access.log i find this. 126.51.10.6 - - [06/Jun/2016:16:46:53 -0400] "GET / HTTP/1.1" ...
0
votes
0answers
22 views

Trying to install virtualenvwrapper in CentOS 6.7 and figuring out pip, setuptools, virtualenv

I'm trying to set up my server that has CentOs 6.7 installed (take a look last line of this question.) I just followed this guide an installed python2.7.11 and python3.4.3. To install ...
0
votes
0answers
38 views

Pip + virtualenv + Redhat SCL + proxy = not working

I am setting up a virtualenv based on Python 2.7 in Redhat Enterprise 6 (which ships with 2.6.x by default). I installed the SCL 2.7 version of Python and then created the virtualenv: $ scl enable ...
0
votes
1answer
16 views

How can I enable Django to send emails?

I have a Debian server (Linux www 4.5.0-x86_64-linode65 #2 SMP Mon Mar 14 18:01:58 EDT 2016 x86_64 GNU/Linux), and postfix is installed. It is working at least far enough that if, from the command ...
0
votes
0answers
13 views

Is there boost library package for python 3 in centos?

I need to compile python3 module with boost-python library. I can only find & install boost-python package via yum in centos. Is there a way to install python3 compatible boost library?
1
vote
1answer
66 views

Keepalive setting for Gunicorn behind ELB without Nginx

Our app's REST API is served by Gunicorn (not behind Nginx) running on AWS EC2 instances with a typical auto-scaling/load balancing setup. The load balancer's idle timeout is 60 seconds, and Gunicorn'...
0
votes
1answer
67 views

CentOS6.X: letsencrypt, cronjob and wrong “pip version”

I'm trying to write a script which will update the letsencrypt cert automatically via cronjob on up-to-date CentOS6.x. To do that I wrote have following script: #!/bin/sh # # get newest "Let's ...
0
votes
1answer
37 views

Calling CGI python script as root from a web form

I'm having difficulty getting a web form to run a CGI script that needs to perform a command with root permission. The form is: <form class="mainform" action="./py/print_msg.py" method="POST"> ...
2
votes
1answer
36 views

Combine groups in ansible template

Has anyone combined groups for a loop in ansible templates. What we want to do is get the common members of two groups and loop them through to create our config. We're trying the same format that ...
1
vote
1answer
21 views

RHEL 5 YUM Python Throwing Traceback and Timeout errors

I know, the first thing I should do is upgrade to RHEL 6 or 7, but unfortunately, I'm stuck on it for the time being. I have been running into this error using any yum commands. The rpm command works ...
0
votes
1answer
2k views

nginx, gunicorn and django weird 504 gateway timeout

I have an nginx / gunicorn / django setup as follows: Nginx server { listen 80; server_name myserver.com; root /www/python/apps/pyapp/; access_log /var/log/nginx/myserver.com....
0
votes
1answer
1k views

Python Requests image upload HTTP POST

I am having some problem with a POST request that is driving me crazy. I am trying to upload an image using a POST using python requests by replicating the original request First of all, this is the ...
0
votes
1answer
35 views

Freeradius / python / package import fail

I'am tring to import an external library into (PyJWT) for a freeradius authorization, but when i run freeradius -X i get this error message. # Instantiating module "python" from file /etc/...
0
votes
0answers
10 views

DLL Load Fail on Apache x64 Server Running

I am transferring a Django and Mapserver project from a Windows 7 machine to a Windows Server 2012 R2 machine (never worked on server environments). I have a single version of 64-bit python installed ...
-2
votes
0answers
93 views

Run your own python script in background [migrated]

I have my own python library which gets installed wide when I do this python setup.py install inside python project directory, it copies the executable file in bin also, but basically I am doing ...
1
vote
1answer
1k views

rsyslog to external script

Using CentOS I have rsyslog configured to send data to a python script via a shell execute action(^). I have python 2.7 installed, but when my script is called, the shell environment is referencing ...
0
votes
3answers
2k views

Getting a list of patches in an HPSA patch policy

I'm trying to get a list of patches contained in a Patch Policy in HPSA -- I can get what I need via the Twister web interface (under PatchPolicy.getPatches(), give it an ID, and it happily returns a ...
0
votes
1answer
35 views

freetds start job at step from linux python script on MSSQL DB

I'm trying to create a python script on a linux box that can execute an agent job. Looking around I found sp_start_job command. But it doesn't seem to exist on python. Does any one know if it does ...
0
votes
1answer
23 views

Would I need uWSGI for a application or Nginix will suffice?

According to official uWSGI docs : A web server faces the outside world. It can serve files (HTML, images, CSS, etc) directly from the file system. However, it can’t talk directly to Django ...
2
votes
2answers
955 views

Ansible with Github: Permission denied (Publickey)

I'm trying to understand the GitHub ssh configuration with Ansible (I'm working on the Ansible: Up & Running book). I'm running into two issues. Permission denied (publickey) - When I first ran ...
0
votes
1answer
74 views

httpd service refuse to start after packstack installation

Centos 7 Openstack single machine setup After packstack installation I did reboot my computer and after it turned on, httpd service failed to start httpd.service - The Apache HTTP Server Loaded: ...
-2
votes
1answer
41 views

How BCC works in Postfix

I'm trying to use postfix feature content_filter like: my_script unix - n n - 10 pipe flags=Rq user=filter argv=/usr/local/bin/my_script.py -f ${sender} -- ${...
0
votes
0answers
19 views

Why does Apache2 not find the Python libraries of my Django site?

I have deleloped Django sites with the built in development server (python manage.py runserver), and have now started using Apache2 with WSGI instead. But if the site uses additional Python libraries ...
-1
votes
1answer
70 views

trouble deploying django under apache on centos with mod_wsgi

EDIT 2: I got this running mostly! It was indeed a SELinux issue. So most things work, I get a cannot write to a read only database error. And some of my things that seem like static are not found,...
0
votes
0answers
13 views

Issue while installing ibm_db on RHEL with easy_install

easy_install ibm_db error: Searching for ibm-db Reading https://pypi.python.org/simple/ibm_db/ Best match: ibm-db 2.0.7 Downloading https://pypi.python.org/packages/54/8a/...
-2
votes
1answer
27 views

Write Python Output to File in Cronjob

I have a script (/home/user/script.sh): #!/bin/bash /usr/bin/python /home/user/program.py >> /home/user/logs/out.log & and it is working. The output from the python script is written to ...
0
votes
1answer
67 views

AWS RDS Postgres performance issue

We are using rds(postgres) with instance type as db.m4.2xlarge. Usually most of the time number of connections are 8-10. But on some occasion as the number of connections increases to 100-200. DB ...