Modify

Opened 15 years ago

Closed 15 years ago

#5525 closed defect (fixed)

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

Reported by: Mark Potter Owned by: Ryan J Ollos
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 (0)

Change History (5)

comment:1 Changed 15 years ago 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' ] },

comment:2 Changed 15 years ago by Mark Potter

Priority: lownormal
Severity: minornormal
Summary: WARNING messages in Trac log file.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.

comment:3 Changed 15 years ago by anonymous

Original Source:

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

Changed Source:

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

And install again!!

comment:4 Changed 15 years ago by Ryan J Ollos

Owner: changed from Alec Thomas to Ryan J Ollos
Summary: WARNING messages in Trac log file; setup does not copy footnote.js[Fix] WARNING messages in Trac log file; setup does not copy footnote.js

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

comment:5 Changed 15 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.