Mailing List Archive

TracError: The Trac Environment needs to be upgraded
I've been running trac successfully for several years. Today I received
this message when connecting to my trac server:
TracError: The Trac Environment needs to be upgraded

I upgraded the trac environment with:
trac-admin "trac-dir" upgrade

When I next connected to the trac server, I got the error:
File "/usr/lib/python2.7/site-packages/jinja2/loaders.py", line 26, in
split_template_path for piece in template.split("/"): UndefinedError: the
inline if-expression on line 109 in 'theme.html' evaluated to false and no
else section was defined.

I can't use pip to upgrade, because it cannot deal with the presence of
python 3, even though python 2.7 is also installed.

Running Fedora 32.

Any suggestions?

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/d1e9da1b-c506-4d7b-985e-fbeac1311c4an%40googlegroups.com.
Re: TracError: The Trac Environment needs to be upgraded [ In reply to ]
On Tuesday, March 2, 2021 at 1:57:52 PM UTC-8 Michael Price wrote:

> I've been running trac successfully for several years. Today I received
> this message when connecting to my trac server:
> TracError: The Trac Environment needs to be upgraded
>
> I upgraded the trac environment with:
> trac-admin "trac-dir" upgrade
>
> When I next connected to the trac server, I got the error:
> File "/usr/lib/python2.7/site-packages/jinja2/loaders.py", line 26, in
> split_template_path for piece in template.split("/"): UndefinedError: the
> inline if-expression on line 109 in 'theme.html' evaluated to false and no
> else section was defined.
>
> I can't use pip to upgrade, because it cannot deal with the presence of
> python 3, even though python 2.7 is also installed.
>
> Running Fedora 32.
>
> Any suggestions?
>

I'm guessing you installed Trac using the Fedora package manager and today
it was upgraded to Trac 1.4. Trac 1.4 has a defect when used with Jinja
2.11 or later. The defect was fixed in
1.4.1: https://trac.edgewall.org/ticket/13242

You'll need to either upgrade Trac or downgrade Jinja2.

Ryan

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/ed190a2d-3823-40b3-bed0-64097e0c73abn%40googlegroups.com.
Re: TracError: The Trac Environment needs to be upgraded [ In reply to ]
Ryan,
No joy upgrading - version incompatibility errors for each method I tried.

I did get it working by manually applying the patches from
https://trac.edgewall.org/ticket/13242

Thanks for your help,
Mike

On Tuesday, March 2, 2021 at 2:02:35 PM UTC-8 RjOllos wrote:

> On Tuesday, March 2, 2021 at 1:57:52 PM UTC-8 Michael Price wrote:
>
>> I've been running trac successfully for several years. Today I received
>> this message when connecting to my trac server:
>> TracError: The Trac Environment needs to be upgraded
>>
>> I upgraded the trac environment with:
>> trac-admin "trac-dir" upgrade
>>
>> When I next connected to the trac server, I got the error:
>> File "/usr/lib/python2.7/site-packages/jinja2/loaders.py", line 26, in
>> split_template_path for piece in template.split("/"): UndefinedError: the
>> inline if-expression on line 109 in 'theme.html' evaluated to false and no
>> else section was defined.
>>
>> I can't use pip to upgrade, because it cannot deal with the presence of
>> python 3, even though python 2.7 is also installed.
>>
>> Running Fedora 32.
>>
>> Any suggestions?
>>
>
> I'm guessing you installed Trac using the Fedora package manager and today
> it was upgraded to Trac 1.4. Trac 1.4 has a defect when used with Jinja
> 2.11 or later. The defect was fixed in 1.4.1:
> https://trac.edgewall.org/ticket/13242
>
> You'll need to either upgrade Trac or downgrade Jinja2.
>
> Ryan
>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/9126f866-3eef-4e6e-b73d-5b41e2e4cc00n%40googlegroups.com.
Re: TracError: The Trac Environment needs to be upgraded [ In reply to ]
On Tuesday, March 2, 2021 at 3:28:04 PM UTC-8 Michael Price wrote:

> Ryan,
> No joy upgrading - version incompatibility errors for each method I tried.
>
> I did get it working by manually applying the patches from
> https://trac.edgewall.org/ticket/13242
>
> Thanks for your help,
> Mike
>

Reporting the issue to the Fedora packagers might prompt them to upgrade
Fedora package management to Trac 1.4.2.

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/ff5eddf5-f0d2-4bb4-9516-c5c1fd8b96b3n%40googlegroups.com.