Dear Ravi,

I had a similar issue.  CentOS 5 has an older version of python.  I've set
up a virtual machine under Xen for trac/subversion and compiled everything
from source (python httpd apr mod_python subversion).  This means that yum
is a bit broken because itself is a python app and requires the version that
ships with the OS.  Very annoying.

I'm no expert on the topic, so take this with a grain of salt:

With your Trac, are you using mod_python or some CGI stuff?   If mod_python,
maybe that is compiled/installed against Debian and using the original
python.

Cheers
Chris




On Wed, Dec 10, 2008 at 4:55 AM, Ravi Chhabra <[EMAIL PROTECTED]>wrote:

>
> My default Python interpreter is 2.3 and I have done something like
> below to force Python to be 2.4:
>
> ln -s /usr/bin/python2.4 $HOME/bin/python
> export PATH="$HOME/bin:$PATH"
>
> After installing trac with that enviroment, the output from the System
> Information part of the error message is still showing the interpreter
> to be 2.3. What else do I need to do so that Trac uses 2.4 instead of
> 2.3.
>
> System Information:
>
> User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/
> 2008111317
> <http://127.0.0.1:8080/WebApplication2/NewServlet?dial=2008111317>Ubuntu/8.04 
> (hardy) Firefox/3.0.4
> Trac:   0.11.1
> Python:         2.3.5 (#2, Oct 16 2006, 19:19:48) [GCC 3.3.5 (Debian
> 1:3.3.5-13)]
> setuptools:     0.6c9
> SQLite:         3.2.1
> pysqlite:       2.0.5
> Genshi:         0.5.1
> Pygments:       1.0
> jQuery: 1.2.6
>
>
> Python Traceback
> Most recent call last:
>
>    * File "/home/trac_sys/packages/lib/python2.4/site-packages/
> Trac-0.11.1-py2.4.egg/trac/web/main.py", line 423, in
> _dispatch_request
>      Code fragment:
>       418. try:
>       419. if not env and env_error:
>       420. raise HTTPInternalError(env_error)
>       421. try:
>       422. dispatcher = RequestDispatcher(env)
>       423. dispatcher.dispatch(req)
>       424. except RequestDone:
>       425. pass
>       426. resp = req._response or []
>       427.
>       428. except HTTPException, e:
>      Local variables:
>      Name      Value
>      after     [u' except RequestDone:', u' pass', u' resp = ...
>      before    [u' try:', u' if not env and env_error:', u' raise ...
>      dispatcher        <trac.web.main.RequestDispatcher object at
> 0xb6cd03ec>
>      e         <exceptions.AttributeError instance at 0xb6cf5dec>
>      env       <trac.env.Environment object at 0xb77895cc>
>      env_error         None
>      exc_info  (<class exceptions.AttributeError at 0xb7d7474c>, ...
>      filename  '/home/trac_sys/packages/lib/python2.4/site-packages/
> Trac-0.11.1-py2.4.egg/ ...
>      frames    [{'function': '_dispatch_request', 'lines_before': [u'
> try:', u' ...
>      has_admin         True
>      line      u' dispatcher.dispatch(req)'
>      lineno    422
>      message   u"AttributeError: 'module' object has no attribute
> 'urlsafe_b64encode'"
>      req       <Request "GET u'/prefs'">
>      resp      []
>      tb        <traceback object at 0xb5bca3c4>
>      tb_hide   None
>      traceback         'Traceback (most recent call last):\n File ...
>    * File "/home/trac_sys/packages/lib/python2.4/site-packages/
> Trac-0.11.1-py2.4.egg/trac/web/main.py", line 208, in dispatch
>      Code fragment:
>       203. # Give the session a chance to persist changes
>       204. if req.session:
>       205. req.session.save()
>       206. req.display(template, content_type or 'text/html')
>       207. else: # Genshi
>       208. template, data, content_type = \
>       209. self._post_process_request(req, *resp)
>       210. if 'hdfdump' in req.args:
>       211. req.perm.require('TRAC_ADMIN')
>       212. # debugging helper - no need to render first
>       213. from pprint import pprint
>      Local variables:
>      Name      Value
>      chosen_handler    <trac.prefs.web_ui.PreferencesModule object at
> 0xb6cccf6c>
>      chrome    <trac.web.chrome.Chrome object at 0xb5bd85cc>
>      e         <exceptions.AttributeError instance at 0xb6cae5ec>
>      err       (<class exceptions.AttributeError at 0xb7d7474c>, ...
>      handler   <trac.prefs.web_ui.PreferencesModule object at
> 0xb6cccf6c>
>      req       <Request "GET u'/prefs'">
>      resp      ('prefs_general.html', {'localtz':
> <trac.util.datefmt.LocalTimezone object ...
>      self      <trac.web.main.RequestDispatcher object at 0xb6cd03ec>
>    * File "/home/trac_sys/packages/lib/python2.4/site-packages/
> Trac-0.11.1-py2.4.egg/trac/web/main.py", line 299, in
> _post_process_request
>      Code fragment:
>       294. # Trac 0.10, only filters with same arity gets passed real
> values.
>       295. # Errors will call all filters with None arguments,
>       296. # and results will not be not saved.
>       297. extra_arg_count = arity(f.post_process_request) - 2
>       298. if extra_arg_count == nbargs:
>       299. resp = f.post_process_request(req, *resp)
>       300. elif nbargs == 0:
>       301. f.post_process_request(req, *(None,)*extra_arg_count)
>       302. return resp
>       303.
>       304.
>      Local variables:
>      Name      Value
>      args      ('prefs_general.html', {'localtz':
> <trac.util.datefmt.LocalTimezone object ...
>      extra_arg_count   3
>      f         <acct_mgr.web_ui.EmailVerificationModule object at
> 0xb6ccaaac>
>      nbargs    3
>      req       <Request "GET u'/prefs'">
>      resp      ('prefs_general.html', {'localtz':
> <trac.util.datefmt.LocalTimezone object ...
>      self      <trac.web.main.RequestDispatcher object at 0xb6cd03ec>
>    * File "/home/trac_sys/packages/lib/python2.4/site-packages/
> TracAccountManager-0.2.1dev_r4679-py2.4.egg/acct_mgr/web_ui.py", line
> 558, in post_process_request
>      Local variables:
>      Name      Value
>      content_type      None
>      data      {'localtz': <trac.util.datefmt.LocalTimezone object at
> 0xb7c75c8c>, ...
>      req       <Request "GET u'/prefs'">
>      self      <acct_mgr.web_ui.EmailVerificationModule object at
> 0xb6ccaaac>
>      template  'prefs_general.html'
>    * File "/home/trac_sys/packages/lib/python2.4/site-packages/
> TracAccountManager-0.2.1dev_r4679-py2.4.egg/acct_mgr/web_ui.py", line
> 595, in _gen_token
>
> >
>


-- 
Kind Regards,
Chris Mylonas

--~--~---------~--~----~------------~-------~--~----~
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