Some weeks ago, I asked a question in this mailing list. (http://www.gossamer-threads.com/lists/trac/users/47929) But I couldn't resolve that. Then, I tried to install trac after clean install centOS.
OS: centOS5.5 Apache: 2.2.17(from source code) Python: 2.4.3(pre instaled) SQLite: 3.3.6(pre instaled) ((httpd.conf)) User webuser Group webgroup I tried blow. yum -y install sqlite-devel python-devel #setupools wget http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py #PySQLite yum --enablerepo=epel -y install python-sqlite2 wget http://pysqlite.googlecode.com/files/pysqlite-2.6.0.tar.gz tar vfxz pysqlite-2.6.0.tar.gz && cd pysqlite-2.6.0 python setup.py build_static install #SWIG yum install -y swig #mod_wsgi wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz tar vfxz mod_wsgi-3.3.tar.gz && cd mod_wsgi-3.3 ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python=/usr/bin/python make && make install vi /usr/local/apache2/conf/httpd.conf #add -> "LoadModule wsgi_module modules/mod_wsgi.so" #Pygments,Genshi,Babel easy_install Pygments easy_install -Z babel easy_install -Z Genshi #Trac-ja wget http://www.i-act.co.jp/project/products/downloads/Trac-0.12.1.ja1.zip unzip Trac-0.12.1.ja1.zip && cd Trac-0.12.1.ja1 python ./setup.py install #Trac Emviroment cd /var && mkdir tracbird cd /var/tracbird trac-admin birdproject initenv #->birdproject->[Enter] #->Congratulations! cd /var/tracbird trac-admin birdproject deploy /tmp/deploy cp -i /tmp/deploy/* /var/tracbird chown -R webuser:webgroup /var/tracbird cp -i /var/tracbird/cgi-bin/trac.wsgi /var/tracbird/cgi-bin/trac.wsgi-bak vi /usr/local/apache2/conf/httpd.conf ###### WSGIScriptAlias /tracbird /var/tracbird/cgi-bin/trac.wsgi <Directory /var/tracbird/cgi-bin> WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all </Directory> ###### /usr/local/apache2/bin/apachectl graceful I access the browser (http://localhost/tracbird) , but another error occured again. ((error_log)) [error] [client 127.0.0.1] mod_wsgi (pid=2616): Exception occurred processing WSGI script '/var/tracbird/cgi-bin/trac.wsgi'. [error] [client 127.0.0.1] Traceback (most recent call last): [error] [client 127.0.0.1] File "/var/tracbird/cgi-bin/trac.wsgi", line 30, in application [error] [client 127.0.0.1] from trac.web.main import dispatch_request [error] [client 127.0.0.1] ImportError: No module named trac.web.main [error] [client 127.0.0.1] File does not exist: /usr/local/apache2/htdocs/favicon.ico, referer: http://file:///var/lib/svnboo/repos/brancheslocalhost/tracbird ((trac.wsgi)) #!/usr/bin/python # -*- coding: utf-8 -*- import os def application(environ, start_request): if not 'trac.env_parent_dir' in environ: environ.setdefault('trac.env_path', '/var/tracbird/birdproject') if 'PYTHON_EGG_CACHE' in environ: os.environ['PYTHON_EGG_CACHE'] = environ['PYTHON_EGG_CACHE'] elif 'trac.env_path' in environ: os.environ['PYTHON_EGG_CACHE'] = \ os.path.join(environ['trac.env_path'], '.egg-cache') elif 'trac.env_parent_dir' in environ: os.environ['PYTHON_EGG_CACHE'] = \ os.path.join(environ['trac.env_parent_dir'], '.egg-cache') from trac.web.main import dispatch_request return dispatch_request(environ, start_request) I tried many , but I could't step forward. Searching in Google, but I couldn't find any ideas. I can't understand Python code, and what is "trac.web.main" and where is it? Are there any version mismatch? I think I followed trac manual or Japanese book for Trac. Which is wrong? If you can, would you show me your process to install "trac-0.12.1" in centOS(Fedora,RHEL)? Maybe, I have many wrong wrods and impolite words in this question. I'm sorry. I feel shame, my ability of English. -- 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.
