There are two ways (at least that come to mind) to install Django/Python
projects:
Inside a virtual environment isolated from the rest of the system or system
wide where they interact with Python and the libraries installed by the
OS. The virtual environment is the preferred method on installing Mayan
because of the number of libraries it requires, and installing all those
libraries system-wide could impact other Python software. The fabfile is
designed to install Mayan EDMS in an isolated virtualenv impacting the
system as little as possible. MySQL-python, mysql-python and MySQLdb are
the same library. MySQLdb is the Python name of the library, MySQL-Python is
the name the OS (Ubuntu) gives the library when installing it from it
repository in a system wide fashion (not recommended because it would
install the MySQL Python libraries even for programs that will not need
it). So the best course of action is to update the fabfile to upgrade the
distribute library to the latest version before trying to install the
requirements.
Edit the file /tmp/fabfile/platforms/linux.py
and add the line:
sudo('source bin/activate; pip install --upgrade distribute')
between the 'sudo' lines here:
with cd(env.virtualenv_path):
sudo('git clone git://github.com/rosarior/mayan.git
%(repository_name)s' % env)
sudo('source bin/activate; pip install -r
%(repository_name)s/requirements/production.txt' % env)
so that it looks like this:
with cd(env.virtualenv_path):
sudo('git clone git://github.com/rosarior/mayan.git
%(repository_name)s' % env)
sudo('source bin/activate; pip install --upgrade distribute')
sudo('source bin/activate; pip install -r
%(repository_name)s/requirements/production.txt' % env)
the added line should be line #24
This line activates the virtual environment (so that any install command
afects only this isolated environment and not the entire system) and forces
an upgrade of the distribute library.
Give this a try if you can and post the results, if this works it will go
straight into the repository.
--Roberto
On Monday, December 31, 2012 2:34:40 PM UTC-4, Lau Llobet wrote:
>
> What i did to solve it :
>
>
> comment line 21 and 22 in /tmp/fabfile/platforms/debian.py
>
> install MySQL-python manually
>
> deverything runs fine till this error appeares:
>
> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module:
> No module named MySQLdb
>
> so this attempt seems to fail because mysql-python must be installed by
> the fabfile ... :(
>
> Hope somone can guide me soon !
>
> L.
>
--