holoviz / geoviews

Simple, concise geographical visualization in Python
http://geoviews.org
BSD 3-Clause "New" or "Revised" License
584 stars 75 forks source link

Python 3.6 installation issues related to geoviews, holoviews, datashader stack #47

Closed PeterDSteinberg closed 7 years ago

PeterDSteinberg commented 7 years ago

I attempted to make a Python 3.6 environment inclusive of datashader, holoviews, geoviews, and related dependencies. Here are the commands I ran:

conda create --name ds36 python=3.6
source activate ds36
conda install -c ioam/label/dev holoviews
conda install datashader
cd $C/datashader
python setup.py develop
conda install -c ioam paramnb
conda install -c scitools/label/dev -c conda-forge iris cartopy
conda install xarray
conda install -c conda-forge -c ioam holoviews>=1.6.2 geoviews

On the last line of that sequence of commands, I got the following error:

UnsatisfiableError: The following specifications were found to be in conflict:
  - geoviews -> python 2.7*
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package.

Here's the ds36 at the time of that final failure:

appnope                   0.1.0                    py36_0
biggus                    0.15.0                   py36_0    conda-forge
bleach                    1.5.0                    py36_0
bokeh                     0.12.4                   py36_0
cartopy                   0.15.0              np112py36_0    conda-forge
cf_units                  1.1.3                    py36_1    conda-forge
chest                     0.2.3                    py36_0
cloudpickle               0.2.2                    py36_0
curl                      7.52.1                        0    conda-forge
cycler                    0.10.0                   py36_0
dask                      0.14.0                   py36_0
datashader                0.4.0                    py36_0
datashape                 0.5.4                    py36_0
decorator                 4.0.11                   py36_0
entrypoints               0.2.2                    py36_1
expat                     2.1.0                         2    conda-forge
freetype                  2.7                           1    conda-forge
geos                      3.5.1                         1    conda-forge
hdf4                      4.2.12                        0    conda-forge
hdf5                      1.8.17                        9    conda-forge
heapdict                  1.0.0                    py36_1
holoviews                 1.7dev6                  py36_0    ioam/label/dev
html5lib                  0.999                    py36_0
icu                       54.1                          0
ipykernel                 4.5.2                    py36_0
ipython                   5.3.0                    py36_0
ipython_genutils          0.1.0                    py36_0
ipywidgets                5.2.2                    py36_1
iris                      1.12.0                   py36_1    conda-forge
jbig                      2.1                           0
jinja2                    2.9.5                    py36_0
jpeg                      9b                            0
jsonschema                2.5.1                    py36_0
jupyter                   1.0.0                    py36_3
jupyter_client            5.0.0                    py36_0
jupyter_console           5.1.0                    py36_0
jupyter_core              4.3.0                    py36_0
libgfortran               3.0.0                         0    conda-forge
libiconv                  1.14                          4    conda-forge
libmo_unpack              3.0                           1    conda-forge
libnetcdf                 4.4.1.1                       2    conda-forge
libpng                    1.6.28                        0    conda-forge
libtiff                   4.0.6                         3
libxml2                   2.9.4                         0
libxslt                   1.1.29                        3    conda-forge
llvmlite                  0.16.0                   py36_0
locket                    0.2.0                    py36_1
lxml                      3.7.2                    py36_1    conda-forge
markupsafe                0.23                     py36_2
matplotlib                1.5.3               np112py36_7    conda-forge
mistune                   0.7.3                    py36_1
mkl                       2017.0.1                      0
mo_pack                   0.2.0               np112py36_0    conda-forge
multipledispatch          0.4.9                    py36_0
nbconvert                 5.1.1                    py36_0
nbformat                  4.3.0                    py36_0
nc_time_axis              1.0.1                    py36_0    conda-forge
netcdf4                   1.2.4               np112py36_3    conda-forge
networkx                  1.11                     py36_0
notebook                  4.3.1                    py36_0
numba                     0.31.0              np112py36_0
numpy                     1.12.0                   py36_0
odo                       0.5.0                    py36_1
olefile                   0.44                     py36_0
openssl                   1.0.2k                        0
owslib                    0.14.0                   py36_0    conda-forge
pandas                    0.19.2              np112py36_1
pandocfilters             1.4.1                    py36_0
param                     1.5.0                    py36_0    ioam
paramnb                   2.0.1                    py36_0    ioam
partd                     0.3.7                    py36_0
path.py                   10.1                     py36_0
pexpect                   4.2.1                    py36_0
pickleshare               0.7.4                    py36_0
pillow                    4.0.0                    py36_2    conda-forge
pip                       9.0.1                    py36_1
proj4                     4.9.3                         2    conda-forge
prompt_toolkit            1.0.9                    py36_0
ptyprocess                0.5.1                    py36_0
pyepsg                    0.3.1                    py36_0    conda-forge
pygments                  2.2.0                    py36_0
pyke                      1.1.1                    py36_0    conda-forge
pyparsing                 2.1.4                    py36_0
pyproj                    1.9.5.1                  py36_0    conda-forge
pyqt                      5.6.0                    py36_2
pyshp                     1.2.10                   py36_0    conda-forge
python                    3.6.0                         0
python-dateutil           2.6.0                    py36_0
pytz                      2016.10                  py36_0
pyyaml                    3.12                     py36_0
pyzmq                     16.0.2                   py36_0
qt                        5.6.2                         0
qtconsole                 4.2.1                    py36_1
readline                  6.2                           2
requests                  2.13.0                   py36_0
scipy                     0.18.1              np112py36_1
setuptools                27.2.0                   py36_0
shapely                   1.5.17              np112py36_2    conda-forge
simplegeneric             0.8.1                    py36_1
sip                       4.18                     py36_0
six                       1.10.0                   py36_0
sqlite                    3.13.0                        0
terminado                 0.6                      py36_0
testpath                  0.3                      py36_0
tk                        8.5.18                        0
toolz                     0.8.2                    py36_0
tornado                   4.4.2                    py36_0
traitlets                 4.3.2                    py36_0
udunits2                  2.2.23                        0    conda-forge
wcwidth                   0.1.7                    py36_0
wheel                     0.29.0                   py36_0
widgetsnbextension        1.2.6                    py36_0
xarray                    0.9.1                    py36_0
xz                        5.2.2                         1
yaml                      0.1.6                         0
zlib                      1.2.8                         3

