Modify

Opened 5 years ago

Closed 4 years ago

#5525 closed defect (fixed)

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

Reported by: potter Owned by: 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 (0)

Change History (5)

comment:1 Changed 5 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 5 years ago 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.

comment:3 Changed 5 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 4 years ago 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.

comment:5 Changed 4 years ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.