Discussion:
[Trac-dev] Attribute Error after TracDeveloper 0.3.0 Activation in Trac 1.3.3
Emerson Castañeda
2018-06-15 01:43:58 UTC
Permalink
Hi


I'm running a successful Trac (1.3.3.dev0) installation (on Windows)
from scratch following the instructions on:

https://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup

Just in case, I have installed some additional plugins in order to
debug how these work on Trac 1.3, but these are still disabled


After TracDeveloper <https://trac-hacks.org/wiki/TracDeveloperPlugin>
plugin activation from: http://127.0.0.1:8000/admin/general/plugin

I'm getting this error:


Traceback (most recent call last):
File "c:\users\user\repos\svn\trac-trunk\trac\web\api.py", line 815,
in send_error
data, metadata)
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line
1428, in render_template
fragment, iterable, method)
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line
1486, in _render_jinja_template
data):
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line
1905, in _check_for_stream_filters
for filter in self.stream_filters:
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 93, in extensions
components = [component.compmgr[cls] for cls in classes]
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 238, in
__getitem__
component = cls(self)
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 155, in __call__
self.__init__()
File "c:\users\user\apps\python27\lib\site-packages\tracdeveloper\log.py",
line 41, in __init__
self.log_handler.setFormatter(self.log._trac_handler.formatter)
AttributeError: 'Logger' object has no attribute '_trac_handler'



System Information

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0)
Gecko/20100101 Firefox/60.0
PackageVersion
Trac 1.3.3.dev0
Genshi 0.8.dev0 (without speedups)
Jinja2 2.11.dev0
pysqlite 2.6.0
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64
bit (AMD64)]
setuptools 39.0.1
SQLite 3.14.2
jQuery 1.12.4
jQuery UI 1.12.1
jQuery Timepicker 1.6.3

Any Advise?


Thanks


EmeCas
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
RjOllos
2018-06-15 04:19:19 UTC
Permalink
Post by Emerson Castañeda
Hi
https://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup
Just in case, I have installed some additional plugins in order to debug how these work on Trac 1.3, but these are still disabled
After TracDeveloper <https://trac-hacks.org/wiki/TracDeveloperPlugin> plugin activation from: http://127.0.0.1:8000/admin/general/plugin
File "c:\users\user\repos\svn\trac-trunk\trac\web\api.py", line 815, in send_error
data, metadata)
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line 1428, in render_template
fragment, iterable, method)
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line 1486, in _render_jinja_template
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line 1905, in _check_for_stream_filters
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 93, in extensions
components = [component.compmgr[cls] for cls in classes]
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 238, in __getitem__
component = cls(self)
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 155, in __call__
self.__init__()
File "c:\users\user\apps\python27\lib\site-packages\tracdeveloper\log.py", line 41, in __init__
self.log_handler.setFormatter(self.log._trac_handler.formatter)
AttributeError: 'Logger' object has no attribute '_trac_handler'
System Information
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0)
Gecko/20100101 Firefox/60.0
PackageVersion
Trac 1.3.3.dev0
Genshi 0.8.dev0 (without speedups)
Jinja2 2.11.dev0
pysqlite 2.6.0
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64
bit (AMD64)]
setuptools 39.0.1
SQLite 3.14.2
jQuery 1.12.4
jQuery UI 1.12.1
jQuery Timepicker 1.6.3
Any Advise?
Thanks
EmeCas
Fixed in r17205:
https://trac-hacks.org/changeset/17205

However, the log does not render. See:
https://trac-hacks.org/ticket/13441

- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
Emerson Castañeda
2018-06-18 12:10:45 UTC
Permalink
Thank you Ryan, r17205 has fixed the problem and made Trac functional
again.

I could not reproduce #13441 about ITemplateStreamFilter, I am not sure
what it is about, may you please explain to me under what conditions are
you getting it? is it happening in combination to other plugin or
additional functionality?

EmeCas
Post by RjOllos
Post by Emerson Castañeda
Hi
https://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup
Just in case, I have installed some additional plugins in order to debug how these work on Trac 1.3, but these are still disabled
After TracDeveloper <https://trac-hacks.org/wiki/TracDeveloperPlugin> plugin activation from: http://127.0.0.1:8000/admin/general/plugin
File "c:\users\user\repos\svn\trac-trunk\trac\web\api.py", line 815, in send_error
data, metadata)
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line 1428, in render_template
fragment, iterable, method)
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line 1486, in _render_jinja_template
File "c:\users\user\repos\svn\trac-trunk\trac\web\chrome.py", line 1905, in _check_for_stream_filters
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 93, in extensions
components = [component.compmgr[cls] for cls in classes]
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 238, in __getitem__
component = cls(self)
File "c:\users\user\repos\svn\trac-trunk\trac\core.py", line 155, in __call__
self.__init__()
File "c:\users\user\apps\python27\lib\site-packages\tracdeveloper\log.py", line 41, in __init__
self.log_handler.setFormatter(self.log._trac_handler.formatter)
AttributeError: 'Logger' object has no attribute '_trac_handler'
System Information
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0)
Gecko/20100101 Firefox/60.0
PackageVersion
Trac 1.3.3.dev0
Genshi 0.8.dev0 (without speedups)
Jinja2 2.11.dev0
pysqlite 2.6.0
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64
bit (AMD64)]
setuptools 39.0.1
SQLite 3.14.2
jQuery 1.12.4
jQuery UI 1.12.1
jQuery Timepicker 1.6.3
Any Advise?
Thanks
EmeCas
https://trac-hacks.org/changeset/17205
https://trac-hacks.org/ticket/13441
- Ryan
--
You received this message because you are subscribed to the Google Groups
"Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
RjOllos
2018-06-18 20:57:06 UTC
Permalink
Post by Emerson Castañeda
Thank you Ryan, r17205 has fixed the problem and made Trac functional
again.
I could not reproduce #13441 about ITemplateStreamFilter, I am not sure
what it is about, may you please explain to me under what conditions are
you getting it? is it happening in combination to other plugin or
additional functionality?
EmeCas
The log messages were not displaying when the "Log" meta navigation item
was toggled. The ticket #13441 was fixed in r17207-17210:
https://trac-hacks.org/log/?revs=17207-17210

- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...