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

learn more… | top users | synonyms

0
votes
0answers
15 views

Recommended way of installing python packages on Arch [migrated]

What's the recommended way of installing python packages on Arch? Searching for them on the AUR and installing them from there (or create a PKGBUILD file to make a package yourself) or using pip? I ...
-1
votes
0answers
20 views

Canonical way to run Gunicorn with Python 3 [closed]

What is the best way to keep Gunicorn running with Python3? Supervisor seems like the simplest solution, but it does not work with Python3. The Gunicorn docs suggest using runit but I have seen some ...
-1
votes
2answers
32 views

Which python to use on Enterprise Linux? [closed]

I'm currently learning python and I recently bought a book that goes through Python 3. Where I work we use Red Hat Enterprise Linux, and I've noticed that on RHEL 5 and RHEL 6 the versions of python ...
-1
votes
0answers
8 views

postgres=# CREATE USER syntax

Assuming I input this: postgres=# CREATE USER djangoapp WITH PASSWORD 'password'; IS the password now 'password' or password? Because I'm having trouble syncing my database. It tells me ...
-2
votes
1answer
17 views

Setting up Django project on server to be front-facing [closed]

I'm setting up my first Django project on a server I'm following this guide, and along the way, it tells you to python manage.py runserver, and then view the a welcome page at the loopback ip ...
-1
votes
2answers
28 views

Watching python logs real time while running on webhosting? [closed]

I have a python script that is running on my site \ webhosting. I've activated it by going to the url -> script.py. Is there a way to watch the logs the script outputs the way you'd see in the ...
-2
votes
0answers
26 views

How to run a WebPy server on port 8080 using DDNS of dlink router and to access this site from internet? [migrated]

I have two major issue with setting up a web server using my dlink DIR-600L router. Issue 1: I run a WebPy server on port 8080. But the DDNS service providers (like dlinkddns.com or dyndns.org) only ...
2
votes
0answers
14 views

Unable to serve Django static files

