Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading pytorch_lightning.utilities.cloud_io #50

Open
boutell opened this issue May 12, 2023 · 2 comments
Open

Error loading pytorch_lightning.utilities.cloud_io #50

boutell opened this issue May 12, 2023 · 2 comments

Comments

@boutell
Copy link

boutell commented May 12, 2023

The example fails with:

ModuleNotFoundError: No module named 'pytorch_lightning.utilities.cloud_io

I did some grepping around and spotted that pytorch_lightning now imports that from a separate package. Example:

from lightning_fabric.utilities.cloud_io import get_filesystem

I'm attempting to use Python 3.11 on Ubuntu, in a Python virtual environment so as to allow use of pip.

Hope this is helpful! Thanks for open-sourcing this.

@boutell
Copy link
Author

boutell commented May 12, 2023

I was able to fix it by changing the relevant line to:

from lightning_fabric.utilities.cloud_io import _load as pl_load

Right now I'm hacking directly in site-packages, yes very messy, I'll try to send a PR but it's a one-liner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@boutell and others