pytorch-widedeep icon indicating copy to clipboard operation
pytorch-widedeep copied to clipboard

Can not use on Google Colab or Kaggle

Open htdung167 opened this issue 9 months ago • 3 comments

I install pytorch-widedeep with "!pip install pytorch-widedeep"

When it comes to training the model, the program is restarted (including Google Colab and Kaggle).

import pytorch_widedeep, i got this warning:

  • On Colab: /content/pytorch-widedeep/pytorch_widedeep/datasets/_base.py:49: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice. with resources.path( :1047: ImportWarning: _PyDrive2ImportHook.find_spec() not found; falling back to find_module() :1047: ImportWarning: _PyDriveImportHook.find_spec() not found; falling back to find_module() :1047: ImportWarning: _GenerativeAIImportHook.find_spec() not found; falling back to find_module() :1047: ImportWarning: _OpenCVImportHook.find_spec() not found; falling back to find_module() :1047: ImportWarning: APICoreClientInfoImportHook.find_spec() not found; falling back to find_module() :1047: ImportWarning: _BokehImportHook.find_spec() not found; falling back to find_module() :1047: ImportWarning: _AltairImportHook.find_spec() not found; falling back to find_module()

I tried all ways to install, train the model on CPU and GPU but still get this error.

htdung167 avatar Mar 06 '25 10:03 htdung167

Hi @htdung167. We had someone reporting some similar issues back in the days. Maybe you could go to the closed issues and search for the keyword "notebooks".

Otherwise I will find it and paste it here later.

Hope this helps!

And sorry for the late reply! I'm really busy these days :)

jrzaurin avatar Mar 08 '25 11:03 jrzaurin

Hi @htdung167. We had someone reporting some similar issues back in the days. Maybe you could go to the closed issues and search for the keyword "notebooks".

Otherwise I will find it and paste it here later.

Hope this helps!

And sorry for the late reply! I'm really busy these days :)

I tried with notebooks on my local PC or vast.ai and it still works fine. Strangely, there were no warnings or errors :D

htdung167 avatar Mar 08 '25 11:03 htdung167

Ah ok, thanks for letting me know. I will have a look tomorrow to some notebook options and paste here the issue I mentioned :)

jrzaurin avatar Mar 13 '25 20:03 jrzaurin