KeyError: 'tgcaptcha/static/fonts/tuffy/Tuffy.ttf'

2 views
Skip to first unread message

venomous

unread,
Jun 3, 2007, 1:10:56 PM6/3/07
to TGCaptcha
Hi there!
seems that in the package there is no folder tgcaptcha/static/.
this is the content of the package:
drwxr-xr-x 15 venomous venomous 510B Jun 3 19:00 .
drwxr-xr-x 5 venomous venomous 170B Jun 3 19:00 ..
-rw-r--r-- 1 venomous venomous 368B Jun 3 03:58 __init__.py
-rw-r--r-- 1 venomous venomous 769B Jun 3 18:42 __init__.pyc
-rw-r--r-- 1 venomous venomous 2K Jun 2 10:24 controller.py
-rw-r--r-- 1 venomous venomous 3K Jun 3 18:42 controller.pyc
-rw-r--r-- 1 venomous venomous 1K Jun 2 07:56 model.py
-rw-r--r-- 1 venomous venomous 2K Jun 3 18:42 model.pyc
drwxr-xr-x 6 venomous venomous 204B Jun 3 19:00 plugins
-rw-r--r-- 1 venomous venomous 769B Jun 3 04:47 release.py
-rw-r--r-- 1 venomous venomous 787B Jun 3 18:42 release.pyc
-rw-r--r-- 1 venomous venomous 1K Jun 2 08:06 validator.py
-rw-r--r-- 1 venomous venomous 1K Jun 3 18:42 validator.pyc
-rw-r--r-- 1 venomous venomous 2K Jun 3 03:58 widgets.py
-rw-r--r-- 1 venomous venomous 3K Jun 3 18:42 widgets.pyc
and this id the error that get:

tg-admin update -t tgcaptcha
Traceback (most recent call last):
File "/usr/bin/tg-admin", line 8, in <module>
load_entry_point('TurboGears==1.0.2.2', 'console_scripts', 'tg-
admin')()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/
command/base.py", line 389, in main
command.run()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/
command/quickstart.py", line 272, in run
command.run(cmd_args)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/paste/script/
command.py", line 210, in run
result = self.command()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/paste/script/
create_distro.py", line 69, in command
self.extend_templates(templates, tmpl_name)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/paste/script/
create_distro.py", line 233, in extend_templates
tmpl = entry.load()(entry.name)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/setuptools-0.6c5-py2.5.egg/pkg_resources.py",
line 1830, in load
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PIL/__init__.py", line 4, in <module>
#
File "build/bdist.macosx-10.3-fat/egg/tgcaptcha/widgets.py", line 4,
in <module>
File "build/bdist.macosx-10.3-fat/egg/tgcaptcha/validator.py", line
10, in <module>
File "build/bdist.macosx-10.3-fat/egg/tgcaptcha/controller.py", line
27, in __init__
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/setuptools-0.6c5-py2.5.egg/pkg_resources.py",
line 1830, in load
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PIL/__init__.py", line 18, in <module>

File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/setuptools-0.6c5-py2.5.egg/pkg_resources.py",
line 800, in resource_filename
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/setuptools-0.6c5-py2.5.egg/pkg_resources.py",
line 1229, in get_resource_filename
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/setuptools-0.6c5-py2.5.egg/pkg_resources.py",
line 1240, in _extract_resource
KeyError: 'tgcaptcha/static/fonts/tuffy/Tuffy.ttf'

Patrick Lewis

unread,
Jun 3, 2007, 5:16:53 PM6/3/07
to TGCaptcha

Sorry about that. It's being included in the tar.gz file, so I'm not
sure why it isn't being installed as part of the egg. I don't have a
solution yet, but I wanted to let you know I am working on it.

venomous

unread,
Jun 3, 2007, 5:30:25 PM6/3/07
to TGCaptcha
No problem Patrick :)
I only want let you know that i have tried installing the packages
with both easy_install and source, and in both solution the static
folder is not included in the egg.
Good luck.

Patrick Lewis

unread,
Jun 3, 2007, 9:40:03 PM6/3/07
to TGCaptcha
On Jun 3, 5:30 pm, venomous <xxvenomou...@gmail.com> wrote:
> No problem Patrick :)
> I only want let you know that i have tried installing the packages
> with both easy_install and source, and in both solution the static
> folder is not included in the egg.
> Good luck.

Ok, I believe this should be fixed. Please do a

easy_install -U TGCaptcha

to get a new release that should include the missing font files. It's
working for me, so hopefully this does the trick...

venomous

unread,
Jun 3, 2007, 11:26:04 PM6/3/07
to TGCaptcha
Thanks Patrick, now works.
Hope to give you some good feedback for the development.
Reply all
Reply to author
Forward
0 new messages