0
votes
1answer
32 views

TracError: Unsupported version control system “svn”: cannot import name fs

I started out with a duplicate database entry error, and in trying to fix it am no longer able to resync my Trac database at all. Unable to import all the history I tried to upgrade from 0.12 to ...
-1
votes
1answer
58 views

503 errors on Apache+Mod_wsgi+Django

I'm new to Python and trying to setup Django on my VPS that is running CentoOS 6.5. My Apache version is 2.2.15. Python is running on version 2.7. I created a virtualenv under ...
-1
votes
2answers
96 views

When will Red Hat fully support & ship with python 2.7

I realize there might not be a direct answer to this question, but I am wondering if there are any communicated expectations of when this will happen or if anyone can comment on the challenges ...
0
votes
1answer
157 views

mod wsgi picks up wrong libpython2.7.so.1.0

I've compiled python 2.7.8 with: mkdir -p /usr/local/python2p7/lib ./configure --prefix=/usr/local/python2p7 --with-threads --enable-shared LDFLAGS="-Wl,-rpath /usr/local/python2p7/lib" make make ...
2
votes
3answers
747 views

CentOS (rel6) with default python 2.6, but seperate 3.3.5 installation

I have a CentOS server (rel6) that had python installed (2.6), but I needed a few features in 3.3+. I installed 3.3 into a seperate folder and made a symbolic link to execute it: I installed setup ...
3
votes
1answer
455 views

Process monitoring and service manager for Python web application [closed]

We're setting up a Python web application using the CherryPy web server on a bunch of Linux servers (it's behind an nginx load balancer sending traffic to the various servers). We're in the process of ...
0
votes
1answer
603 views

how to resolve yum replace php-common --replace-with=php55w-common error?

how to resolve yum replace php-common --replace-with=php55w-common error? on CentOS 6.5 root@server [~]# yum replace php-common --replace-with=php55w-common Loaded plugins: fastestmirror, replace, ...
0
votes
0answers
73 views

Centos Supervisord Python 'invalid literal for int() with base 10: 'process_num'

Im doing the following in supervisord: [program:inf_svr] process_name=inf_svr%(process_num)s directory=/opt/inf_api/ environment=USER=root,PYTHONPATH=/usr/local/bin/ command=python ...
0
votes
1answer
115 views

Supervisord (exit status 1; not expected) centos python

Ran into additional issue with Supervisord. Centos 6.5 supervisor python 2.6 installed with the OS python 2.7 installed in /usr/local/bin supervisord program settings [program:inf_svr] ...
2
votes
1answer
394 views

Running multiple Django projects within Apache, sys.path being over written

I have been trying to research how to do a multiple Python / Django deployment using Apache VirtualHosts. The issue I am encountering seems straight forward, ImportError: Could not import settings ...
0
votes
1answer
820 views

How to use a different version of python duing NPM install?

