and here is the trac log 

2018-04-11 08:19:03,741 Trac[main] DEBUG: Dispatching <RequestWithSession 
"GET '/admin/google/analytics'">
2018-04-11 08:19:03,742 Trac[main] DEBUG: Chosen handler is <Component 
trac.admin.web_ui.AdminModule>
2018-04-11 08:19:03,744 Trac[session] DEBUG: Retrieving session for ID 
u'rgrubba'
2018-04-11 08:19:03,748 Trac[main] DEBUG: Negotiated locale: pl -> pl
2018-04-11 08:19:03,755 Trac[chrome] DEBUG: Prepare chrome data for request
2018-04-11 08:19:03,758 Trac[main] DEBUG: Rendering response from handler
2018-04-11 08:19:03,759 Trac[main] ERROR: [10.0.0.15] Internal Server 
Error: <RequestWithSession "GET '/admin/google/analytics'">, referrer 
'http://trac.pgxc.pl/admin/general/logging'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 623, 
in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 259, 
in dispatch
    iterable=chrome.use_chunked_encoding)
  File "/usr/local/lib/python2.7/dist-packages/trac/web/chrome.py", line 
1121, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/local/lib/python2.7/dist-packages/trac/web/chrome.py", line 
1081, in load_template
    return self.templates.load(filename, cls=cls)
  File "/usr/local/lib/python2.7/dist-packages/genshi/template/loader.py", 
line 246, in load
    raise TemplateNotFound(filename, search_path)
TemplateNotFound: Template "google_analytics_admin.html" not found
2018-04-11 08:19:06,299 Trac[main] DEBUG: Dispatching <RequestWithSession 
"GET '/chrome/googleanalytics/googleanalytics.css'">
2018-04-11 08:19:06,301 Trac[main] DEBUG: Chosen handler is <Component 
trac.web.chrome.Chrome>
2018-04-11 08:19:06,302 Trac[chrome] WARNING: File googleanalytics.css not 
found in any of []
2018-04-11 08:19:06,302 Trac[main] WARNING: [10.0.0.15] HTTPNotFound: 404 
Not Found (File googleanalytics.css not found), <RequestWithSession "GET 
'/chrome/googleanalytics/googleanalytics.css'">, referrer 
'http://trac.pgxc.pl/admin/google/analytics'
2018-04-11 08:19:06,305 Trac[session] DEBUG: Retrieving session for ID 
u'rgrubba'
2018-04-11 08:19:06,309 Trac[main] DEBUG: Negotiated locale: pl -> pl
2018-04-11 08:19:06,318 Trac[chrome] DEBUG: Prepare chrome data for request
2018-04-11 08:19:06,326 Trac[web_ui] DEBUG: Plugin not configured, 
returning stream
2018-04-11 08:19:06,345 Trac[main] DEBUG: Dispatching <RequestWithSession 
"GET '/chrome/common/js/messages/pl.js'">
2018-04-11 08:19:06,345 Trac[main] DEBUG: Chosen handler is <Component 
trac.web.chrome.Chrome>
2018-04-11 08:19:06,345 Trac[chrome] WARNING: File js/messages/pl.js not 
found in any of ['/usr/local/lib/python2.7/dist-packages/trac/htdocs']
2018-04-11 08:19:06,346 Trac[main] WARNING: [10.0.0.15] HTTPNotFound: 404 
Not Found (File js/messages/pl.js not found), <RequestWithSession "GET 
'/chrome/common/js/messages/pl.js'">, referrer 
'http://trac.pgxc.pl/admin/google/analytics'
2018-04-11 08:19:06,348 Trac[session] DEBUG: Retrieving session for ID 
u'rgrubba'
2018-04-11 08:19:06,355 Trac[main] DEBUG: Negotiated locale: pl -> pl
2018-04-11 08:19:06,370 Trac[chrome] DEBUG: Prepare chrome data for request
2018-04-11 08:19:06,381 Trac[web_ui] DEBUG: Plugin not configured, 
returning stream



