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

learn more… | top users | synonyms

3
votes
1answer
30 views

Hosting multiple Python or Django web apps - need advice on server strucutre/architechture [on hold]

We have many web apps/sites. Some are fairly complex, but many of them are simple websites. Currently we host something like 10 sites in single dedicated server using nginx and uwsgi. While this is ...
0
votes
0answers
10 views

Unable to authenticate with PAM under non-root user

I am trying to build an application on a CentOS 7 server that needs to authenticate against PAM. The application is Python-based, so I have integrated python-pam into the project. The application ...
0
votes
0answers
12 views

Nginx / uWSGI / Python / Django cookie whitelisting

I have a Django application on a subdomain myapp.domain.com. There is another application I don't have any control over on badapp.domain.com that is setting malformed cookies. Is there a way in ...
-1
votes
0answers
17 views

Finding location of data centers [on hold]

I have a list of applications for which i need to find their actual data center location, we can check it manually through checkhost.net but I want to check after load blancer from where the actual ...
0
votes
0answers
8 views

Wrong PID: supervisord program with a Software Collections Python

I have a Python server that must be executed by a Software Collections enabled environment. The supervisord config file looks something like this: [program:xxx] command=/usr/bin/scl enable rh-...
0
votes
0answers
7 views

Beanstalk is not updating source files but status is green

I am trying to deploy my web app on beanstalk. But after deployment there are no errors in the logs. Health appears to be green. But i cant access my web-page. Plus, i went into beanstalk instance. ...
0
votes
0answers
5 views

Why is class instance on different thread? [migrated]

I'm getting the dreaded sqlite3 multi-thread exception in my python app, but I cannot understand why. I have a thread running as long as the app runs, and this is where the sqlite3 connection is set. ...
-1
votes
1answer
16 views

SyntaxError at phyton script [closed]

I try to run an python script but I get errors. File "./ics2owncloud.py", line 41 r = requests.put('%s/%s.ics' % (base_url, uid) verify=False), SyntaxError: invalid syntax How must i add the ...
-1
votes
0answers
16 views

How to append PYTHONPATH on web server?

I have requests module installed and I have tested through virtual python environment this program and it works(as in prints the right answer). import requests payload = {'key1': 'value1', 'key2': ['...
0
votes
0answers
11 views

Fallback to default pypi if mirror fails for easy_install and pip

I am using aws in china and using the default python pypi mirrors are uber slow. So I can change the mirrors for pip and easy_install using the below: touch ~/.pydistutils.cfg [easy_install] ...
0
votes
0answers
15 views

How do I block access to a port from everybody except my IP in Centos 7 FirewallD? [duplicate]

Im on Centos 7 using firewalld. When I start my python server, it is reachable on mydomain.com:5000 to the general public. How would I go about not allowing anybody to access this port except IP's ...
0
votes
1answer
31 views

Configuring django with LDAP

I have configured LDAP successfully with a python application using little more than these statements in db/model.py: from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings....
0
votes
1answer
43 views

Installing locally python3 on AIX

I'm trying to locally install python3 (3.5.2) interpreter on AIX 7.1 I used this to configure, which runs ok CC=gcc OPT="-O2" ./configure --enable-shared --prefix=$HOME/usr/local but I get error ...
-1
votes
0answers
4 views

Django IntegrityError email is not unique [migrated]

I am working on my Checkout view with regular/guest user but getting hard time to come around the integrity error. Idea is to let guest users register with email only to checkout and I need to set the ...
-2
votes
0answers
15 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
15 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
0answers
18 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 ...
-1
votes
0answers
33 views

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

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 ...
-1
votes
0answers
13 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 ...
1
vote
1answer
19 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
43 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-...
0
votes
1answer
9 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
votes
1answer
29 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 ...
-1
votes
1answer
125 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 ...
0
votes
0answers
30 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
48 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
23 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 ...
1
vote
1answer
101 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

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?
2
votes
1answer
115 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
27 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
238 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 ...
2
votes
1answer
38 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
22 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
50 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"> ...
0
votes
0answers
13 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 ...
0
votes
1answer
113 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: ...
0
votes
1answer
46 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
1answer
26 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 ...
0
votes
0answers
20 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 ...
0
votes
0answers
17 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
43 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 ...
-2
votes
1answer
50 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} -- ${...
-1
votes
1answer
100 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
1answer
99 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 ...
0
votes
1answer
104 views

Running a python script on Nginx

This question might sound a bit odd to the people hanging out here, but i am just trying to start learning server side programming Is it possible to run a python script directly in a Nginx server ...
0
votes
0answers
40 views

Getting a custom package to install properly on Elastic Beanstalk

I'm trying to get an elastic beanstalk worker environment set up, but one of the packages in the project's requirements.txt file comes from a private pypi server that I've got set up on EC2. I can ...
0
votes
1answer
148 views

MQTT certificates verification fails

I'm been desperately trying to get my MQTT clients to connect to my MQTT broker which is set up with a certificate from a CA (Letsencrypt). To be able to get the CA certificate, I've used the ...
2
votes
3answers
56 views

how to install ubuntu 10.04 on latest hp 9th Gen server with 64 GB Ram?

How to install Ubuntu 10.04 on latest HP 9th Gen. Xeon Servers with 64 GB RAM? We are able to install Ubuntu 12.04 but below that we are not able to do? Our software (erp) runs safe and sound only ...
0
votes
1answer
43 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 ...