jrzaurin / pytorch-widedeep

A flexible package for multimodal-deep-learning to combine tabular data with text and images using Wide and Deep models in Pytorch
Apache License 2.0
1.26k stars 186 forks source link

<frozen importlib._bootstrap>:914 error when importing on Google Colab #167

Closed CholeskyC closed 1 year ago

CholeskyC commented 1 year ago

When I run from pytorch_widedeep import Trainer on Google Colab, this is the error message that I get. But there is no problem running the package locally, for example on PyCharm. Really appreciate if someone can help shed some light here. Thanks

:914: ImportWarning: APICoreClientInfoImportHook.find_spec() not found; falling back to find_module() :914: ImportWarning: _PyDriveImportHook.find_spec() not found; falling back to find_module() :914: ImportWarning: _OpenCVImportHook.find_spec() not found; falling back to find_module() :914: ImportWarning: _BokehImportHook.find_spec() not found; falling back to find_module() :914: ImportWarning: _AltairImportHook.find_spec() not found; falling back to find_module()
thatalfredh commented 1 year ago

Hi, this has something to do with Colab's environment, I encountered the same warnings when reading csv files on it. That said, the warnings doesn't affect any workings of this package as I am able to use it properly on Google Colab with expected results for different configurations, etc.

jrzaurin commented 1 year ago

Thanks @thatalfredh!

Also, if it helps: https://github.com/jrzaurin/pytorch-widedeep/issues/83