I'm using OSX Snow Leopard Server (yes, I know). I have installed trac many 
times on linux boxes, this is my first attempt on osx. 
I've tried WSGI and FastCGI access now, but getting a locale error. Here's 
the most recent one with FastCGI from apache log: 
[Wed Jan 16 11:03:50 2013] [notice] Apache/2.2.22 (Unix) DAV/2 
mod_fastcgi/2.4.2 SVN/1.6.17 mod_python/3.3.1 Python/2.6.1 mod_wsgi/3.3 
Python/2.6.8 mod_ssl/2.2.22 OpenSSL/0.9.8r configured -- resuming normal o$
[Wed Jan 16 11:03:56 2013] [warn] FastCGI: (dynamic) server 
"/trac/mobile/cgi-bin/trac.fcgi" started (pid 1939)
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr: Traceback (most recent call last):
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr:   File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/$
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr:     protocolStatus, appStatus = 
self.server.handler(self)
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr:   File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/$
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr:     result = 
self.application(environ, start_response)
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr:   File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/$
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr:     
locale.setlocale(locale.LC_ALL, environ['trac.locale'])
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr:   File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py",
 
li$
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr:     return _setlocale(category, 
locale)
[Wed Jan 16 11:03:57 2013] [error] [client 192.168.1.4] FastCGI: server 
"/trac/mobile/cgi-bin/trac.fcgi" stderr: Error: unsupported locale setting

There is slightly more info on the page that is actually displayed, but I 
don't want to bloat the post quite yet. 

I've searched around for similar errors. I've run >locale and saw that 
LC_ALL was null, so I did
export LC_ALL en_US.UTF-8
export LANG en_US.UTF-8
now when I run locale it looks good, but still the error. 

Some weirdness to point out, the library being called appears in a path 
that implies python 2.7. However, if I do python -V on the cmd line I see 
2.6. Also, the eggs for trac are in the site-packages for python 2.6. See 
history for potential more info, not sure its relevant

I'm trying to figure out next steps. Any advice?

Some History: 
I followed the macports instructions to install, have subversion running 
great, followed the trac guide for osx, and no eggs in any site-packages 
folders. So, as usual, figured I had to cobble together install steps 
distributed across various pages, install types, etc. I used macports to 
install setuptools, and used easy_install to install trac. It did it's 
magic. I have no idea where stuff was put. On a couple macports installs I 
get the message "installing outside expected directory structure" or some 
such thing. I've noticed I now have apache stuff in opt, even though osx 
has it all in /etc/, so not sure what put that stuff there, or when, and 
what the implications might be. In short, I'm trusting in these scripts, 
which ran and exited successfully, to have put the right things in the 
right places. But the osx install guide I think has some stale info. I'm 
not sure which python instance things were compiled against, but the trac 
eggs were put automatically in 2.6 site-packages, which is appropriately 
being referenced, so I think it's good. 

However, I'm stuck with this locale error. I tried wsgi and got the same 
error, though slightly different output in log file as expected.

Sorry for the super long post.

Any advice on next steps?

thanks, 
John

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/trac-users/-/619QftNFZxsJ.
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