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.

Autogluon problem with installation on google colab

See original GitHub issue

A couple days ago, there was no problem with installation and runnig autogluon on google colab. Just:

!pip install mxnet
!pip install autogluon

pressing RESTART, then

import autogluon as ag
from autogluon import TabularPrediction as task

worked perfecly fine and also autogluon. Now, it gives:

ImportError                               Traceback (most recent call last)
<ipython-input-2-abcfbdba9294> in <module>()
      1 import autogluon as ag
----> 2 from autogluon import TabularPrediction as task

ImportError: cannot import name 'TabularPrediction'

Also I’ve tried:

from autogluon.tabular import TabularPrediction as task

but it gives:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-b7ca0a5016da> in <module>()
----> 1 from autogluon.tabular import TabularPrediction as task

ModuleNotFoundError: No module named 'autogluon.tabular'

Installation traceback:

Collecting pycodestyle<2.7.0,>=2.6.0a1
  Downloading https://files.pythonhosted.org/packages/10/5b/88879fb861ab79aef45c7e199cae3ef7af487b5603dcb363517a50602dd7/pycodestyle-2.6.0-py2.py3-none-any.whl (41kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 51kB 5.9MB/s 
Collecting mccabe<0.7.0,>=0.6.0
  Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Requirement already satisfied: heapdict in /usr/local/lib/python3.6/dist-packages (from zict>=0.1.3->distributed>=2.6.0->autogluon) (1.0.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.6/dist-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.8->autogluon) (2.20)
