The problem is that when you're installing it it's not in your PYTHONPATH[1].
In your directives for apache/mod_python make sure you add the path to the
recaptch-client package like you do your django project settings.
<Location />
...
PythonPath
"['/home/django/web/projects','/home/django/web/projects/myproject',
'/usr/local/lib/python2.6/site-packages', ]+sys.path"
...
</Location>
for ease I like using easy_install, below that is a simple test to see if it
is in your PYTHONPATH.
$ sudo easy_install recaptcha-client
[sudo] password for gufymike:
Searching for recaptcha-client
Best match: recaptcha-client 1.0.5
Processing recaptcha_client-1.0.5-py2.6.egg
recaptcha-client 1.0.5 is already the active version in easy-install.pth
Using /usr/lib/python2.6/site-packages/recaptcha_client-1.0.5-py2.6.egg
Processing dependencies for recaptcha-client
Finished processing dependencies for recaptcha-client
$ python -c 'from recaptcha.client import captcha'
$ python -c 'from recaptcha.client import captchas'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name captchas
First one shows it works, second one was to show what happens if it errors.
Mike
[1] http://docs.python.org/using/cmdline.html#envvar-PYTHONPATH
--
If all be true that I do think,
There be five reasons why one should drink;
Good friends, good wine, or being dry,
Or lest we should be by-and-by,
Or any other reason why.