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.

Cannot run on Google Colab

See original GitHub issue

Describe the problem

Trying to work on a dataset that has 40+ features and more than 600,000+ data points, and wanted to work with modin for an efficient system to load data set, however, I work with my team on a shared Google Colab Jupyter Notebook, and am unable to install the same.
I tried simple pip install modin, but that didn’t work, so I tried, pip install modin[dask], that as well threw an error!

Source code / logs

ModuleNotFoundError Traceback (most recent call last) /usr/local/lib/python3.6/dist-packages/modin/init.py in get_execution_engine() 27 try: 28 import ray 29

ModuleNotFoundError: No module named ‘ray’

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last) 2 frames /usr/local/lib/python3.6/dist-packages/modin/init.py in get_execution_engine() 45 ): 46 raise ImportError( 47 “Please `pip install modin[dask] to install compatible Dask version.” 48 ) 49 else:

ImportError: Please `pip install modin[dask] to install compatible Dask version.

Installation Error

ERROR: google-colab 1.0.0 has requirement tornado~=4.5.0, but you’ll have tornado 6.0.3 which is incompatible. Installing collected packages: tornado, dask, distributed, modin Found existing installation: tornado 4.5.3 Uninstalling tornado-4.5.3: Successfully uninstalled tornado-4.5.3 Found existing installation: dask 1.1.5 Uninstalling dask-1.1.5: Successfully uninstalled dask-1.1.5 Found existing installation: distributed 1.25.3 Uninstalling distributed-1.25.3: Successfully uninstalled distributed-1.25.3 Successfully installed dask-2.8.0 distributed-2.8.0 modin-0.6.3 tornado-6.0.3 WARNING: Upgrading ipython, ipykernel, tornado, prompt-toolkit or pyzmq can cause your runtime to repeatedly crash or behave in unexpected ways and is not recommended. If your runtime won’t connect or execute code, you can reset it with “Reset all runtimes…” from the “Runtime” menu. WARNING: tornado > 4.5.0 is incompatible with ipykernel < 5.0 WARNING: The following packages were previously imported in this runtime: [tornado] Run “pip install -U ipykernel” before restarting to avoid repeated crashes.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pratikwatwanicommented, Dec 7, 2019

@devin-petersohn, @manesioz

I got it working with the solution @manesioz provided, however, it required me to make a multiple restart of my runtime, which is absolutely weird.

When I installed it initially, and restarted the runtime it still did not recognize the package, however after repeating the process again, I did a multiple restart which seemed to solve my problem.

I don’t know why I had to that though.

0reactions
devin-petersohncommented, Dec 8, 2019

Thanks @pratikwatwani, that is strange. I am glad it was sorted out, thanks for posting the resolution!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Google Colab for the Total Newbie
Working in Google Colab for the first time has been completely awesome and pretty shockingly easy, but it hasn't been without a couple...
Read more >
Why my google colab is not working for my Google Chrome
an internet connection problem : so check your internet connection first, or try opening other sites. · the notebook you are trying to...
Read more >
Can not run any of the cells in the notebook - Part 1 (2018)
Open new notebook. Ctrl+V to paste the copied cells. There was an error loading this notebook. Ensure that the file is accessible and...
Read more >
Local runtimes - Google Colab
Colaboratory lets you connect to a local runtime using Jupyter. This allows you to execute code on your local hardware and have access...
Read more >
Turn Google Colab on or off for users
Just turn the service on or off for those users in your Admin console. Users who have Google Colab turned on can access...
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