Requirement already satisfied: future>=0.15.2 in /usr/local/lib/python3.6/dist-packages (from autograd>=1.3->autogluon.core->gluoncv<1.0,>=0.5.0->autogluon) (0.16.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/dist-packages (from importlib-metadata; python_version < "3.8"->flake8->autogluon-contrib-nlp->autogluon) (3.4.0)
Building wheels for collected packages: ConfigSpace, fastparquet, openml, typing, thrift, contextvars, sacremoses, liac-arff
  Building wheel for ConfigSpace (setup.py) ... done
  Created wheel for ConfigSpace: filename=ConfigSpace-0.4.10-cp36-cp36m-linux_x86_64.whl size=2712277 sha256=257cd62a01722eab10b1b19a9aca220e3f7e1ed2e54b3a310ce0a8436a1381e3
  Stored in directory: /root/.cache/pip/wheels/75/83/cb/28dd42bac69c8867d485138030daa83841c7f84afe68b2fdf7
  Building wheel for fastparquet (setup.py) ... done
  Created wheel for fastparquet: filename=fastparquet-0.4.1-cp36-cp36m-linux_x86_64.whl size=7125479 sha256=2f662b64e9ac089fa0df3039c008f0d252fb34a92c24ad2b2bab5fb8e727c336
  Stored in directory: /root/.cache/pip/wheels/10/45/cf/492ccb908adde1dd2551bb509a56e4096cce9487167f525120
  Building wheel for openml (setup.py) ... done
  Created wheel for openml: filename=openml-0.11.0-cp36-none-any.whl size=127467 sha256=4cb59243db36559d3ddd14730a2aa45d0fdf553c990062eb082602b0c97964dd
  Stored in directory: /root/.cache/pip/wheels/fb/29/f1/58115101bafad19069e838060ab6bdd8046abceba508500e03
  Building wheel for typing (setup.py) ... done
  Created wheel for typing: filename=typing-3.7.4.3-cp36-none-any.whl size=26307 sha256=8f8bb203fccdd69d5eb923202054244ca5a575f19de69bd979b42da9435504a9
  Stored in directory: /root/.cache/pip/wheels/2d/04/41/8e1836e79581989c22eebac3f4e70aaac9af07b0908da173be
  Building wheel for thrift (setup.py) ... done
  Created wheel for thrift: filename=thrift-0.13.0-cp36-cp36m-linux_x86_64.whl size=345213 sha256=94e0b0da85074662363af6bb358f22f591bef2cfb59fb525084727901fd0db4d
  Stored in directory: /root/.cache/pip/wheels/02/a2/46/689ccfcf40155c23edc7cdbd9de488611c8fdf49ff34b1706e
  Building wheel for contextvars (setup.py) ... done
  Created wheel for contextvars: filename=contextvars-2.4-cp36-none-any.whl size=7666 sha256=e6b972c80f043a02a06b7bac808f924fb6b77691322796902af7509b651e0cb4
  Stored in directory: /root/.cache/pip/wheels/a5/7d/68/1ebae2668bda2228686e3c1cf16f2c2384cea6e9334ad5f6de
  Building wheel for sacremoses (setup.py) ... done
  Created wheel for sacremoses: filename=sacremoses-0.0.43-cp36-none-any.whl size=893257 sha256=326d1c45682b17410113ba70b3d07069a9fa57d021847d9bcb46b36be75c02c5
  Stored in directory: /root/.cache/pip/wheels/29/3c/fd/7ce5c3f0666dab31a50123635e6fb5e19ceb42ce38d4e58f45
  Building wheel for liac-arff (setup.py) ... done
  Created wheel for liac-arff: filename=liac_arff-2.5.0-cp36-none-any.whl size=11734 sha256=46d2a17ab302205e4d2251f4cc2f26b9ac48293367df61a8ed0a82901b7d62e5
  Stored in directory: /root/.cache/pip/wheels/77/8d/b4/8bfce5beea9a3496cc15b24961876adb7b6e2912ff09164179
Successfully built ConfigSpace fastparquet openml typing thrift contextvars sacremoses liac-arff
ERROR: tensorflow-probability 0.11.0 has requirement cloudpickle==1.3, but you'll have cloudpickle 1.6.0 which is incompatible.
ERROR: albumentations 0.1.12 has requirement imgaug<0.2.7,>=0.2.5, but you'll have imgaug 0.2.9 which is incompatible.
ERROR: botocore 1.19.29 has requirement urllib3<1.27,>=1.25.4; python_version != "3.4", but you'll have urllib3 1.24.3 which is incompatible.
Installing collected packages: catboost, pynacl, bcrypt, cryptography, paramiko, pyaml, scikit-optimize, jmespath, botocore, s3transfer, boto3, immutables, contextvars, cloudpickle, distributed, typing, ConfigSpace, autogluon.core, decord, autocfg, Pillow, tensorboardx, yacs, portalocker, gluoncv, thrift, fastparquet, tokenizers, sacremoses, sacrebleu, sentencepiece, pyflakes, pycodestyle, mccabe, flake8, autogluon-contrib-nlp, lightgbm, liac-arff, xmltodict, openml, autogluon
  Found existing installation: cloudpickle 1.3.0
    Uninstalling cloudpickle-1.3.0:
      Successfully uninstalled cloudpickle-1.3.0
  Found existing installation: distributed 1.25.3
    Uninstalling distributed-1.25.3:
      Successfully uninstalled distributed-1.25.3
  Found existing installation: Pillow 7.0.0
    Uninstalling Pillow-7.0.0:
      Successfully uninstalled Pillow-7.0.0
  Found existing installation: lightgbm 2.2.3
    Uninstalling lightgbm-2.2.3:
      Successfully uninstalled lightgbm-2.2.3
Successfully installed ConfigSpace-0.4.10 Pillow-6.2.1 autocfg-0.0.6 autogluon-0.0.14 autogluon-contrib-nlp-0.0.1b20201009 autogluon.core-0.0.15b20201204 bcrypt-3.2.0 boto3-1.16.29 botocore-1.19.29 catboost-0.24.3 cloudpickle-1.6.0 contextvars-2.4 cryptography-3.2.1 decord-0.4.2 distributed-2.30.1 fastparquet-0.4.1 flake8-3.8.4 gluoncv-0.9.0 immutables-0.14 jmespath-0.10.0 liac-arff-2.5.0 lightgbm-3.1.0 mccabe-0.6.1 openml-0.11.0 paramiko-2.7.2 portalocker-2.0.0 pyaml-20.4.0 pycodestyle-2.6.0 pyflakes-2.2.0 pynacl-1.4.0 s3transfer-0.3.3 sacrebleu-1.4.14 sacremoses-0.0.43 scikit-optimize-0.8.1 sentencepiece-0.1.94 tensorboardx-2.1 thrift-0.13.0 tokenizers-0.8.1 typing-3.7.4.3 xmltodict-0.12.0 yacs-0.1.8
WARNING: The following packages were previously imported in this runtime:
  [PIL,typing]
You must restart the runtime in order to use newly installed versions.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
Innixmacommented, Dec 14, 2020

In case anyone is interested, I have recently successfully ran two Google Colab notebooks with AutoGluon:

v0.0.15: https://colab.research.google.com/drive/1ULOytrRHcw4GLl0qWgGnxUpr9zVQVYlr?usp=sharing

Pre-release v0.0.16b20201214: https://colab.research.google.com/drive/1p4abW16g2XpXH9Ax8Y5rcpnbx0vQDvrn?usp=sharing

1reaction
Innixmacommented, Dec 8, 2020

This issue has been fixed with the release of v0.0.15. Please install the new version from a fresh environment to avoid any corruptions from prior installs. v0.0.15 should work identically to v0.0.14 minus the installation issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autogluon problem with installation on google colab #810
One potential fix would be from a fresh environment to try installing mxnet and then pip install --pre autogluon along with from autogluon....
Read more >
AutoGluon.ipynb - Colaboratory
The GitHub API is responding with a rate limit exceeded error. Authorize Colaboratory to use the GitHub API to get a higher limit....
Read more >
AutoGluon: AutoML for Text, Image, Time Series, and Tabular ...
For troubleshooting the installation process, you can check the ... How to solve problems that contain Image, Text, and Tabular features at the...
Read more >
A Quickstart Guide to Auto-Sklearn (AutoML) For Machine ...
Google. Source. No. AutoGluon ... auto-sklearn is based on defining AutoML as a CASH problem. ... Install auto-sklearn on your machine or Google...
Read more >
Cannot import TabularPrediction from AutoGluon
This happens when AutoGluon is installed via a notebook or as a cluster-installed library (AWS | Azure | GCP). You can reproduce the...
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