I am trying to serve Django admin static files but nothing seems to be working below is my nginx configuration : upstream django { server 127.0.0.1:8000; } server { listen 4321; ...
0
votes
1answer
43 views

Redirect all DNS queries to IP

I have a server with Ubuntu 12.04 Operating System on it.I want to make a DNS Server that accept all request including IPs,and redirect them to an specified IP......there users can login and after ...
0
votes
0answers
17 views

Error encountered when installing Django on DreamHost VPS subdomain running Passenger [closed]

I followed the DreamHost wiki for Django (link) to the letter (as far as I can tell) - shell dump incoming (the relevant parts anyway): /path/to/my/site/directory# wget ...
-2
votes
0answers
18 views

Chat rooms on Tornado [closed]

I'm newbie in tornado and WebSockets. I've written a chat on Tornado but I want to make a feature, to make rooms without using DB, I tried to use cookies to separate Listeners but i always get errors, ...
0
votes
0answers
27 views

Networking with Python: No response from IP Phone [migrated]

I'm an Automation Developer and lately I've taken it upon myself to control an IP Phone on my desk (Cisco 7940). I have a third party application that can control the IP phone with SCCP (Skinny) ...
0
votes
0answers
12 views

Compiling mod_wsgi on MacOSX with EPD Python

I'm trying to compile mod_wsgi 3.4 on MacOSX 10.7.4 with the Enthought EPD Python distribution, which I require to do some mathematical modelling from the web server. I run configure using: ...
1
vote
1answer
30 views

Using pv with a Python script: monitoring progress when uploading to AWS Glacier using the boto glacier utility

I am looking to use boto's glacier command line tool to upload data to AWS Glacier. I'd like to monitor the progress of my upload. Normally I use pv to monitor progress. I've perused the code of the ...
0
votes
1answer
28 views

python script crash prevent/reason check

I run a python script several days ago using 'python a.py &' on my Ubuntu 12.04. I assume it's running all the time, but just now I found it crashed 2 days ago. Is there any log information on ...
3
votes
1answer
29 views

How to disable Xvfb using TCP ports when using pyvirtualdisplay (Python)?

Trying to use pyvirtualdisplay for Python to start some applications with a virtual Xvfb X terminal. However, we've seen port clashes and would like to disable Xvfb from using TCP ports. I have ...
0
votes
0answers
22 views

Infoblox WAPI: how to search for an IP [migrated]

Our network team uses InfoBlox to store information about IP ranges (Location, Country, etc.) There is an API available but Infoblox's documentation and examples are not very practical. I would like ...
0
votes
0answers
13 views

Permission denied when uwsgi app tries to write to a file [duplicate]

I have a Flask application that I want to deploy using Nginx + uWSGI. In my application, I have a log handler that creates a log file at /srv/www/mysite/logs/mysite.log. When I start uWSGI, however, I ...
1
vote
1answer
49 views

How should I use a proxy server to access the internet - with custom Python plugins for request processing? [closed]

We're trying to understand how to set up a proxy server for our Web application. We need several processes to access the Internet through a proxy server in the internal network. Ideally, we could ...
0
votes
0answers
24 views

Using fabric api with Django

Can someone suggest how to use fabfile functions in Django. Example: I have a fabfile with function hostname as follows: def hostname(): run(hostname) I am used to run this with fab command ...
0
votes
0answers
18 views

Reading json data line by line [closed]

i have some json data obtained from the rest api somehing in the format of ...
3
votes
1answer
57 views

Use uWSGI as a proxy server

Question: Is there a way to use uWSGI as a proxy server? More about the system: 6 load-balanced nginix/uWSGI servers Python Requirements: Set up a few proxy servers that can: Accept requests ...
-1
votes
0answers
24 views

Python IDLE not opening in Windows 8 [closed]

I've recently bought a new laptop with Windows 8. I installed Python Enthought (V2.7.3) the same way I did in my Windows 7 one. But, somehow it doesn't start up here.
-1
votes
1answer
31 views

Is there a way to verify user permissions with win32security [closed]

I know about win32security.LogonUser. What I want to do is check credentials that were entered to know whether or not they match a user on the local windows machine, and password, so that I can grant ...
0
votes
1answer
29 views

cgi and python script files are downloading from server instead of executing there

I kept some cgi,python files under /var/www/cgi-bin and trying to execute I followed all the steps in: http://webpython.codepoint.net/cgi_tutorial Still i am not able to execute. when i enter ...
1
vote
1answer
52 views

How do I install Python 2.7.4 OR 3.3.1 on an Amazon AMI?

I have an EC2 instance running a standard AMI, and have exhausted the limit of my abilities with yum and similar avenues to update python to 2.7.4 or 3.3.1 for a library I need to use. Unfortunately, ...
0
votes
1answer
21 views

Can't get monit to start program

I'm trying to get monit to monitor a program and start it if it goes down. Here's my basic config: check process maitre_d_8000 with pidfile /home/tango/env/maitre_d/8000/pid.pid start program = ...
0
votes
1answer
34 views

mod_wsgi : share daemon processes between vhosts

I have many sites each using the same 5 Django applications (with local settings), hosted on Apache. At present each site app has its own config as follows: WSGIDaemonProcess api_example threads=15 ...
0
votes
0answers
21 views

Creating binary distribution of lxml

I need to install a current release of lxml into a virtualenv on a VPS. This VPS however has some memory quota that doesn't allow me to build the package there. I tried therefore to build a ...
0
votes
1answer
115 views

centos 6.4 - django deploy with apache and mod_wsgi

I'm trying to deploy on a VM with centos 6.4 a basic django project with apache and mod_wsgi. This is the project tree: myproj/ ├── manage.py ├── myapp │   ├── __init__.py │   ├── models.py │   ├── ...
0
votes
0answers
21 views

Convert python virtualenv to pypy

So I've seen great things about PyPy. It seems to run faster than light and I'd like to test it out on our server. I've been building my virtualenv with the default Ubuntu cPython since we started ...
0
votes
3answers
219 views

Python-devel for python 2.7 on CentOS 6.4

Ok, i want to run django web-application on production VPS. Operation system of the VPS is CentOS. Application code written on Python 2.7. I have already installed Python 2.7 with configured virtual ...
0
votes
0answers
45 views

is there a way to get PSEXEC to output the results of python

The situation: I am running psexec.exe from one windows machine to another and would like to run a python script on the remote machine and look at the output of the script without having to pipe it ...
0
votes
1answer
19 views

Python app with wsgi apache2 returns *.py file content

I have a small Flask app that I managed to get running using apache2 and mod-wsgi. I set it up to run on a subdomain like test.example.com The app is in /var/www/flasktest . Now if I go to ...
0
votes
1answer
35 views

How to run python script which required root privilage for execution in apache with mod_python at openbsd

I am trying to run python script in Apache 2.x with mod_python. I edited httpd.conf with publisher LoadModule python_module /usr/local/apache2/modules/mod_python.so <Directory ...
1
vote
1answer
70 views

how to understand what Apache is busy with?

I have Apache on a Linux server, and a Python script inside it (Trac, to be more specific). With a minimum traffic it consumes 99% of CPU and load average is above 3.00. Is it possible to understand ...
1
vote
2answers
98 views

How to connect remote windows machine from linux terminal?

I want to execute windows command on remote windows machine from linux terminal.
0
votes
1answer
73 views

OpenStack over NGINX+uWSGI

Following this not so popular question: OpenStack & NGINX+uWSGI I've start to build my dashboard node using well... NGINX and uWSGI of course, but I'm now facing a path problem. Indeed, uWSGI is ...
0
votes
1answer
34 views

Getting future feature absolute_import is not defined error while installing lxml on centos

I am getting this error while installing libxml I tried this python27 setup.py build_ext -i -I /usr/include/libxml2 --with-xslt-config=/opt/xslt/bin/xslt-config ...
1
vote
0answers
54 views

Executing a python script from PHP to open a socket

I have a python script chatserver.py that includes:- #!/usr/bin/python from twisted.internet.protocol import Protocol, Factory from twisted.internet import reactor <SNIP> ...
1
vote
1answer
68 views

Linux RDesktop Lockups

I have a script I wrote to create RDP connections from Linux workstations to Windows servers. Everything is great when used on a machine plugged into an Ethernet jack but when used on a wireless ...
1
vote
2answers
109 views

Can I run two server applications on port 80?

I am currently running nginx on port 80, with the configured server names as example.com and www.example.com. I also have a Flask application that I would like to have accessible through port 80, but ...
3
votes
3answers
181 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
42 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 ...
0
votes
0answers
17 views

Error when building spidermonkey in Debian 5

I follow the instructions here: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation cd js/src autoconf-2.13 ./configure make &> build.log I see the next error in the ...
0
votes
0answers
18 views

uWSGI repeated execution of Flask app.route() function

I'm currently running uWSGI with a Flask web app, via the command line. The command used is: uwsgi --http :80 --file /scripts/flaskWebApp/app.py --callable app --processes 4 --threads 2 -b 25000 -M ...
-1
votes
1answer
37 views

Installing LAMP on centOS using PERL and Python [closed]

I would appreciate being pointed to a good reference for installing Mysql, Perl and Python (bypassing PHP) for centOS 6.xx, I just cant seem to find one. I think there is also a DBI driver that I'm ...
0
votes
1answer
31 views

Options for Executing Scheduled Scripts on a PHP Server

I have a server that I've setup running PHP. This serves JSON files and is running fine. I also have several scripts that reads data from an outside source, connects to my MySQL Database Server, and ...
0
votes
1answer
120 views

Upgrading from Django 1.3 (Python 2.6) to Django 1.5 + Python 2.7 CentOS

We currently have a server running python2.6 + apache and mod_wsgi that runs with Django 1.3. I plan to use the following guide to install python 2.7 ...
0
votes
1answer
61 views

Setup Pootle on Uberspace Webspace

I tried to setup Pootle on my uberspace server, but after installing all the required apps/software i get the following error message: (pootle)[tundem@phoenix ~]$ pootle start Loading custom settings ...

1 2 3 4 5 16