Edgewall Software
Modify

Opened 16 years ago

Closed 14 years ago

#7984 closed defect (fixed)

spam-filter-captcha did not install fonts directory

Reported by: kiki@… Owned by: Christian Boos
Priority: normal Milestone: plugin - spam-filter
Component: plugin/spamfilter Version: 0.12dev
Severity: normal Keywords: tracspamfilter captcha verify
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This may very well be a pilot error, as I didn't find any other bug report and meanwhile others ought to have come across this…

I have installed the latest version of trac (Trac 0.12dev-r7776) on a debian system. I installed from trunk after checking out and running setup.py. I made the same with the spam-filter-captcha plugin, which I found in "SandBox". When installing spam-filter-captcha plugin by running setup.py it did NOT copy the fonts directory with vera.ttf into the package in the python site-packages directory.

After copying the "fonts" directory "by hand" from the svn checkout folder into the appropriate place INSIDE the TracSpamFilter package (namely that was in my case:

sudo cp -r tracspamfilter/fonts /usr/lib/python2.5/site-packages/TracSpamFilter-0.2.1cdev_r6883-py2.5.egg/tracspamfilter/fonts

the image captcha started to work like a charme. Being a python noob, I don't know, where to change the installer script in order to place the fonts directory at the correct location, but I guess it is not very complicated.

Please contact me, if you need further details.

Attachments (0)

Change History (4)

comment:1 by Christian Boos, 16 years ago

Milestone: not applicable

comment:2 by Christian Boos, 15 years ago

Keywords: verify added
Milestone: not applicablespam-filter-plugin
Owner: set to Christian Boos

comment:3 by michaelc@…, 14 years ago

This should be fixed in the setup.py file by including the relevant package_data.

Index: setup.py
===================================================================
--- setup.py	(revision 9965)
+++ setup.py	(working copy)
@@ -33,7 +33,7 @@
     keywords='trac plugin',
 
     packages = find_packages(exclude=['*.tests*']),
-    package_data = {'tracspamfilter': ['templates/*', 'htdocs/*']},
+    package_data = {'tracspamfilter': ['templates/*', 'htdocs/*', 'fonts/*']},
     extras_require = {
         'DNS': ['dnspython>=1.3.5'],
         'SpamBayes': ['spambayes'],

comment:4 by Dirk Stöcker, 14 years ago

Resolution: fixed
Status: newclosed

In r9991.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.