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.

[Bug] Unabel to pip install keplergl

See original GitHub issue

Describe the bug Failed to install keplergl.

To Reproduce Steps to reproduce the behavior:

  1. Start Anaconda Prompt
  2. Activate virtual env
  3. pip install keplergl
  4. See error
Collecting keplergl
  Using cached https://files.pythonhosted.org/packages/2f/a0/ea13a2cc4071fddc91a6ea530d0349e4b943a4a8839209a7facecee37db3/keplergl-0.2.1.tar.gz
Requirement already satisfied: ipywidgets<8,>=7.0.0 in c:\users\curtis\appdata\local\continuum\anaconda3\envs\tf2a\lib\site-packages (from keplergl) (7.5.1)
Collecting traittypes>=0.2.1 (from keplergl)
  Using cached https://files.pythonhosted.org/packages/9c/d1/8d5bd662703cc1764d986f6908a608777305946fa634d34c470cd4a1e729/traittypes-0.2.1-py2.py3-none-any.whl
Collecting geopandas>=0.5.0 (from keplergl)
  Using cached https://files.pythonhosted.org/packages/f7/a4/e66aafbefcbb717813bf3a355c8c4fc3ed04ea1dd7feb2920f2f4f868921/geopandas-0.8.1-py2.py3-none-any.whl
Requirement already satisfied: pandas>=0.23.0 in c:\users\curtis\appdata\local\continuum\anaconda3\envs\tf2a\lib\site-packages (from keplergl) (1.0.1)
Collecting Shapely>=1.6.4.post2 (from keplergl)
  Using cached https://files.pythonhosted.org/packages/0a/e2/1b7aba5ce9804998581efeab455d8a1a902f992f20d2e15dd4ab0a7db4db/Shapely-1.7.1-cp36-cp36m-win_amd64.whl
Requirement already satisfied: ipykernel>=4.5.1 in c:\users\curtis\appdata\local\continuum\anaconda3\envs\tf2a\lib\site-packages (from ipywidgets<8,>=7.0.0->keplergl) (5.3.4)
Requirement already satisfied: nbformat>=4.2.0 in c:\users\curtis\appdata\local\continuum\anaconda3\envs\tf2a\lib\site-packages (from ipywidgets<8,>=7.0.0->keplergl) (4.4.0)
Requirement already satisfied: widgetsnbextension~=3.5.0 in c:\users\curtis\appdata\local\continuum\anaconda3\envs\tf2a\lib\site-packages (from ipywidgets<8,>=7.0.0->keplergl) (3.5.1)
Requirement already satisfied: ipython>=4.0.0; python_version >= "3.3" in c:\users\curtis\appdata\local\continuum\anaconda3\envs\tf2a\lib\site-packages (from ipywidgets<8,>=7.0.0->keplergl) (7.16.1)
Requirement already satisfied: traitlets>=4.3.1 in c:\users\curtis\appdata\local\continuum\anaconda3\envs\tf2a\lib\site-packages (from ipywidgets<8,>=7.0.0->keplergl) (4.3.2)
Collecting fiona (from geopandas>=0.5.0->keplergl)
  Using cached https://files.pythonhosted.org/packages/88/62/69347ba2c41b526e1953c4cb66d51170b2869808863c03af202ba0121670/Fiona-1.8.17.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Curtis\AppData\Local\Temp\pip-install-qwrvdd7o\fiona\

Desktop (please complete the following information):

  • OS: Windows 10

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rezw4ncommented, Jan 25, 2021

I was wrong, I still have problems in running keplergl on OS X.

Have you tried installing Kepler.GL using a conda environment?

1reaction
rezw4ncommented, Oct 31, 2020

Hey there! I was able to produce this error on my conda environment. Apparently this is more of a Geopandas installation error. But good news is you can fix it easily! Follow these steps and it should fix your problem:

  • First make sure you’re in the correct environment in Anaconda. (Creating a new environment for your project is suggested but it should work in base environment as well)

  • Then open up the command prompt and install Geopandas using conda install geopandas command.

  • After that run pip install defusedxml and python3 -m pip install --upgrade Pillow on the same command prompt to make sure all the dependencies work as expected.

  • Finally install Kepler.Gl using pip install keplergl on the same conda environment.

Also I should mention that this method works perfectly for Jupyter Notebook and not Jupyter Lab. So I’d highly suggest you to use Kepler.GL on Jupyter Notebook because map won’t show up on Jupyter Lab and you need to troubleshoot and downgrade few dependencies to the correct version, install Kepler.GL extension, Node etc. for Kepler.GL to work.

This should fix all the errors. Hope this helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: Command errored out with exit status 1: python setup ...
Now the full response in my command prompt was: C:\WINDOWS\system32>pip install keplergl Collecting keplergl Downloading keplergl-0.1.2.tar.gz ( ...
Read more >
Cannot install KeplerGL [224823305] - Issue Tracker - Google
Try !pip install keplergl --user , as suggested by the error. This seemingly succeeds. Try to import keplergl with from keplergl import KeplerGl...
Read more >
keplergl - PyPI
This is a simple jupyter widget for kepler.gl, an advanced geospatial visualization tool, to render large-scale interactive maps. ... pip install keplergl
Read more >
Jupyter Notebook - kepler.gl
If you're on Mac, used pip install , and you're running Notebook 5.3 and ... FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap...
Read more >
pip install geopandas error | The AI Search Engine You Control
Describe the bug Failed to install keplergl. To Reproduce Steps to reproduce the behavior: Start Anaconda Prompt; Activate virtual env; pip install keplergl...
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