id summary reporter owner description type status priority component severity resolution keywords cc release 8331 Images can't be found Ben Allen Ryan J Ollos "I am running Trac 0.12 and whenever I try to load a wiki page containing a CodeExample macro, I get ""404 Not Found"" errors in the Trac log for button-expand.gif, etc. Also, when viewing the WikiMacros page, the section showing details for the {{{[[CodeExample]]}}} macro shows broken links in place of the sample screenshots. I discovered that the images in the htdocs/img directory aren't being included in the egg. I made the following change to setup.py to partially address this problem. Change the lines {{{ package_data={'codeexample': ['templates/*.html', 'htdocs/css/*.css', 'htdocs/js/*.js']}, }}} to {{{ package_data={'codeexample': ['templates/*.html', 'htdocs/css/*.css', 'htdocs/js/*.js', 'htdocs/img/*.gif', 'htdocs/img/*.png']}, }}} and the ""404 Not Found"" errors on the .gif files will no longer be seen. Manually inspecting the egg cache confirms that the .gif and .png images are now being included in the egg file as expected. However, I am still seeing bad image links being generated on the WikiMacros page. The bad image URL that is generated looks like {{{http://127.0.0.1/chrome/ce/img/example1.png}}} when the desired image is instead located at {{{http://127.0.0.1/ProjectName/chrome/ce/img/example1.png}}}." defect closed normal CodeExampleMacro normal fixed Ryan J Ollos 0.12