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

learn more… | top users | synonyms

2
votes
1answer
395 views

Python and mod_wsgi path issue

I have an AIX 6.1 system that I've compiled and installed: Apache 2.2.21 (into /usr/local/mercurial) Python 2.7.2 (into /usr/local/bin and /usr/local/lib) mod_wsgi 3.3 (with the AIX fix #1 described ...
2
votes
1answer
827 views

is there a way to tail a log from remote server without using any user credentials?

I run a script tailing a log in a remote server, like so: ssh userx@someip tail -f /data/current.log|python2.7 monitorlog.py There are dependencies and service requirements that disallows me to run ...
2
votes
1answer
719 views

IIS FTP 7.5 Data Channel Problem (SSL)

Hey there I wonder if anyone can get me in the right direction. I am setting up both a FTPS Client and Server, FTPS Server using Microsoft’s iis FTP 7.5. On the client side it will be running on ...
2
votes
1answer
720 views

FCGI & recompiling python code without restarting apache

At one hosting company, they used to run python projects with fcgi. They had set it up so that when i changed django.fcgi file, which put django & my project on pythonpath, my project code was ...
1
vote
1answer
35 views

Changing the default python on RedHat 6

We have a cluster consists of 5 machine for running Apache spark. One of the machine the default python is 2.7 and the command which python output the following path /usr/local/bin/python The other ...
1
vote
1answer
42 views

error while playing ansible playbook

I just installed ansible on a server in aws and then created a playbook to run the same but while running i am getting error as below : ERROR! 'copy' is not a valid attribute for a Play The error ...
1
vote
1answer
79 views

Trying to install CloudWatch Agent on Ubuntu 14.04: “Failed to create virtualenv”

I am trying to install AWS CloudWatch Log Agent on Ubuntu 14.04 following this guide: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/QuickStartEC2Instance.html When I type in ...
1
vote
1answer
21 views

Switching library paths in python virtualenv dynamically

There are two versions of Python that can be installed on RHEL 6.7, as many obviously know. Yum needs 2.6, and other programs for example Graphite need 2.7 After digging into it, I see that even when ...
1
vote
1answer
383 views

Google App Engine: This operation is not possible because no App Engine application was found for this project

I'm trying to help a friend deploy a simple python app in google app engine (the free account). It seems as if his project could be corrupt? The project is: Project ID sgvfr-riprunner When I ...
1
vote
1answer
840 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 ...
1
vote
1answer
74 views

How do I Make OS X Server 5.0 Use Python 3.5?

El Capitan and OS X Server 5.0 use Python 2.7 by default. I've installed Python 3.5, but how do I make OS X Server 5.0 use it for wsgi without breaking El Capitan's dependence on Python 2.7? ...
1
vote
1answer
44 views

wsgi script's environment is isolated hosted on httpd, CentOS 7

I'm hosting a simple wsgi application on httpd over CentOS 7 using mod_wsgi and trying to remove the isolation illustrated below. The wsgi app, The following script is my wsgi application. it ...
1
vote
1answer
26 views

Running a script before packages are installed from requirements.txt

My app has some prerequisite conditions that mean that the installs from requirements won't work until a few scripts are run. I've been reading through the documentation on customizing the Python ...
1
vote
1answer
169 views

rabbitmq server does not receive messages from a python client

