Repository navigation
plotnine compilation issue in Python 3.7 #178
Description
Activity
- changed the title
[-]plotnine compilation problems in Python 3.7[/-][+]plotnine compilation issue in Python 3.7[/+]on Aug 19, 2018 I do not think this is a plotnine issue, plotnine is pure python. It should be one of the dependencies that has cython code. Try installing pandas first then plotnine.
@has2k1 Thanks for your answer. After some research and fiddling around I assume the issue is caused by the package pyproj, which is a dependency of geopandas, which is itself a dependency of plotnine. Any attempt to directly install pyproj fails because it probably uses old, precompiled cython files (see pyproj4/pyproj#136).
The simple solution is to install plotnine without further dependencies (i.e. pyproj) using the following command: pip install -U --no-deps plotnine
Reacted by John Hendy, Guilherme Leobas and realaeonThere is no hint of when
pyprojwill make a release that fixes issue. We are at their mercy.Matplotlib 3.0.0 will come out soon (the release candidates are up) and it is for Python 3.5 and above. A Plotnine release that also supports Python 3.5 and above has to come out before or soon after Matplotlib, but with the
pyprojblocker we have to make choices. So for the next release of Plotnine, on Python 3.7 only, it will install without thegeopandasrequirement (it pulls in pyproj) hencegeom_mapwill not work.Made the comment also in conda-forge/plotnine-feedstock#6: even without this pyproj / python 3.7 issue, I would personally advice against having
geopandasas a required dependency (at least at this moment; and I am the geopandas maintainer, so I am allowed to say this :-)).
You can still have it as an optional dependency of course, and give an informative error message when people trygeom_mapwithout having geopandas installed.The problem with geopandas is that it pulls in the complete gdal stack which is still, although it has improved a lot over the last years, often problematic to install.
@jorisvandenbossche, thank you for the advice, I will do as suggested.
- added 3 commits that reference this issue
on Sep 12, 2018
I am not sure about the following error that I get when trying to install plotnine in the environment of Python 3.7. Do I miss a pre-requirement or is this issue related with the one describe here, which caused by an old cython version that was used for the build?:
pandas-dev/pandas#21785
Thanks for any help. And keep up the great project, I am a happy user of plotnine for more than a year.