Azure Databricks - Installing folium

Gopinath Rajee 656 Reputation points
2022-03-27T17:04:33.223+00:00

All,

I download the wheel file for folium and upload into the workspace folder. I then started a cluster and tried to install this library but I'm seeing the below error. I'm seeing this error pretty much for all the packages that I'm trying to install. I should be doing something wrong. What am I doing wrong?

https://pypi.org/project/folium/#files

Thanks,
grajee

java.lang.RuntimeException: ManagedLibraryInstallFailed: org.apache.spark.SparkException: Process List(/databricks/python/bin/pip, install, --upgrade, --find-links=/local_disk0/spark-65a07424-367e-4abb-806f-e382ad354095/userFiles-6e5cd37f-d464-4861-93ee-217a8e468505, /local_disk0/spark-65a07424-367e-4abb-806f-e382ad354095/userFiles-6e5cd37f-d464-4861-93ee-217a8e468505/folium-0.12.1.post1-py2.py3-none-any.whl, --disable-pip-version-check) exited with code 1. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/branca/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/branca/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/branca/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/branca/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/branca/
ERROR: Could not find a version that satisfies the requirement branca>=0.3.0 (from folium)
ERROR: No matching distribution found for branca>=0.3.0
for library:PythonWhlId(dbfs:/FileStore/jars/9dc7bc0a_cb23_489f_b530_a3628f9ebd64/folium-0.12.1.post1-py2.py3-none-any.whl,,NONE),isSharedLibrary=false

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,517 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2022-03-28T06:40:29.973+00:00

    Hello @Gopinath Rajee ,

    Thanks for the question and using MS Q&A platform.

    This could be an intermittent issue. I would suggest you re-try again and check if that works.

    As per the repro from my end, I'm able to successfully install the library named folium from the pypi org.

    187411-adb-installfolium.gif

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.