This is as far as I have gotten with CentOS 6.2 64bit

sudo yum install python-setuptools git libpng-devel libjpeg-devel gcc
sudo easy_install virtualenv
cd /usr/share
sudo virtualenv mayan --no-site-packages
cd mayan
git clone git://github.com/rosarior/mayan.git
cd mayan
source ../bin/activate
pip install -r requirements/production.txt 

when the pip install is about to finish, this error comes up:

*  Running setup.py install for distribute*
*    Before install bootstrap.*
*    Scanning installed packages*
*    Setuptools installation detected at 
/usr/share/mayan/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg*
*    Egg installation*
*    Patching...*
*    Renaming 
/usr/share/mayan/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg 
into 
/usr/share/mayan/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg.OLD.1347180808.9
*
*    Patched done.*
*    Relaunching...*
*    Traceback (most recent call last):*
*      File "<string>", line 1, in <module>*
*    NameError: name 'install' is not defined*
*    Complete output from command /usr/share/mayan/bin/python -c "import 
setuptools;__file__='/usr/share/mayan/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n',
 
'\n'), __file__, 'exec'))" install --record 
/tmp/pip-Z2FhVt-record/install-record.txt 
--single-version-externally-managed --install-headers 
/usr/share/mayan/include/site/python2.6:*
*    Before install bootstrap.*
*
*
*Scanning installed packages*
*
*
*Setuptools installation detected at 
/usr/share/mayan/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg*
*
*
*Egg installation*
*
*
*Patching...*
*
*
*Renaming 
/usr/share/mayan/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg 
into 
/usr/share/mayan/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg.OLD.1347180808.9
*
*
*
*Patched done.*
*
*
*Relaunching...*
*
*
*Traceback (most recent call last):*
*
*
*  File "<string>", line 1, in <module>*
*
*
*NameError: name 'install' is not defined*
*
*
*----------------------------------------*
*Command /usr/share/mayan/bin/python -c "import 
setuptools;__file__='/usr/share/mayan/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n',
 
'\n'), __file__, 'exec'))" install --record 
/tmp/pip-Z2FhVt-record/install-record.txt 
--single-version-externally-managed --install-headers 
/usr/share/mayan/include/site/python2.6 failed with error code 1 in 
/usr/share/mayan/build/distribute*
*Storing complete log in /root/.pip/pip.log*

For some reason distribute is being installed and the installation of *
distribute* necessitates patching setuptool which in turn messes up the 
whole install procedure.  I am not a CentOS user to I wouldn't know if this 
is an OS issue.

PS: I wouldn't recommend Mayan in /var/www/html, that directory is meant 
for HTML content and handled by another Apache module which could be 
conflicting with mod_wsgi.


On Saturday, September 8, 2012 2:15:33 AM UTC-4, mayan_firsttime wrote:
>
> Installing it on in virtualenv using python 2.7.3 in mod_wsgi on apache it 
> fails to import psutil.please help
> http://dpaste.com/798077/
>

-- 



Reply via email to