Strange import error with GeoIP

109 views
Skip to first unread message

Karim

unread,
Nov 18, 2013, 10:03:39 AM11/18/13
to Django Users
Hi all, I have one website that suddenly and often show me an import error.

Django Version: 1.5.5
Exception Type: ImportError
Exception Value
:
cannot import name GeoIP

The GeoIP works if I start a python manage.py shell and in fact the problem is not always present, it's enough for me reload the page and get the website working again, but after 3-4 clicks I got the ImportError error again.

The site in on apache/ubunt 13.04 on a digitalocean server. I worked in the same server in a virtualenv during the development, but when I deployed I got this strange error.

The GeoIP is called on a view that is triggered when a submit button is pressed than GeoIP isn't involved during the home page loading-

What I did until now:
  • Upgraded to django 1.5.5 (I used on the development the 1.5.1)
  • Deleted all .pyc
  • Check the module on the shell
  • Installed the geoip C libs
Anyone can help me to solve this problem? Thanks in advance

--
Karim Gorjux
Reply all
Reply to author
Forward
0 new messages