Two problems encountered when installing TRAC 0.12

Source: Internet
Author: User

1. After TRAC 0.12 is installed, Chinese characters are not supported. Babel has been installed, but the language tab does not exist in the preference option.

The following error message is displayed on the homepage:

"TRACDetected an internal error:
Keyerror:'TRAC/Locale'
This is probably a local installation issue.
"

For more information, see http://www.gossamer-threads.com/lists/trac/users/46200. The solution provided here is because TRAC is installed first and Babel is installed later.

The solution is to install TRAC again.

 

2. Install TRAC selected database is MySQL 5.1.5, but in the use of trac-admin.py <env> initenv to create the environment when the error is reported:

....
/Var/lib/Python-Support/Python2.5/TRAC/DB/util.PY: 50: Warning: incorrect string value: '\ xe2 \ x86 \ x92 ex...' for column 'text' at Row 1
...

/Usr/share/TRAC/wiki-Default/Tracunicode => tracunicode
/Var/lib/Python-Support/Python2.5/TRAC/DB/util.PY: 50: Warning: incorrect string value: '\ xd8 \ xAA \Xd8 \ xb1 \Xd8 \ xa7... 'For column 'text' at row 0
....

This problem occurs because my database uses the default Latin1 encoding when setting, while TRAC requires a UTF-8 database,

Modify the MySQL my. ini configuration file and change the encoding to UTF-8.

Reference https://bugs.launchpad.net/ubuntu/+source/trac/+bug/174589

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.