shahules786 / mayavoz

Pytorch based speech enhancement toolkit.
MIT License
328 stars 21 forks source link

Error loading pytorch_lightning.utilities.cloud_io #50

Open boutell opened 1 year ago

boutell commented 1 year ago

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 commented 1 year ago

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.