I ran a similar sequence of commands for Python 2.7, 3.4, and 3.5 and the commands ran okay (I'm still now checking in those other Pythons envs if those envs actually work).

philippjfr commented 7 years ago

Thanks for reporting this, looks like I haven't built geoviews for python 3.6 yet. I'll try to get a release up asap.

philippjfr commented 7 years ago

I've just uploaded py3.6 packages to the ioam channel. For a fresh install I'd recommend:

conda create --name ds36 python=3.6
source activate ds36
conda install datashader
conda install -c ioam -c conda-forge paramnb geoviews
conda install -c ioam/label/dev holoviews
Deusami commented 5 years ago

philippjfr, please update anaconda directions page...

philippjfr commented 5 years ago

philippjfr, please update anaconda directions page...

Which directions page are you referring to specifically? The instructions above are very outdated at this point.

Deusami commented 5 years ago

no kidding.

https://anaconda.org/ioam/geoviews or https://anaconda.org/anaconda/datashader

or both...

as a newbie that's trying to get grad school homework done when the professor requested datashader (kudos to you...), one could get a little frustrated.

Cool tool set. Not quite sure how it's going to do all it says it will do with the sparseness of the code, but I'm game.

Deusami commented 5 years ago

The instructions above are more updated than the instructions on the anaconda pages (which ultimately don't work)

philippjfr commented 5 years ago

Sorry to hear you had a nightmare installing the packages. We have switched from the ioam channel to the pyviz channel at this point so those will give you the latest versions. This should be all you need:

conda install -c pyviz holoviews geoviews datashader
Deusami commented 5 years ago

LEt me try that...geoviews is still not loading.

Deusami commented 5 years ago

Nope.

(base) C:\Users\User>conda install -c pyviz holoviews geoviews datashader Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:

Deusami commented 5 years ago

uninstall geoviews and try again?

Deusami commented 5 years ago

C:\Users\User\Anaconda3\pkgs\geoviews-1.4.3-py36_0 is the folder

ceball commented 5 years ago

I think the current installation instructions are at http://geoviews.org/#installation (where it says to conda install -c pyviz geoviews).

What version of conda do you have? (Could you report the output of conda info)

ceball commented 5 years ago

Oh, I see you are asking not only about geoviews, but also other packages. Your best bet might be to try pyviz (http://pyviz.org/installation.html), which is where we are trying to document how to use various packages together (including geoviews and datashader). If that still doesn't work for you, please feel free to open a new issue there...

philippjfr commented 5 years ago

I suspect this is indeed down to an old version of conda.

Deusami commented 5 years ago

conda version : 4.5.11 conda-build version : 3.10.5 python version : 3.6.5.final.0

Shouldn't be that old--only installed it a few weeks ago. (still learning...) I'm trying to use them together as you suspected, but the only one I get errors with is geoviews. I tried installing from pyviz and it gave the error from above.

jbednar commented 5 years ago

I'm using 4.5.2 with no problems, but I'm not on Windows...

ceball commented 5 years ago

On windows 7 64 bits I just followed the instructions at http://pyviz.org/installation.html with no problem (except I had to type conda activate rather than source activate).

I.e. I updated conda (to 4.5.11, as you have), I created a new environment, and then I installed pyviz into it (pyviz includes geoviews, datashader, holoviews).

Would you be able to try the same?

If that works, we can then debug the current problem you're having.

If that doesn't work, please report the whole output from conda info, and - if possible - the whole of the output from the step that's failing for you (presumably the install step).

ceball commented 5 years ago

I just followed the instructions at http://pyviz.org/installation.html with no problem

(Although it took over 30 minutes for the installation to complete for me, and there were a couple of scary looking messages about menu shortcuts - but just informational/harmless, as far as I can tell.)

ceball commented 5 years ago

Incidentally I also tried creating a python 2.7 environment and then running conda install -c pyviz holoviews geoviews datashader into it, which also worked.

Deusami commented 5 years ago

Maybe later today…

If I can get James’ solution to work, I should probably put it off for a week or two—midterms…

From: Chris B notifications@github.com Sent: Thursday, September 27, 2018 7:54 AM To: pyviz/geoviews geoviews@noreply.github.com Cc: Patricia Tice ptice@Knights.ucf.edu; Comment comment@noreply.github.com Subject: Re: [pyviz/geoviews] Python 3.6 installation issues related to geoviews, holoviews, datashader stack (#47)

On windows 7 64 bits I just followed the instructions at http://pyviz.org/installation.htmlhttps://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpyviz.org%2Finstallation.html&data=02%7C01%7Cptice%40knights.ucf.edu%7C7df7a620a5924d2c17f708d6246fe3f1%7C5b16e18278b3412c919668342689eeb7%7C0%7C0%7C636736460326471858&sdata=NiUF8FP1gh%2FiCpMx7oyUxkncE8%2BDjkPwdq81d6J11hc%3D&reserved=0 with no problem (except I had to type conda activate rather than source activate).

I.e. I updated conda (to 4.5.11, as you have), I created a new environment, and then I installed pyviz into it (pyviz includes geoviews, datashader, holoviews).

Would you be able to try the same?

If that works, we can then debug the current problem you're having.

If that doesn't work, please report the whole output from conda info, and - if possible - the whole of the output from the step that's failing for you (presumably the install step).

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpyviz%2Fgeoviews%2Fissues%2F47%23issuecomment-425061925&data=02%7C01%7Cptice%40knights.ucf.edu%7C7df7a620a5924d2c17f708d6246fe3f1%7C5b16e18278b3412c919668342689eeb7%7C0%7C0%7C636736460326471858&sdata=Ri3Y%2B7UpPafaeQqQIK9wF1qs7xIpXl9YiiZ7k9ReCe8%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAomreyTWXXlMkbuRi-oVbmTJlIrDJatZks5ufLxLgaJpZM4MRVRK&data=02%7C01%7Cptice%40knights.ucf.edu%7C7df7a620a5924d2c17f708d6246fe3f1%7C5b16e18278b3412c919668342689eeb7%7C0%7C0%7C636736460326471858&sdata=hPpZG4c%2F0FQp2FyfH81nwmn%2FXjNgOQfC%2FgCViSyzKx0%3D&reserved=0.