Help from #django irc channel helped to fix it.

Did the following, everything is backup.
After every restart if you go and see you will see the missing module.
Delete it and reinstall it. It will get it resolved.

rm -rf /usr/lib/python2.4/site-packages/recaptcha_client-1.0.6-py2.4.egg
pip install recaptcha-client
service httpd restart
tail /var/log/httpd/error_log
pip install pytz
rm -rf /usr/lib/python2.4/site-packages/pytz-2011h-py2.4.egg
pip install pytz
service httpd restart
tail /var/log/httpd/error_log
pip install paramiko
rm -rf /usr/lib/python2.4/site-packages/paramiko-1.7.7.1-py2.4.egg
pip install paramiko
service httpd restart
tail /var/log/httpd/error_log
pip install Crypto
easy_install Crypto
pip install pycrypto
rm -rf /usr/lib/python2.4/site-packages/pycrypto-2.3-py2.4-linux-x86_64.egg
pip install pycrypto
service httpd restart

Hope it will be useful.


On Wed, Nov 2, 2011 at 1:34 PM, Kannaiyan Natesan <gbpnk...@gmail.com>wrote:

> Thanks Christian. Same issue still persists.
> Removed, installed recaptcha-client, restarted Apache and tried again.
> Is there a way to remove the recaptcha-client dependency? Since we are
> using it within the internal network.
>
> [root@BLCRMX0200 www]# rm -rf
> /usr/lib/python2.4/site-packages/recaptcha_client-1.0.6-py2.4.egg
> [root@BLCRMX0200 www]# easy_install recaptcha_client
> Searching for recaptcha-client
> Reading http://pypi.python.org/simple/recaptcha_client/
> Reading http://recaptcha.net
> Reading http://recaptcha.net/
> Best match: recaptcha-client 1.0.6
> Downloading
> http://pypi.python.org/packages/source/r/recaptcha-client/recaptcha-client-1.0.6.tar.gz#md5=74228180f7e1fb76c4d7089160b0d919
> Processing recaptcha-client-1.0.6.tar.gz
> Running recaptcha-client-1.0.6/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-JWEQw5/recaptcha-client-1.0.6/egg-dist-tmp-UNccjg
> zip_safe flag not set; analyzing archive contents...
> Adding recaptcha-client 1.0.6 to easy-install.pth file
>
> Installed /usr/lib/python2.4/site-packages/recaptcha_client-1.0.6-py2.4.egg
> Processing dependencies for recaptcha-client
> Finished processing dependencies for recaptcha-client
> [root@BLCRMX0200 www]# service httpd restart
> Stopping httpd:                                            [  OK  ]
> Starting httpd:                                             [  OK  ]
> [root@BLCRMX0200 www]# echo "" > /var/log/httpd/error_log
> [root@BLCRMX0200 www]# tail /var/log/httpd/error_log
>
> [root@BLCRMX0200 www]# tail /var/log/httpd/error_log
>
> [Wed Nov 02 12:31:29 2011] [error] [client 10.50.10.39] mod_wsgi
> (pid=7689): Exception occurred processing WSGI script
> '/var/www/html/htdocs/reviewboard.wsgi'.
> [Wed Nov 02 12:31:29 2011] [error] [client 10.50.10.39] Traceback (most
> recent call last):
> [Wed Nov 02 12:31:29 2011] [error] [client 10.50.10.39]   File
> "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/core/handlers/wsgi.py",
> line 250, in __call__
> [Wed Nov 02 12:31:29 2011] [error] [client 10.50.10.39]
> self.load_middleware()
> [Wed Nov 02 12:31:29 2011] [error] [client 10.50.10.39]   File
> "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/core/handlers/base.py",
> line 47, in load_middleware
> [Wed Nov 02 12:31:29 2011] [error] [client 10.50.10.39]     raise
> exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' %
> (mw_module, e))
> [Wed Nov 02 12:31:29 2011] [error] [client 10.50.10.39]
> ImproperlyConfigured: Error importing middleware
> reviewboard.admin.middleware: "No module named recaptcha.client"
>
>
>
> On Wed, Nov 2, 2011 at 1:20 PM, Christian Hammond <chip...@chipx86.com>wrote:
>
>> Hi,
>>
>> Unfortunately I have no idea why you're seeing that. Maybe try removing
>> the installed recaptcha_client package and reinstall?
>>
>> You'll need to then restart Apache.
>>
>> Christian
>>
>>
>>
>> On Wednesday, November 2, 2011, Kannaiyan Natesan <gbpnk...@gmail.com>
>> wrote:
>> > Even tried importing on command line,
>> >
>> > [root@BLCRMX0200 www]# python
>> > import Python 2.4.3 (#1, May  5 2011, 16:39:10)
>> > [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
>> > Type "help", "copyright", "credits" or "license" for more information.
>> >>>> import recaptcha.client
>> >>>>
>> >
>> > works fine.
>> >
>> > May someone please help what is missing?
>> >
>> > Thanks,
>> > Kannaiyan
>> >
>> > On Wed, Nov 2, 2011 at 12:16 PM, Kannaiyan Natesan <gbpnk...@gmail.com>
>> wrote:
>> >>
>> >> when I see Apache error log,
>> >>
>> >> ImproperlyConfigured: Error importing middleware
>> reviewboard.admin.middleware: "No module named recaptcha.client"
>> >>
>> >> I can see recaptcha.client is installed.
>> >>
>> >> [root@BLCRMX0200 www]# ls /usr/lib/python2.4/site-packages/
>> >> atom
>> easy_install.pyo
>> pycrypto-2.3-py2.4-linux-x86_64.egg  setuptools-0.6c12dev_r88846-py2.4.egg
>> >> Django-1.3.1-py2.4.egg
>> elementtree
>> Pygments-1.4-py2.4.egg               setuptools-0.6c5-py2.4.egg-info
>> >> Django-1.3-py2.4.egg
>> flup-1.0.3.dev_20110405-py2.4.egg
>> python_dateutil-1.5-py2.4.egg        setuptools.pth
>> >> django_evolution-0.6.4-py2.4.egg
>> gdata
>> python_memcached-1.47-py2.4.egg      site.py
>> >> django_evolution-0.6.5-py2.4.egg
>> iniparse
>> pytz-2011h-py2.4.egg                 site.pyc
>> >> Djblets-0.6.10-py2.4.egg
>> mercurial-1.9.1-py2.4-linux-x86_64.egg
>> recaptcha_client-1.0.6-py2.4.egg     site.pyo
>> >> Djblets-0.6.11-py2.4.egg
>> MySQL_python-1.2.3-py2.4-linux-x86_64.egg
>> ReviewBoard-1.5.5-py2.4.egg          sos
>> >> Djblets-0.6.9-py2.4.egg
>> paramiko-1.7.7.1-py2.4.egg
>> ReviewBoard-1.5.6-py2.4.egg          urlgrabber
>> >> dogtail
>> PIL-1.1.7-py2.4-linux-x86_64.egg
>> ReviewBoard-1.6.1-py2.4.egg          yum
>> >> easy-install.pth
>> pkg_resources.py                           ReviewBoard-1.6-py2.4.egg
>> >> easy_install.py
>> pkg_resources.pyc                          rpmUtils
>> >> easy_install.pyc
>> pkg_resources.pyo                          setuptools
>> >>
>> >>
>> >> Just made a reboot on a working machine. Something got missed out on
>> reboot.
>> >>
>> >> Thanks,
>> >> Kannaiyan
>> >>
>> >> --
>> >> +1-650-605-3290
>> >> The best things in life are free
>> >>
>> >
>> >
>> >
>> > --
>> > +1-650-605-3290
>> > The best things in life are free
>> >
>> > --
>> > Want to help the Review Board project? Donate today at
>> http://www.reviewboard.org/donate/
>> > Happy user? Let us know at http://www.reviewboard.org/users/
>> > -~----------~----~----~----~------~----~------~--~---
>> > To unsubscribe from this group, send email to
>> reviewboard+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> http://groups.google.com/group/reviewboard?hl=en
>>
>> --
>> --
>> Christian Hammond - chip...@chipx86.com
>> Review Board - http://www.reviewboard.org
>> VMware, Inc. - http://www.vmware.com
>>
>> --
>> Want to help the Review Board project? Donate today at
>> http://www.reviewboard.org/donate/
>> Happy user? Let us know at http://www.reviewboard.org/users/
>> -~----------~----~----~----~------~----~------~--~---
>> To unsubscribe from this group, send email to
>> reviewboard+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/reviewboard?hl=en
>
>
>
>
> --
> +1-650-605-3290
> The best things in life are free
>
>


-- 
+1-650-605-3290
The best things in life are free

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to