transifex / transifex-old-core

Translation workflow & crowdsourcing for agile teams. Older, open-source codebase of Transifex.com
https://www.transifex.com/
GNU General Public License v2.0
5 stars 5 forks source link

Install from sources instructions #268

Closed brauliobo closed 11 years ago

brauliobo commented 11 years ago

The instructions at https://github.com/transifex/transifex/blob/devel/docs/plaintext/server/install.txt are completely outdated.

I've used these one for 1.2 install

sudo apt-get install python-pip python-imaging

pip install celery chardet django==1.3.1 django-addons\>=0.6.6 django-ajax-selects==1.1.4 django-authority django-celery django-kombu django-picklefield django-piston==0.2.3 django-social-auth django-sorting\>=0.1 django-tagging-autocomplete==0.3.1 django-threadedcomments\>=0.9 django-userena==1.0.1 hiredis\>=0.1.0 httplib2 markdown PIL\>=1.1.7 polib==0.6.3 pygooglechart pysolr redis\>=2.4.10 requests South==0.7.3 BeautifulSoup==3.2.0 django-staticfiles==1.2.1 python-magic

easy_install -f http://transifex.org/files/deps/ django-piston django-threadedcomments 
pip install http://trac.transifex.org/files/deps/contact_form-0.3.tar.gz
pip install http://trac.transifex.org/files/deps/userprofile-0.7-r422-correct-validation.tar.gz

easy_install -f http://effbot.org/downloads/ Imaging

pip install -e 'git+git://github.com/mpessas/django-bulk.git@master#egg=django-bulk'
pip install -e 'git+git://github.com/mpessas/python-Levenshtein.git@master#egg=Levenshtein'
pip install -e 'git+git://github.com/mpessas/django-tagging.git@master#egg=django-tagging'
pip install -e 'git+git://github.com/jkal/django-notification.git@master#egg=django-notification'
pip install -e 'git+git://github.com/jkal/django-pagination.git@master#egg=django-pagination'
pip install -e 'git+git://github.com/toastdriven/django-haystack.git@v1.2.7#egg=django-haystack'
pip install -e 'git+git://github.com/jezdez/django_compressor.git@ee16af610d677a0a9b63602da6558f601f66287c#egg=django_compressor'
pip install -e 'git+git://github.com/alex/django-filter.git@0.5.4#egg=django-filter'

pip install psycopg2 

./manage.py syncdb
./manage.py migrate
./manage.py txlanguages
./manage.py txcreatenoticetypes
./manage.py collectstatic
./manage.py runserver 0.0.0.0:9000
brauliobo commented 11 years ago

Still, I got an error: Caught NoReverseMatch while rendering: Reverse for 'notification_notices' with arguments '()' and keyword arguments '{}' not found.

Any guess on the dependency problem? See http://bhakta.casadomato.org:9000/accounts/transifex/

officebluesource commented 11 years ago

hi, try this:

sudo apt-get install python python-setuptools python-imaging python-dev gettext intltool python-django python-pip git unzip zip

easy_install -U setuptools

easy_install http://trac.transifex.org/files/deps/contact_form-0.3.tar.gz

easy_install http://trac.transifex.org/files/deps/userprofile-0.7-r422-correct-validation.tar.gz

easy_install celery chardet contact_form>=0.3 Django==1.3.1 django-addons>=0.6.6 django-ajax-selects==1.1.4 django-authority django-celery django-kombu django-picklefield django-piston==0.2.3 django-social-auth django-sorting>=0.1 django-tagging-autocomplete==0.3.1 django-threadedcomments>=0.9 django-userena hiredis>=0.1.0 httplib2 markdown PIL>=1.1.7 polib==0.6.3 pygooglechart pysolr redis>=2.4.10 requests South==0.7.3 userprofile BeautifulSoup==3.2.0 django-staticfiles==1.2.1

pip install https://pypi.python.org/packages/source/d/django-filter/django-filter-0.5.1.tar.gz#md5=f28c24251ba108940ddc5b77a4ed829d // Important: Use only Version 0.5.1 Django-Filter. Any newer Version won't work with transifex (error: no module named six)