I am trying to publish a message to rabbitmq. this works in production environment env with the same code so I suspect this is a configuration issue. rbqueue = RabbitMQClientQueue('cn-dip-v3', host = ...
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 ...
1
vote
1answer
204 views

strange strace output of httpd process of apache running django with mod_wsgi

I have about 12 httpd processes running for an RHEL aws box that no one is hitting in the browser (shared team dev box). These processes together are consuming over 1.8 GB on the dev box, and I have ...
1
vote
1answer
168 views

apache fails to load mod_wsgi: complains of 'missing symbol'

When I run apachectl configtest after installing mod_wsgi I get the following error message: httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf: Cannot load ...
1
vote
1answer
208 views

Using collectd with Python 3

I'd like to use the Python 3 interpreter within collectd, but there's no (documented) option to set the path or the version of the interpreter, and it defaults to the Python 2 interpreter that's also ...
1
vote
1answer
393 views

How to Access Apache Virtual Host from Cell Phone?

I'm developing a mobile web application using Django. Currently I can start the Django development server like this: python ./manage.py runserver <my-ip>:8000 When I do that, I'll get a ...
1
vote
1answer
666 views

Trying to run gunicorn from supervisor gives error - error: class uri 'simple' invalid or not found

I am already running successfully 2 django projects (in same virtualenv with python 2.7) with Django + gunicorn + virtualenv + Supervisord environment. But now i am trying to run another project in ...
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 ...
1
vote
1answer
240 views

amazon EC2 x11 problems

We are trying to set up a virtual development / research cloud environment for our students. Students need to be able to log-in, launch python IDE, and plot some graphs for their homework. We are ...
1
vote
1answer
507 views

Python install issue on Mac OS X

I have been using the standard python that comes with OS X Lion (2.7.2) but I wanted to build a UCS-4 version to handle 4-byte unicode characters better. I had already installed pip and packages like ...
1
vote
1answer
537 views

how to send a corrupt netbios packet

I want to send a corrupt netbios Session Service packet to my machine, My goal it to check whether my machine restarts or not upon receiving the corrupt netbios packet (this has happened before and I ...
1
vote
1answer
483 views

centos: unable to write to whoosh indexes

got a problem here. In my development server, I ran into a problem when I try to search using django/haystack with the whoosh backend engine. The path to your Whoosh index ...
1
vote
1answer
135 views

safesquid external parser

i am running safesquid and it does support an external parser, so i wrote this simple URL rewrite code in python which also logs the initial request... #!/usr/bin/env python import sys def ...
1
vote
1answer
362 views

Is there an issue with working directory when using service to launch an init script?

I am curious, is there something I need to watch out for when spawning process as background jobs from init scripts using service? Here is the line that works at terminal, in a bash script/an init ...
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 ...
1
vote
1answer
310 views

NGINX executing Python

I am fairly new to NGINX and Python is not my field at all. I am interested in introducing SASS support in my server. I don't want to use Ruby, but I found Python version. ...
1
vote
1answer
391 views

Trac problem: AttributeError: Cannot find an implementation of the “IRequestHandler” interface named “WikiModule”

This problem already has been described mutliple times in different mailing lists, but no solution has yet been published. My original setup is as follows (but in the mean time i have a simpler one ...
1
vote
1answer
123 views

Live and test deployment of Django

We devoloping a community based site with Django. Since we want to do a rapid developement process we want to be able to do (multiple) daily updates of the live site. Before we roll out an update we ...
1
vote
1answer
206 views

How to get an authentication provider status list from IIS (for a Sharepoint site)?

I need to get the authentication provider status of a web application available in IIS through C# or Python code. Example: Is Basic Authentication available for X site?
1
vote
1answer
609 views

How do I make pip or easy_install use /opt/python2.6/include?

I have built and installed python2.6.2 in /opt according to these instructions: http://casualengineer.blogspot.com/2009/09/install-python-262-on-centos-53.html#comment-form but for some reason my pip ...
1
vote
1answer
271 views

git hook and ssh on server

I have a git repo on a server. I would like to run a update hook on this when a push is done. I am unable to get git revlist or take any information from the user because i can't enable tty. I have ...
1
vote
1answer
675 views

How to install mod_wsgi 3.1 on Ubuntu 9.10

I have a Python 3 web app so mod_wsgi < 3.1 doesn't cut it for me. However, on my Ubuntu 9.10 installation there doesn't seem to be a package for mod_wsgi 3.1. Is there an alternative repository ...
1
vote
1answer
104 views

Getting waaay too many “Spawning Local” fastcgi messages

I've got Lighttpd running 7 Python apps via fastcgi on an Ubuntu server. I turned on fastcgi debugging in the Lighttpd configuration and noticed something very weird in the logs: Normally, when you ...
0
votes
1answer
21 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
14 views

Python ssh user validation

4:15 PM (3 minutes ago) Hello, Im wondering if there is a way without using send_pexpect to validate a host. I have hundreds of IPs where i need to validate if my tacacs username is valid and if ...
0
votes
1answer
44 views

Flask with python 3.5

I'm trying to run a flask app on my aws ec2 instance. I've installed anaconda with python 3.5. In order to install mod-wsgi I run the following command: sudo yum install libapache2-mod-wsgi ...
0
votes
1answer
70 views

Windows Server 2012 R2 not printing from Task Scheduler

I have a script, written in Python, that generates a PDF document and prints it to network printer. When I execute that script through the cmd line or launch executable .cmd or .bat file, it works ...
0
votes
1answer
70 views

Unable to install Rtree 0.8.2 package on RHEL6 64-bit

UPDATE: If it also helps. I have root access. Seems like I am not the only with the problem, but a couple had this problems https://github.com/ioos/conda-recipes/pull/198 I had updated my core.py ...
0
votes
1answer
42 views

How to Use Puppet python module in manifest file

I am writing a puppet manifest file to install python and pymongo. This python module is installed on the server, link shown below https://forge.puppetlabs.com/stankevich/python Here is the ...
0
votes
1answer
44 views

Why is method that uses gevent in a mod_wsgi deployed Flask api raising error about switching threads?

I am trying to deploy a Flask api via Apache/mod_wsgi. The api uses Gevent to provide concurrency for a recursive method. However, it is throwing the following error [Mon Feb 08 12:05:37 2016] ...
0
votes
1answer
45 views

Can't access python glass server from virtualbox on localhost

I have Virtualbox container with FreeBSD installed where Aquarium with Glass server are running on port 9080, it is accessible from within the container. Container network is configured to use ...
0
votes
1answer
324 views

Configure basic python 3.5, flask, uwsgi, nginx app

Not sure where I am going wrong here, all I get is a 502 bad gateway. (server ip is 104.197.13.112) The code for all the configuration files and basic app are in a github repo. github repo nginx ...
0
votes
1answer
14 views

appending ubuntu system path so i dont have to do sys.path in python

I am having an issue with my mod_wsgi on my apache2 server in Ubuntu. Python can't find imported modules unless i append the sys.path Every time i want to run a python script that imports classes ...
0
votes
1answer
30 views

How to find total number of reserved instances under particular tag?

I am query AWS using boto ec2 in python. Firstly I find all reserved instances by get_all_reserved_instances then I am also able to find total count of each instance_type by instance_count. I am ...
0
votes
1answer
173 views

Installing letsencrypt fails when running python install scripts

I'm trying to install letsencrypt from source on a Debian 8. When running ./letsencrypt-auto --help --verbose the script stops at the following lines: ... Collecting funcsigs (from ...
0
votes
1answer
32 views

save output of a python script to a text file

how can i save output of this python script to a text file? this is a KMS server which clients connect to it and activates their windows or office. i wanted to save the log in a text file. I should ...
0
votes
1answer
25 views

How to run script with diffrent frequency within a specified time frame?

I have python script which I need to run with diffrent frequency within a specified time frame. I tried to do this through crontab but I do not know how to bite it :/ My time intervals and ...