Link to home
Start Free TrialLog in
Avatar of jsgambel

asked on

How do I know if Geopy is installed correctly

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

Avatar of jsgambel

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial