Skip to content

Commit 7a0ad41

Browse files
authored
Merge pull request #984 from plotly/better-geopandas-msg
Better pip install error msg for county choropleth
2 parents 0bde4e1 + 51cd9bc commit 7a0ad41

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [2.5.2] - UNRELEASED
6+
### Updated
7+
- error message for `plotly.figure_factory.create_choropleth` is more helpful for Windows users on installing `geopandas` and dependencies including `shapely`.
8+
59
## [2.5.1] - 2018-03-26
610
### Fixed
711
- `plotly.figure_factory.create_choropleth` now works in Windows without raising an OSError. The module now uses cross-platform path tools from `os` to manipulate and manage the shapefiles contained in this package.

plotly/figure_factory/_county_choropleth.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,14 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None,
563563
if not gp or not shapefile or not shapely:
564564
raise ImportError(
565565
"geopandas, pyshp and shapely must be installed for this figure "
566-
"factory.\n\nRun the following commands in the terminal to "
567-
"ensure that the correct versions of the modules are installed:\n"
566+
"factory.\n\nRun the following commands to install the correct "
567+
"versions of the following modules:\n\n"
568568
"`pip install geopandas==0.3.0`\n"
569569
"`pip install pyshp==1.2.10`\n"
570-
"`pip install shapely==1.6.3`\n"
570+
"`pip install shapely==1.6.3`\n\n"
571+
"If you are using Windows, follow this post to properly "
572+
"install geopandas and dependencies:"
573+
"http://geoffboeing.com/2014/09/using-geopandas-windows/"
571574
)
572575

573576
df, df_state = _create_us_counties_df(st_to_state_name_dict,

0 commit comments

Comments
 (0)