question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trouble creating conda envs with geoviews=1.8.1

See original GitHub issue

Since the recent upgrade to Holoviews=1.13.1, Geoviews=1.8…1 and Bokeh=2.0.0, I have frequent trouble to create and pinning envs with these packages.

The following somehow works:

conda install -c pyviz -c conda-forge geopandas fiona jupyterlab geoviews holoviews nbconvert descartes numpy mapclassify bokeh jupyter_contrib_nbextensions

but it will install Geoviews 1.6.6 and pyproj=2.6.0.

This also doesn’t work:

conda install -c pyviz -c conda-forge geopandas fiona jupyterlab "geoviews=1.8.1" holoviews nbconvert descartes numpy mapclassify bokeh jupyter_contrib_nbextensions

It will install pyproj=1.9.6, it also falls back to flexible solve and takes really long.

I was wondering if there’s an explanation for this behavior? How can I pin geoviews to 1.8.1 from the pyviz channel?

When using -c pyviz/label/dev, conda also falls back to flexible solve. The results seem to change pretty much every day.

I’ve tried with fewer packages, but still - solving the environment takes very long and it almost always falls back to flexible solve (my env is set to strict).

Here’s the complete order of steps to reproduce:

conda create -n geoviews_env python=3.7 -c pyviz -c conda-forge
conda activate geoviews_env 
conda config --env --set channel_priority strict
conda config --show channel_priority # verify
conda install -c pyviz -c conda-forge geopandas fiona jupyterlab geoviews holoviews nbconvert descartes numpy mapclassify bokeh jupyter_contrib_nbextensions

The documentation is very short when it comes to installation instructions, but I often encounter problems like these. Ideally, I want to provide a guide to the readers of my notebooks so that they can re-create an env that will be guaranteed compatible to the code in the Notebook.

  • running conda 4.8.3 in Linux (WSL)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Apr 1, 2020

You should be able to drop pyviz entirely.

By the way, I never experienced any problems with proj4>6 (e.g. proj_create_from database: Cannot find proj.db) with conda and WSL (Ubuntu)

That’s not the only problem, certain projection operations return downright wrong results when combined with cartopy=0.17.

1reaction
philippjfrcommented, Apr 1, 2020

@Sieboldianus Try inverting the channels in that command, the conda-forge version does not pin proj in the same way as the pyviz channel version as I indicated above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

no dependencies listed in conda env export #8839
I got this problem when I try conda create -n temp conda install conda conda install python=3.8. you can find another envs folder, ......
Read more >
Problem creating conda environment
I am trying to setup conda environment in pycharm, but it gets stuck at "creating conda environment" after pressing "create". Any idea what...
Read more >
Troubleshooting
Solution. Run the command conda install -f to unarchive the package again and relink it. It also does an MD5 verification on the...
Read more >
conda-forge
A software package for algebraic, geometric and combinatorial problems... 7za, 9.20, LGPL, X, A file archiver with a high compression ratio. 7zip, 19.00 ......
Read more >
conda fails to create environment from yml - python
Is this problem caused because I have several packages that I had to install using pip instead of Anaconda? Does anyone know how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found