Edgewall Software

Changes between Version 14 and Version 15 of TracFaq


Ignore:
Timestamp:
May 12, 2015, 7:37:56 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracFaq

    v14 v15  
    55If you have a question not answered on this page, you can ask it on the MailingList or in the IrcChannel. See the TracSupport page for more options on getting support for Trac.
    66
    7 ----
    87**Note:** If you don't find the answer you are looking for here and you are using Trac 0.12 or older versions, also have a look in the old [wiki:"0.12/TracFaq"].
    98
     
    1817==== Q: Why do I get `NameError: global name 'log' is not defined` when trying to use `setup.py`?
    1918
    20 {{{
     19{{{#!sh
    2120../trunk/$ python setup.py egg_info
    2221running egg_info
     
    2625}}}
    2726
    28 **A:** You're most likely working from a Subversion **1.7** checkout and you're using a too old `setuptools` package, eg `/setuptools-0.7a1dev_r66608`. Upgrade to a newer setuptools, downgrade to svn 1.6.x, or use distribute.
    29  See #7598.
     27**A:** You're most likely working from a Subversion **1.7** checkout and you're using a too old `setuptools` package, eg `/setuptools-0.7a1dev_r66608`. Upgrade to a newer setuptools, downgrade to svn 1.6.x, or use distribute. See also #7598.
    3028
    3129==== Q: Why does installing `distribute` fail with `ValueError: A 0.7-series setuptools cannot be installed with distribute.`?
    3230
    3331You tried to install `distribute` as advised elsewhere:
    34 {{{
     32{{{#!sh
    3533$ curl http://python-distribute.org/distribute_setup.py | python
    3634}}}
     35
    3736but you're greeted with:
    38 {{{
     37{{{#!sh
    3938ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /packages/trac/virtualenv-0.13/lib/python2.7/site-packages/setuptools-0.7a1dev_r66608-py2.7.egg
    4039}}}
    4140
    42 **A:** Don't give up, it's just `setuptools` giving you a last fight.
    43 
    44 You can remove the offending setuptools .egg and if it keeps re-appearing, you have it installed not only in the virtualenv but also in the parent Python installation (the one in which you installed virtualenv itself). If this is the case, remove it from there as well and installing distribute should now work.
     41**A:** Don't give up, it's just `setuptools` giving you a last fight. You can remove the offending setuptools .egg and if it keeps re-appearing, you have it installed not only in the virtualenv but also in the parent Python installation, the one in which you installed virtualenv itself. If this is the case, remove it from there as well and installing distribute should now work.
    4542
    4643==== Q: Why does Apache crash (500) with a `ZipImportError` in the error log?
     
    5350}}}
    5451
    55 **A:** You most certainly forgot to stop and restart your server during an upgrade. The zip importer mechanism keeps an internal cache which has trouble detecting replaced files, so a restart is needed, see TracUpgrade#ZipImportError.
     52**A:** You probably forgot to stop and restart your server during an upgrade. The zip importer mechanism keeps an internal cache which has trouble detecting replaced files, so a restart is needed, see TracUpgrade#ZipImportError.
    5653
    5754==== Q: Why do ticket notification emails contain unexpected backslash characters?
     
    6158**A:** This is the result of a defect in Genshi 0.7 (genshi:#569). Until Genshi 0.7.1 is released, your options are:
    6259 * Downgrade to Genshi 0.6.1
    63  * Convert the line endings of the ticket notification email template from `CRLF` to `LF`. For example, on a Unix-like system you can run the following from the directory in which the egg is installed (you may need elevated privileges, and your egg may have a different name depending on your Trac and Python versions):
     60 * Convert the line endings of the ticket notification email template from `CRLF` to `LF`. For example, on a Unix-like system you can run the following from the directory in which the egg is installed:
    6461 {{{#!sh
    65  dos2unix Trac-1.0.1-py2.7.egg/trac/ticket/templates/ticket_notify_email.txt
     62$ dos2unix Trac-1.0.1-py2.7.egg/trac/ticket/templates/ticket_notify_email.txt
    6663}}}
     64 You may need elevated privileges, and your egg may have a different name depending on your Trac and Python versions.
    6765
    6866=== Upgrade troubleshooting
     
    7371
    7472If that still doesn't work, look in your server configuration to see where the chrome files are supposed to be served from (`Alias` or `AliasMatch` directive), and maybe you are serving them as static files from a different location:
    75 {{{
     73{{{#!apache
    7674Alias /trac/bct/chrome /packages/trac/virtualenv-0.13/share/htdocs
    7775}}}
     76
    7877In this case, don't forget to:
    79 {{{
     78{{{#!sh
    8079$ trac-admin <yourenv> deploy /packages/trac/virtualenv-0.13/share
    8180}}}
     81
    8282See TracUpgrade#a5.Refreshstaticresources.
    83 
    8483
    8584==== Q: Attachments are missing after upgrade
     
    114113
    115114And then apply it to the broken environment:
    116 {{{
     115{{{#!sh
    117116$ python run-db28.py /path/to/tracenv
    118117}}}
     
    126125The community site [TracHacks:WikiStart trac-hacks.org] is a great place for finding plugins, it also contains a few [TracHacks:wiki:tutorial tutorials] to get you started.
    127126 
    128 
    129127=== Q: How to contribute to Trac?
    130128