User:Bourke/escidocadmin

From MPDLMediaWiki
Jump to navigation Jump to search

notes on getting escidocadmin running

modifications to existing doc ESciDoc_Admin

Prerequisite for Easy_Install is Setuptools Install link to v0.6c11

Easy_install fails to install turbogears 1.0.3 correctly and leaves dir corrupted. Trying with successor framework pip (simply replace easy_install with pip install, keep old version requirements.

Solution (from Andre)

 $>easy_install -f http://www.turbogears.org/1.0/downloads/1.0.4.4 RuleDispatch

and then turbogears install (with 1.0.4.4)

 $>easy_install  turbogears==1.0.4.4

install sqlite - nightmare

from Turbogears 1.0 database installation cannot install from package as Ubuntu 10.04 Lucid ships Python 2.6.5 as standard. So:

  • Install development tools (gcc, make, etc.). (already installed long ago)
  • Install SQLite and the SQlite development files. (apt-get install sqlite3 libsqlite3-dev)
  • gete a pysqlite tarball for Python 2.5.6 from Google Code repository
  • extract and copy directly under the project directory of the 2.5 virtualenv
  • with virtualenv activated and python2.5 operating run python setup.py build from the extracted pysqlite directory.

Here is the bash history on this last step including the complete setup of the virtualenv

  
  535  virtualenv -p /usr/local/python2.5/bin/python escidcoadmin
  536  cd escidcoadmin/
  537  source bin/activate
  538  easy_install sqlalchemy==0.3.9
  539  easy_install -f http://www.turbogears.org/1.0/downloads/1.0.4.4 RuleDispatch 
  540  easy_install turbogears==1.0.4.4
  541  pwd
  542  ls lib/python2.5/site-packages/
  543  mkdir pysqlite-2.5.6
  544  cd pysqlite-2.5.6/
  545  cp -R ~/Downloads/pysqlite-2.5.6/* .
  546  ls
  547  python -V
  548  python setup.py build
  549  python setup.py install
  550  pwd
  551  cd ..
  552  mkdir src
  553  cd src
  checkout from subversion here
  554  cp test.cfg dev.cfg
  555  ls
  556  cd escidocadmin/
  557  cp test.cfg dev.cfg
  558  vi dev.cfg # changed  framework.host= to localhost
  559  tg-admin sql create # works after installing sqlite3, sqlite3-dev, rebuilding python256 and virtualenv
  

unit testsests

problem

 
  $ nosetests --exclude=twill_test.py
> EEEEE.........
> ======================================================================
> ERROR: escidocadmin.lib.framework_test.test_ua
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/bootuser/work/escidocadmin/lib/python2.5/site-packages/nose-1.1.2-py2.5.egg/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
> TypeError: test_ua() takes exactly 1 argument (0 given)
  

and four more similar. Solution: rename or exclude ./escidocadmin/lib/framework_test.py from the nosetests run - it has a different interface.

tg-admin Toolbox not working. Problem. SQLObject not installed, installing that too.

easy_install SQLObject==0.10.0 (taken from the 20-minute wiki tutorial, which sets up the project via quickstart)

manual install python 2.5 on ubuntu

good (but not perfect) link howto manual install python25 on ubuntu lucid

worked, but virtualenv then failed to use the python executable, failed to load zlib.

suggestion andre:

apt-get install zlib11g-dev and remake. worked and again for sqlite.

And if I wanted to do ipython with readline support, download that too ...