Trac/Python24

Dominik Madon dominik at acm.org
Sat Oct 14 09:28:52 PDT 2006


Hello,

I'm having troubles to run tracd on my MBP. It looks like the _locale  
module of python has not been compiled and, in fact, it's not when I  
do a port install python24:

Traceback (most recent call last):
   File "/opt/local/lib/python2.4/site-packages/trac/web/main.py",  
line 356, in dispatch_request
     dispatcher.dispatch(req)
   File "/opt/local/lib/python2.4/site-packages/trac/web/main.py",  
line 206, in dispatch
     populate_hdf(req.hdf, self.env, req)
   File "/opt/local/lib/python2.4/site-packages/trac/web/main.py",  
line 74, in populate_hdf
     hdf['trac'] = {
   File "/opt/local/lib/python2.4/site-packages/trac/util/ 
datefmt.py", line 61, in format_datetime
     encoding = locale.getpreferredencoding()
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/locale.py", line 399, in getpreferredencoding
     import _locale
ImportError: No module named _locale

Question: Is there any easy way to include this module when  
installing python24 or is there something special to do get trac/ 
postgres to run?


Dom



More information about the macports-dev mailing list