easy_install https://github.com/mpessas/django-bulk/tarball/master#egg=django-bulk easy_install https://github.com/mpessas/python-Levenshtein/tarball/master#egg=Levenshtein easy_install https://github.com/mpessas/django-tagging/tarball/master#egg=django-tagging easy_install https://github.com/jkal/django-notification/tarball/master#egg=django-notification easy_install https://github.com/jkal/django-pagination/tarball/master#egg=django-pagination

pip install -e git+git://github.com/toastdriven/django-haystack.git@3289ab8bb410321a94608a13e2e527ddbd8f1a7e#egg=django-haystack pip install -e git+git://github.com/jezdez/django_compressor.git@ee16af610d677a0a9b63602da6558f601f66287c#egg=django_compressor

git clone https://github.com/transifex/transifex.git

cd transifex/transifex/

nano settings/40-apps.conf and replace /var/lib/transifex with ../../lib/transifex in -> SCRATCH_DIR = os.path.join('../../lib/transifex', 'scratchdir')

python manage.py txcreatedirs # Create necessary directories python manage.py syncdb # Setup DB tables, create superuser python manage.py migrate # Setup more DB tables python manage.py txlanguages # Create a standard set of languages python manage.py txcreatenoticetypes # Create a standard set of notice types

python manage.py loaddata txcommon/fixtures/sample_*.json

python manage.py createsuperuser

brauliobo commented 11 years ago

got this problem http://stackoverflow.com/questions/5735237/sync-django-piston-models-when-using-egg-module

brauliobo commented 11 years ago

still got the userena problem, you can check the server log at http://bhakta.casadomato.org:9000/

brauliobo commented 11 years ago

Here comes my complete setup:

sudo apt-get install python python-setuptools python-imaging python-dev gettext intltool python-django python-pip git unzip zip

easy_install -U setuptools

easy_install http://trac.transifex.org/files/deps/contact_form-0.3.tar.gz
easy_install http://trac.transifex.org/files/deps/userprofile-0.7-r422-correct-validation.tar.gz

pip install celery chardet Django==1.3.1 django-addons\>=0.6.6 django-ajax-selects==1.1.4 django-authority django-celery django-kombu django-picklefield django-piston==0.2.2 django-social-auth django-sorting\>=0.1 django-tagging-autocomplete==0.3.1 django-threadedcomments\>=0.9 django-userena hiredis\>=0.1.0 httplib2 markdown PIL\>=1.1.7 polib==0.6.3 pygooglechart pysolr redis\>=2.4.10 requests South==0.7.3 BeautifulSoup==3.2.0 django-staticfiles==1.2.1 python-magic

pip install 'https://pypi.python.org/packages/source/d/django-filter/django-filter-0.5.1.tar.gz#md5=f28c24251ba108940ddc5b77a4ed829d' 

easy_install 'https://github.com/mpessas/django-bulk/tarball/master#egg=django-bulk'
easy_install 'https://github.com/mpessas/python-Levenshtein/tarball/master#egg=Levenshtein'
easy_install 'https://github.com/mpessas/django-tagging/tarball/master#egg=django-tagging'
easy_install 'https://github.com/jkal/django-notification/tarball/master#egg=django-notification'
easy_install 'https://github.com/jkal/django-pagination/tarball/master#egg=django-pagination'

pip install -e 'git+git://github.com/toastdriven/django-haystack.git@3289ab8#egg=django-haystack'
pip install -e 'git+git://github.com/jezdez/django_compressor.git@ee16af6#egg=django_compressor'

# postgres
sudo apt-get install libpq-dev
pip install psycopg2

./manage.py txcreatedirs
./manage.py syncdb
./manage.py migrate
./manage.py txlanguages
./manage.py txcreatenoticetypes
./manage.py collectstatic
./manage.py runserver 0.0.0.0:9000
brauliobo commented 11 years ago

Added

from django.conf.urls.defaults import *

to ~/txenv/lib/python2.6/site-packages/userena/urls.py

glezos commented 11 years ago

Bráulio, as you noticed, the instructions and the repo are not being updated. We're focused on Transifex.com at the moment. If you're able to find a work-around, we can update the docs.

brauliobo commented 11 years ago

@glezos well, with the above commands and the patch to userena it is fully working

glezos commented 11 years ago

Thank you @brauliobo, I just added a note to the docs with a link to this comment.

https://github.com/transifex/transifex/commit/a9621657b6bc716079b426195c6a42caee7e892b