Ticket #5525 (closed defect: fixed)

Opened 8 months ago

Last modified 1 month ago

[Fix] WARNING messages in Trac log file; setup does not copy footnote.js

Reported by: potter Assigned to: rjollos
Priority: normal Component: FootNoteMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

With Trac logging is set to WARNING, when a page that uses the FootNoteMacro is accessed I am getting a series of WARNING messages in the log file. However the page appears to be rendering correctly.

2009-07-17 09:42:27,102 Trac[chrome] WARNING: File footnote.js not found in any of [X:\\TracPath\\.egg-cache\\tracfootnotemacro-1.0-py2.5.egg-tmp\\footnotemacro\\htdocs']
2009-07-17 09:42:27,102 Trac[main] WARNING: HTTPNotFound: 404 Not Found (File footnote.js not found)
2009-07-17 09:42:27,197 Trac[chrome] WARNING: File footnote.js not found in any of [X:\\TracPath\\.egg-cache\\tracfootnotemacro-1.0-py2.5.egg-tmp\\footnotemacro\\htdocs']
2009-07-17 09:42:27,197 Trac[main] WARNING: HTTPNotFound: 404 Not Found (File footnote.js not found)`

The page in question had three footnotes, but as you can see the warning message is issued twice.

The steps used to install were:

  • Download and unzip.
  • From a command prompt go to the location where the package was unzipped.
  • Y:\DLPath\footnotemacro-r6213> c:\Python25\Scripts\easy_install.exe footnotemacro\0.11

Processing 0.11
Running setup.py -q bdist_egg --dist-dir Y:\DLPath\footnotemacro-r6213\footnotemacro\0.11\egg-dist-tmp-ucbfbp
zip_safe flag not set; analyzing archive contents...
Adding tracfootnotemacro 1.0 to easy-install.pth file

Installed c:\python25\lib\site-packages\tracfootnotemacro-1.0-py2.5.egg
Processing dependencies for tracfootnotemacro==1.0
Finished processing dependencies for tracfootnotemacro==1.0

  • Restart Apache

Attachments

Change History

08/18/09 21:59:57 changed by yahoo account: r_blauwkamp

I used

easy_install --always-unzip 0.11

but the installed egg directory in my python packages was missing footnote.js. I copied the file over from the download. I don't get the messages, and the footnote text appears when I hover over the footnote number.

Seems like setup.py has an incorrect line:

    package_data = { 'footnotemacro': ['htdocs/*.css' ] },

09/10/09 14:53:28 changed by potter

  • priority changed from low to normal.
  • severity changed from minor to normal.
  • summary changed from WARNING messages in Trac log file. to WARNING messages in Trac log file; setup does not copy footnote.js.

Copying that file stopped the error message. Thanks.

Leaving ticket open since this is an issue with the installer.

10/06/09 06:23:21 changed by anonymous

Original Source:

    package_data = { 'footnotemacro': ['htdocs/*.css',] },

Changed Source:

    package_data = { 'footnotemacro': ['htdocs/*.css',
                                       'htdocs/*.js' ] },

And install again!!

02/03/10 20:24:40 changed by rjollos

  • owner changed from athomas to rjollos.
  • summary changed from WARNING messages in Trac log file; setup does not copy footnote.js to [Fix] WARNING messages in Trac log file; setup does not copy footnote.js.

Reassigning open tickets to myself since I am adopting this plugin.

02/04/10 03:30:43 changed by rjollos

  • status changed from new to closed.
  • resolution set to fixed.

(In [7499]) Add htdocs/*.js to package_data in setup.py. Thanks for the fix anonymous. Fixes #5525.


Add/Change #5525 ([Fix] WARNING messages in Trac log file; setup does not copy footnote.js)




Change Properties
Action