VideoLingo icon indicating copy to clipboard operation
VideoLingo copied to clipboard

Tried to instantiate class '__path__._path', but it does not exist! Ensure that it is registered via torch::class_

Open hanco1 opened this issue 1 year ago • 4 comments

想问问raise error: Examining the path of torch.classes raised: Tried to instantiate class 'path._path', but it does not exist! Ensure that it is registered via torch::class_可能由于什么导致的啊

hanco1 avatar Oct 29 '24 19:10 hanco1

检查 python 版本和 torch 版本,尝试使用 v1.7 安装

Huanshere avatar Oct 30 '24 10:10 Huanshere

检查 python 版本和 torch 版本,尝试使用 v1.7 安装

torch1.7的话cuda版本建议多少啊 目前安装的12.6是不是不太兼容

hanco1 avatar Oct 30 '24 11:10 hanco1

请严格按照文档安装,必须 python3.10.0+torch2.0.0,这是 whisperX 的严格要求

Huanshere avatar Oct 30 '24 11:10 Huanshere

v1.7 指的是 videolingo 的 不是 torch 哦~

Huanshere avatar Oct 30 '24 11:10 Huanshere

I am facing same error, what is the solution?

Kitdit avatar Nov 28 '24 13:11 Kitdit

I am facing same error, what is the solution?

Hi, please check if you're using python=3.10.0 environment and installing torch=2.0.0

Huanshere avatar Dec 03 '24 09:12 Huanshere

可以在代码中添加下列代码解决。

import os import torch

torch.classes.path = [os.path.join(torch.path[0], torch.classes.file)]

miouluo avatar Mar 27 '25 18:03 miouluo