Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 406,
in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 206,
in dispatch
    req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs())
  File "/var/lib/python-support/python2.5/trac/web/clearsilver.py",
line 135, in __init__
    raise TracError, "ClearSilver not installed (%s)" % e
TracError: ClearSilver not installed (No module named neo_cgi)

After Installing Trac on Ubuntu 8.04 with Python 2.5 .

I have already tried the following steps to resolve this issue:

Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 406,
in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 206,
in dispatch
    req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs())
  File "/var/lib/python-support/python2.5/trac/web/clearsilver.py",
line 135, in __init__
    raise TracError, "ClearSilver not installed (%s)" % e
TracError: ClearSilver not installed (/usr/lib/python2.5/site-packages/
neo_cgi.so: undefined symbol: Py_InitModule4)

FIX
Firstly make sure Ubuntu has all the dependencies needed for this:
sudo apt-get install zlib1g-dev python-dev autoconf build-essential
build-dep python-clearsilver

Next we want to download the Clearsilver source so we can manually
compile it, once compiled all we want is one library from it:
wget http://www.clearsilver.net/downloads/clearsilver-0.10.4.tar.gz
tar zxvf clearsilver-0.10.4.tar.gz

Locate configure

Pico /clearsilver-0.10.4/configure

configure
add "2.5" to the list of python version allowed as bellow
python_versions="2.5 2.4 2.3 2.2 2.1 2.0 1.5 24 23 22 21 20 15"
Pico  /clearsilver-0.10.4/configure
Ctrl+w python_version
configure.in
add "2.5" to the list of python version allowed as bellow
python_versions="2.5 2.4 2.3 2.2 2.1 2.0 1.5 24 23 22 21 20 15"

Pico /clearsilver-0.10.4/configure.in
Ctrl+w python_version
cd clearsilver-0.10.4
sudo apt-get install gcc
./configure

/*ERROR
checking for gcc... gcc
checking for C compiler default output file name... configure: error:
C compiler     cannot create executables
See `config.log' for more details.

apt-get install libc6-dev
http://pomocnik.com/users/dan/2005/10/checking-for-c-compiler-default-output-file-name-configure-error-c-compiler-cannot-create-executables/*/


make

/* The program 'make' is currently not installed.  You can install it
by typing:
apt-get install make
-bash: make: command not found

Apt-get install make*/


sudo make install

Now we just need to copy one library from the compiled source to
replace one file in the python2.5 libraries:

sudo cp -bi /usr/lib/python2.4/site-packages/neo_cgi.so /usr/lib/
python2.5/site-packages/neo_cgi.so

//apt-get install zlib1g-dev autoconf
apt-get install build-essential python-clearsilver

1.      $ cd /usr/lib/python2.5/site-packages
2.      $ sudo ln -s /usr/local/lib/python2.5/site-packages/neo_cgi.so


http://fluffypixies.blogspot.com/2008/04/ubuntu-64bit-clearsilver-python-fix.html
http://trac.edgewall.org/wiki/TracForPython2.5

To no result.

Can someone please help me.

Addison
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to