Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Commit

Permalink
Update check_env.py
Browse files Browse the repository at this point in the history
Removed some old checks and updated warnings
  • Loading branch information
cjqf committed Nov 16, 2014
1 parent 6a537ad commit 230cf79
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions check_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,14 @@

# Optional stuff
try:
import mpl_toolkits.basemap
import psycopg2
import mpl_toolkits.basemap
except ImportError, err:
print("Error: " + unicode(err))
print("This is not a required package.\n")
print("See Known Issues for additional information: "
"https://github.com/cfarmer/python_geospatial/blob/master/install.md#known-issues")

if len(w) > 0:
for i in w:
if "openpyxl" in unicode(i.message):
print("\nPandas is installed, but you might have a dependency issue. "
"To fix this, try the following:\n"
" $ pip install openpyxl\n"
" $ pip uninstall openpyxl\n"
" $ pip install openpyxl==1.8.6\n"
"See Known Issues for additional information: "
"https://github.com/cfarmer/python_geospatial/blob/master/install.md#known-issues")
print("This is not a required package. "
"See Known Issues for additional information:\n"
"https://github.com/carsonfarmer/python_geospatial/blob/master/"
"install.md#known-issues")
import sys
sys.exit(0)

Expand Down

0 comments on commit 230cf79

Please sign in to comment.