Import error: Failed to load PyTorch C Extensions #1

Closed
opened 2023-02-17 04:19:36 +00:00 by AI_Pleb · 5 comments

As it says in the image, I tried running start.bat after running the setup for CUDA and this happened, I've been running https://git.ecker.tech/mrq/tortoise-tts reasonably fine so I wanted to try moving over to this one but ran into this error, the other one still works no bother.

As it says in the image, I tried running start.bat after running the setup for CUDA and this happened, I've been running https://git.ecker.tech/mrq/tortoise-tts reasonably fine so I wanted to try moving over to this one but ran into this error, the other one still works no bother.
Owner

Strange, I'll see if I can replicate it. I admittedly haven't tested setting up from a clean slate after cleanup, so I'll pick at it when I get a chance.

For the meantime, you can copy-paste whatever's under the ./tortoise-tts/tortoise-env/ folder inside the ./ai-voice-cloning/venv/ folder, to effectively just reuse the venv. And copy the ./models/ folder from the old to the new.

Right now, there's no real reason to use this over the old repo, as I haven't done any functional changes yet, and the old repo should still be functional to work out of.

Strange, I'll see if I can replicate it. I admittedly haven't tested setting up from a clean slate after cleanup, so I'll pick at it when I get a chance. For the meantime, you can copy-paste whatever's under the `./tortoise-tts/tortoise-env/` folder inside the `./ai-voice-cloning/venv/` folder, to effectively just reuse the venv. And copy the `./models/` folder from the old to the new. Right now, there's no real reason to use this over the old repo, as I haven't done any functional changes yet, and the old repo should still be functional to work out of.
Owner

Couldn't replicate, although I did find it was bitching at me for not having psutil installed.

Couldn't replicate, although I did find it was bitching at me for not having `psutil` installed.
Author

I keep getting the same message, I've tried reinstalling all the packages, doing the exact instructions in the error message, installing different packages, sorting out dependenct conflicts, changing the imports in the code but it wont budge, both versions now give me the same error message which does suggest its something to do with my pytorch or something like that, but all I did was install the versions listed in the readme/re-entry so idk anymore, keep up the good work anyway we need locally hosted AI voices.

I keep getting the same message, I've tried reinstalling all the packages, doing the exact instructions in the error message, installing different packages, sorting out dependenct conflicts, changing the imports in the code but it wont budge, both versions now give me the same error message which does suggest its something to do with my pytorch or something like that, but all I did was install the versions listed in the readme/re-entry so idk anymore, keep up the good work anyway we need locally hosted AI voices.
Author

Ok, for some reason deleting the folder and re-cloning the repo fixed it, I'm sure some part of my reinstalling various packages and python itself might have helped but either way it works now, good work!

Ok, for some reason deleting the folder and re-cloning the repo fixed it, I'm sure some part of my reinstalling various packages and python itself might have helped but either way it works now, good work!
Owner

Ah, good to hear it was resolved. I wonder if you happened to clone the repo at a bad time and it bungled up things.

Just in case this happens in the future for you or anyone else again, I suppose I'll cobble together a ready-to-use ZIP (for Windows) to fall back to.

Funny enough just now, I ran into something similar in a Colab notebook, but I needed to restart the runtime for it to get "fixed". I don't think that exactly is a solution for non-Colab environments, but I thought I'd note it somewhere.

Ah, good to hear it was resolved. I wonder if you happened to clone the repo at a bad time and it bungled up things. Just in case this happens in the future for you or anyone else again, I suppose I'll cobble together a ready-to-use ZIP (for Windows) to fall back to. Funny enough just now, I ran into something similar in a Colab notebook, but I needed to restart the runtime for it to get "fixed". I don't think that exactly is a solution for non-Colab environments, but I thought I'd note it somewhere.
mrq closed this issue 2023-02-17 17:26:16 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/ai-voice-cloning#1
No description provided.