On Wednesday, April 11, 2018 at 10:17:12 AM UTC+2, Robert Grubba wrote:
>
> here is the output of uninstall/install process:
>
> root@trac:~# pip uninstall TracGoogleAnalytics
> Uninstalling TracGoogleAnalytics:
>   /usr/local/lib/python2.7/dist-packages/TracGoogleAnalytics-0.3.0.dev0-
> py2.7.egg-info
>   /usr/local/lib/python2.7/dist-packages/googleanalytics
> Proceed (y/n)? y
>   Successfully uninstalled TracGoogleAnalytics
> root@trac:~# pip install svn+
> https://trac-hacks.org/svn/googleanalyticsintegration/1.0/
> Downloading/unpacking svn+https://
> trac-hacks.org/svn/googleanalyticsintegration/1.0/
>   Checking out https://trac-hacks.org/svn/googleanalyticsintegration/1.0/ 
> to /tmp/pip-lZOf3b-build
>   Running setup.py (path:/tmp/pip-lZOf3b-build/setup.py) egg_info for 
> package from svn+https://
> trac-hacks.org/svn/googleanalyticsintegration/1.0/
>     warning: no files found matching '*.py' under directory 'tracext'
>     warning: no files found matching '*.css' under directory 'tracext'
>     warning: no files found matching '*.html' under directory 'tracext'
>     warning: no files found matching '*.*' under directory '*.egg-info'
> Installing collected packages: TracGoogleAnalytics
>   Running setup.py install for TracGoogleAnalytics
>     warning: no files found matching '*.py' under directory 'tracext'
>     warning: no files found matching '*.css' under directory 'tracext'
>     warning: no files found matching '*.html' under directory 'tracext'
>   Could not find .egg-info directory in install record for 
> TracGoogleAnalytics==0.3.0.dev0 from svn+https://
> trac-hacks.org/svn/googleanalyticsintegration/1.0/
> Successfully installed TracGoogleAnalytics
> Cleaning up...
> root@trac:~#
>
>
>
>
>
> Thanks,
> Robert
>
> On Wednesday, April 11, 2018 at 10:03:25 AM UTC+2, RjOllos wrote:
>>
>>
>>
>> On Wednesday, April 11, 2018 at 12:37:05 AM UTC-7, Robert Grubba wrote:
>>>
>>> after rebuilding my trac docker image i have an after opening trac panel:
>>>
>>
>> Make sure to restart your web server after installing the plugin. I 
>> checked again and the template is included in the distributable and is 
>> loaded correctly in my environment.
>>
>> Please enable logging and check the log file.
>> https://trac.edgewall.org/wiki/TracTroubleshooting#ChecktheLogs
>>  
>>
>>> TemplateNotFound: Template "google_analytics_admin.html" not found
>>>
>>>
>>> User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 
>>> (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
>>> PackageWersja
>>> Trac 1.2.2
>>> Babel 2.5.3
>>> Genshi 0.7 (with speedups)
>>> MySQL server: "5.5.5-10.0.32-MariaDB-0+deb8u1", client: "5.5.59", 
>>> thread-safe: 1
>>> MySQLdb 1.2.5
>>> Python 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]
>>> pytz 2018.4
>>> setuptools 39.0.1
>>> jQuery 1.11.3
>>> jQuery UI 1.11.4
>>> jQuery Timepicker 1.5.5
>>> Zainstalowane rozszerzenia
>>> NazwaWersjaLokalizacja
>>> MathCaptcha N/D /trac/leonardo/plugins/MathCaptcha.pyc
>>> TracGoogleAnalytics <http://google.ufsoft.org/> 0.3.0.dev0 
>>> /usr/local/lib/python2.7/dist-packages 
>>> <http://trac.pgxc.pl/admin/google/analytics#frame0>
>>>
>>>
>> The path for TracGoogleAnalytics looks odd. It should be the full path to 
>> the egg or wheel, like 
>> "/usr/local/lib/python2.7/site-packages/TracGoogleAnalytics-0.3.0.dev0-py2.7.egg".
>>
>> What are your steps to install the plugin? Can you show the output from 
>> creating and installing the package?
>>
>> - 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+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to