Questions tagged [python]

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

1743 questions
0
votes
2 answers

django import settings problem

This seems to be a common problem for many others, but none of the other fixes have helped me. Here's my apache2/sites-available file: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv…
chriscauley
  • 105
  • 4
0
votes
2 answers

Cron job: [Errno 2] No such file or directory

On a Mediatemple gridserver, I'm trying to run this by a cron set in the control panel: usr/bin/python /home/xxxxx/html/sitemap_gen.py --config=/home/xxxxx/html/config.xml But I get the error "python: can't open file…
markratledge
  • 519
  • 5
  • 13
  • 26
0
votes
1 answer

Python can't find namedtuple on Linode Ubuntu 9.10

I have a Linode running Ubuntu 9.10 with a Python version of 2.6.4rc2 When I try to import namedtuple I get an ImportError. What could be going wrong? This is a part of the standard library.
Ben
  • 101
  • 2
0
votes
1 answer

"Permission denied" when doing a `git pull` in an (Apache -> Django -> subprocess) stack

I have a Django app on an Apache server that uses subprocess.Popen to do a git pull on a repo stored on that server. It manages to fetch the new commit for the server, but it can't do a checkout: error: git checkout-index: unable to create file…
Ram Rachum
  • 5,231
  • 7
  • 34
  • 46
0
votes
3 answers

Django not running on CentOS but simple wsgi example works

my django.wsgi import os import sys sys.path.append('/var/www/django') os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings' os.environ['PYTHON_EGG_CACHE'] = '/var/www/django/myapp/.python-eggs' import django.core.handlers.wsgi application =…
John
0
votes
3 answers

Python script not running on ready made django vmware image

I am using turnkey image for python django http://www.turnkeylinux.org/django When i open the page by ip adress the home page open ok Now i tried to made the simple python file inside the wwwroot to check but apache is not executing it. it asks me…
John
0
votes
2 answers

Is Python django ready Virtual Machine freely available

I was looking at this link http://www.vmware.com/appliances/directory/289 Is it free to download or its paid , i cant find the link
John
0
votes
1 answer

How to test python on Centos

I have followed this tutorial and successfully did everything. http://binarysushi.com/blog/2009/aug/19/CentOS-5-3-python-2-5-virtualevn-mod-wsgi-and-mod-rpaf/ how can i check that i everything is working. I mean which page should i go to test
John
0
votes
2 answers

CentOS, YUM Errors?

I am using a Media Temple DV server with CentOS upon trying to install ImageMagick via yum, I get the following error: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: …
mike
  • 117
  • 1
  • 4
0
votes
1 answer

Redirect output of Python program to /dev/null

I have a Python executable, written and compiled by somebody else, that I simply need to run once halfway down my own bash script. The program uses a text-based UI, therefore waits for input before proceeding, but the key operations it performs when…
tjbp
  • 193
  • 3
  • 6
0
votes
1 answer

permission errors with python/django

Error can be seen here: http://djaffry.selfip.com:8080/ If i go to the folder /srv/twingle/search and do ls -l I get -rwxrwxrwx 1 root root 65142784 May 26 20:28 words.db I gave it 777 access (absolutely unsafe, I know, but I thought it would…
tipu
  • 149
  • 8
0
votes
2 answers

what do I need to run python on my webserver?

what do I need to run python on my webserver ? Should I enable some Apache module ? Thanks
aneuryzm
  • 1,714
  • 5
  • 26
  • 41
0
votes
2 answers

Running Python scripts in a browser

I want to start learning Python - and I'm having trouble getting scripts to load up in a browser (using Wamp). So far I've tried the following: 1: add the following lines to httpd.conf: AddHandler cgi-script .py Options ExecCGI I navigate to…
sunwukung
  • 169
  • 2
  • 11
0
votes
2 answers

Install Python 2.6 on Debian Linux

I want to install Python 2.6, but as it's still experimental for Debian Linux, I'm wondering what my best course of action is. Is the right idea to install it into /usr/local for my system and then update the python sym link in /usr/bin to point to…
Bialecki
  • 157
  • 1
  • 9
0
votes
2 answers

Python 3.* compilled for HP-UX ia64 (or depot)

Where can get depot (or just precompilled package) with Python 3.* or at least 2.6.* for ia64-hp-hpux11* ? Packages for hppa64-hp-hpux11* (PA-RISC) can be found at ActiveState but not for Itanium. I can't compile it by myself because of different…
Alex Bolotov
  • 877
  • 3
  • 10
  • 18
1 2 3
99
100