Salam (means Hello) :) I have terminal access to a VPS running centos 5.9 and default python 2.4.3 installed. I also installed python 2.7.3 via these commands: (I used make altinstall instead of make ...
-1
votes
1answer
1k views

Permission denied error while creating files from a python script using mod_wsgi on apache

I'm running a python script under mod_wsgi on apache. The script attempts to create some files under a directory. The path of that directory is defined by this variable named tmpdir in the script. ...
0
votes
1answer
2k 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 ...
0
votes
1answer
340 views

How do i install OpenEMM on CentOS 5.9

Hi i am trying to install OpenMM on my CentOS 5.9 remotely via ssh (PuTTY) based on the step mentioned here (Yes i know the guide is for CentOS 6.x). However when i try to do: yum install ...
6
votes
2answers
116 views

During yum update, Python installation is updated. Do I need to restart running programs?

As the title says. If I run yum update(It's a CentOS box) and there happens to be a Python update. What happens if other users have running Python programs. Do I need to alert them to restart the ...
2
votes
4answers
488 views

How can i create in incremental backups of mysql databases

I have linux centos 6.4 server with mysql5.6 I have the cron job for making hourly mysql database backups like this Its in python os.popen("mysqldump -u %s --password=%s -h %s -e --opt ...
0
votes
1answer
23 views

Is it possible to install and run a separate version of python from a directory in CentOS?

I'm working a linux machine running CentOS. I don't have full sudo powers and theres multiple versions of python already installed on the machine and the whole thing is a bit of a mess, stuff like ...
0
votes
1answer
51 views

Issue configuring Apache virtualHost with modwsgi

Hello i have a problem configuring apache with Virtualhosts and ModWSGI, see i want to run a Python Script when i access to the domain, but it keeps showing me the content of my folder instead ...
-1
votes
2answers
56 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 ...
0
votes
1answer
80 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
256 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
3answers
154 views

How do I find installed packages which depend on Python on a CentOS machine?

Is there a command to find out such information on a CentOS machine?
0
votes
1answer
845 views

gunicorn working vs uwsgi timeout

I've setup my Python / Django app on a vmware machine with CentOS, uwsgi and gunicorn along with all my apps dependencies. After running my app with gunicorn with the following command: gunicorn ...
1
vote
2answers
3k views

yum error No module named CElementTree

I've the following problem with yum: $ yum There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree Please ...
1
vote
3answers
1k views

/usr/bin/python (Python 2.4) was deleted on CentOS 5. I compiled from source but yum is still broken. How can I get everything back to the way it was?

I saw a lot of other questions like this but none of them answered the exact part I am having trouble with (actually installing the Python RPM). Someone on my system deleted /usr/bin/python and ...
-3
votes
1answer
101 views

How can i point my home server(dynamic ip) to my custom domain [closed]

I have the online linux centos server. IN my home i ahve the dynamic ip address. Is there any way that i can setup something in bash or python so that everytime i use home.myserver.com, that points ...
0
votes
1answer
306 views

Broken Python installation on CentOS 5.8

I already searched for solution to my problem via Google and serverfault's search facility, but haven't found anything related specifically to my case. Here's the problem: I needed python 2.7.3 on ...
-1
votes
1answer
683 views

YUM error. Is this a cert error

Nov 13 13:38:57 host abrt: detected unhandled Python exception in '/usr/bin/yum' Nov 13 13:38:57 host abrtd: New client connected Nov 13 13:38:57 host abrt-server[3508]: Saved Python crash dump of pid ...
0
votes
1answer
839 views

500 Internal Server Error in django static files on Apache

Recently I deployed a Django powered application but I have some problem with static files. Sometimes (and only sometimes), I get 500 Internal Server Error in getting static files such as ...
-4
votes
3answers
3k views

Reinstalling python on CentOS to be able to use yum

Yesterday I accidentally removed the python package using "yum remove" on a CentOS server. After then I realized yum was dependant on python and I could no longer use yum. I think I need to reinstall ...
0
votes
1answer
701 views

Nginx reverse proxy with separate aliases

Interesting question I have this python code: import sys, bottle, gevent from bottle import * from gevent import * from gevent.wsgi import WSGIServer @route("/") def index(): yield "/" ...
0
votes
2answers
2k views

CentOS5 python wrong ELF class: ELFCLASS32

Has anybody ever encountered this wrong ELF class error? The failure is provided in more detail below: [root@nocloud ~]# system-config-users Traceback (most recent call last): File ...
0
votes
1answer
366 views

Mapnik error occurred when using command import mapnik

I am using centos and installed mapnik on my server. I am following this tutorial http://krisarnold.com/2010/07/14/installing-mapnik-on-centos-5/ But when I test the installation by "import mapnik", ...
0
votes
1answer
991 views

Python 2.7.3 Centos 5.8 zlib error

I'm trying to install Python 2.7.3 + setuptools on my Centos 5.8. First i download sources, unzip then ./configure && make && make install. sh setuptools-0.6c11-py2.7.egg i get ...
1
vote
1answer
536 views

Nginx,Uwsgi and Django App Not Found

I have configured Nginx with uWSGI and Django on CentOS. Django Directory(contains all my django app): /home Django Project Directory: /home/hdblog /home/hdapp.py contains below: import os, sys ...
0
votes
1answer
266 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 ...
0
votes
1answer
340 views

Python update, broke yum and python

Ok, I've really ballsed up a server and wondering if the easiest way from this point is to reinstall the OS and restore the files. (We have file backups, but not bootable server backups) I stupidly ...
2
votes
1answer
465 views

Python upgrade to 2.7.2 from 2.4.x leads to yum module missing

yum was working fine till I upgraded Python for the sake of django in my VPS. It throws exactly this error: There was a problem importing one of the Python modules required to run yum. The ...
-1
votes
1answer
208 views

After upgrading Python from 2.4 to 2.7 server get down

I installed Python 2.7 on CentOS in a different location, but I didn't change the PYTHON_PATH to newly installed Python. Since then, I am not able to access the system via cPanel or SSH (to revert ...
1
vote
1answer
750 views

How to fix “yum update” issue on CentOS?

I get the following error when I do sudo yum update. The only thing I did before getting the error is install Python 2.7 in different directory than Python 2.4. The default Python is still 2.4 on the ...
0
votes
1answer
277 views

Accidentally installed Python 2.7 on CentOS

I need newer Python so I downloaded .tar.gz from the site, unpacked, run ./configure; make; make altinstall. I had then separate Python 2.7 and default 2.5 and all worked fine. But recently I needed ...
0
votes
1answer
319 views

Running Django on CentOS?

I have a problem running Django with mod_wsgi and Apache on CentOS. Django runs on Python 2.5 or above but CentOS comes with Python 2.4. I can't just upgrade the default Python 2.4 because it breaks ...
0
votes
1answer
466 views

python-cups for CentOS5

I'm try to activate airprint support on CentOS5. I found this guide, but the airprint-generate python script needs cups support. It seems this script needs the python-cups lib. How can I install this ...
0
votes
1answer
255 views

centos,django, mod_wsgi & different python installations

I am getting this error File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module TemplateSyntaxError: Caught ImportError while rendering: No module named ...
2
votes
5answers
5k views

Installing Python 2.7 broke “yum”

I installed Python 2.7 and pointed /usr/bin/python to /usr/local/bin/python2.7 After installing Python 2.7, I get the following error message every time I use yum > sudo yum install setuptools ...
10
votes
1answer
3k views

How to undo “yum remove python”

I have a Centos 6 based VPS with an ssh connection. Recently wanting to install python 2.7.2, I bravely ran: yum remove python wich apparently removed yum itself being written or depends on python. ...
0
votes
1answer
630 views

Segmentation Fault (11) with modwsgi on CentOS 5.7 when running pyramid app

I'm getting Segmentation fault error when trying to access the "Hello World" pyramid app. This error only occurs when running against CentOS 5.7 setup, but no problem whatsoever when tested against ...
3
votes
2answers
322 views

General Protection Fault error on Centos 6 while executing a python script

I have a python(fabric) script running on a centos 6 box that parses configuration files and daemonizes MRTG process and dumps rrd files a folder in a shared file system. All goes well but midway to ...
0
votes
2answers
4k views

python new install showing error while loading shared libraries

i installed python2.6 before in /ust/local/bin but now i removed it and installed a new python2.6.4 in /opt/python2.6 i installed from the article but on mid way only where they say to check ...
0
votes
1answer
2k views

python setuptools installation in centos

i have to install mysqldb module of python in my centos server. i have 2 versions of python 1. 2.4.3 the default one 2. 2.6 which i installed i want to install mysqldb module for 2.6 version of ...