troubleshooting Question

How do I know if Geopy is installed correctly

Avatar of jsgambel
jsgambel asked on
ProgrammingPython
1 Comment1 Solution1844 ViewsLast Modified:
Hi all - I'm having trouble with a python web view. The error message is: "Could not import <appname>.views. Error was: No module named geopy.distance"

I'm obviously trying to import geopy. I think I have it installed correctly but I don't know how to tell for sure.

I installed it using easy-install. This is the tail of the log after installation.
#***************
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
Installing easy_install.exe.manifest script to C:\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\Python27\Scripts
Installing easy_install-2.7.exe script to C:\Python27\Scripts
Installing easy_install-2.7.exe.manifest script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
Processing geopy-0.93-py2.7.egg
Copying geopy-0.93-py2.7.egg to c:\python27\lib\site-packages
Adding geopy 0.93 to easy-install.pth file

Installed c:\python27\lib\site-packages\geopy-0.93-py2.7.egg
Processing dependencies for geopy==0.93
Finished processing dependencies for geopy==0.93
#***************

There is a geopy.egg file in my Python/Lib/site-packages directory. Any suggestions on how to troubleshoot this? I have python and python\scripts in my path, though I don't think the path is the problem. At a loss as to why it can't import.

Python 2.7
geopy 0.93
Django 1.3
Windows 7

TIA -
Joe
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros