2010-04-15 2 views
5

Ho seguito questi instructions per configurare un server di produzione Django con postgres, apache, nginx e memcache. Il mio problema è che non posso ottenere egenix-mx-base da installare e senza questo non riesco a far funzionare psycopg2 e quindi nessun accesso al database :(.Impossibile installare egenix-mx-base sulla produzione Django VPS

Sto provando questo su un VPS che esegue un'installazione pulita di Ubuntu Hardy (8.04) e hanno seguito tutte le istruzioni sul sito ad un T.

il messaggio di errore è la seguente:

$ easy_install egenix-mx-base 
Searching for egenix-mx-base 
Reading http://pypi.python.org/simple/egenix-mx-base/ 
Reading http://www.egenix.com/products/python/mxBase/ 
Reading http://www.lemburg.com/python/mxExtensions.html 
Reading http://www.egenix.com/ 
Best match: egenix-mx-base 3.1.3 
Downloading http://downloads.egenix.com/python/egenix-mx-base-3.1.3.tar.gz 
Processing egenix-mx-base-3.1.3.tar.gz 
Running egenix-mx-base-3.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-iF7qzl/egenix-mx-base-3.1.3/egg-dist-tmp-laxvcS 
Warning: Can't read registry to find the necessary compiler setting 
Make sure that Python modules _winreg, win32api or win32con are installed. 
In file included from mx/TextTools/mxTextTools/mxte.c:42: 
mx/TextTools/mxTextTools/mxte_impl.h: In function ‘mxTextTools_TaggingEngine’: 
mx/TextTools/mxTextTools/mxte_impl.h:345: warning: pointer targets in initialization differ in signedness 
mx/TextTools/mxTextTools/mxte_impl.h:364: warning: pointer targets in initialization differ in signedness 
mx/URL/mxURL/mxURL.c: In function ‘mxURL_SetFromString’: 
mx/URL/mxURL/mxURL.c:676: warning: pointer targets in initialization differ in signedness 
mx/UID/mxUID/mxUID.c: In function ‘mxUID_Verify’: 
mx/UID/mxUID/mxUID.c:333: warning: pointer targets in passing argument 1 of ‘sscanf’ differ in signedness 
mx/UID/mxUID/mxUID.c: In function ‘mxUID_New’: 
mx/UID/mxUID/mxUID.c:462: warning: pointer targets in passing argument 1 of ‘mxUID_CRC16’ differ in signedness 
error: Setup script exited with error: build/bdist.linux-x86_64-py2.5_ucs4/dumb/egenix_mx_base-3.1.3-py2.5.egg-info: Is a directory 

Grazie a tutti coloro che si prende il tempo per cercare di aiutarmi

risposta

3

. Installarlo manualmente:

cd /usr/src 
wget http://downloads.egenix.com/python/egenix-mx-base-3.1.3.tar.gz 
tar -xzvf egenix-mx-base-3.1.3.tar.gz 
cd egenix-mx-base-3.1.3 
python setup.py install 
0

Il passaggio a Python2.7 virtualenv in Python2.6 ha risolto il problema.