Reinstalling with easy_install did not fix it.

One person from #django room recommened to use pip to get things done
correctly. I'm sure easy_install misses some of the entries that pip does.

Did, easy_install pip

and did all the reinstall with pip.

I did rebooted the machine now and checked it. It works fine even after
rebooting.

Thanks,
Kannaiyan

On Fri, Nov 4, 2011 at 12:12 PM, Christian Hammond <chip...@chipx86.com>wrote:

> Hmm, trying to figure out how that's different from what was recommended
> before and why it only worked now.
>
> If this is breaking on every restart, there's something very wrong with
> your server. That should never happen. Consider it a red flag and do some
> investigating.
>
> Christian
>
>
>
> On Friday, November 4, 2011, Kannaiyan Natesan <gbpnk...@gmail.com> wrote:
> > 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 middl
>
> --
> --
> 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

-- 
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