AudioGPT icon indicating copy to clipboard operation
AudioGPT copied to clipboard

ModuleNotFoundError: No module named 'ldm.util'; 'ldm' is not a package

Open zhaowtVincent opened this issue 1 year ago • 5 comments

When I was installing this project, I reported an error message: (audiogpt) administrator@zhaowt:~/AudioGPT$ python audio-chatgpt.py [2023-04-27 09:31:28] audio-chatgpt.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: Error when calling Cognitive Face API: status_code: 401 code: 401 message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

[2023-04-27 09:31:28] audio-chatgpt.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: img_url:https://raw.githubusercontent.com/Microsoft/Cognitive-Face-Windows/master/Data/detection1.jpg [2023-04-27 09:31:29] audio-chatgpt.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: Error when calling Cognitive Face API: status_code: 401 code: 401 message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

[2023-04-27 09:31:29] audio-chatgpt.py - - - - - - - - - - - - - - - - - - - - - eprint(line:60) :: img_url:/data1/mingmingzhao/label/data_sets_teacher_1w/47017613_1510574400_out-video-jzc70f41fa6f7145b4b66738f81f082b65_f_1510574403268_t_1510575931221.flv_0001.jpg [] Traceback (most recent call last): File "audio-chatgpt.py", line 26, in from ldm.util import instantiate_from_config ModuleNotFoundError: No module named 'ldm.util'; 'ldm' is not a package

​ Do any friends know how to solve this problem?

zhaowtVincent avatar Apr 27 '23 01:04 zhaowtVincent

Same problem here. Let me know if you find a fix

barber5 avatar Apr 27 '23 04:04 barber5

mark

MHao008 avatar Apr 30 '23 07:04 MHao008

Hi, pls try the latest version!

Rongjiehuang avatar Apr 30 '23 19:04 Rongjiehuang

Install ldm.util using pip

VedantAdke96 avatar May 01 '23 10:05 VedantAdke96

It seems like there is an issue with accessing the Cognitive Face API, and also a missing module called ldm.util.

The error message indicates that the subscription key provided for the Cognitive Face API might be invalid or the API endpoint is wrong. Please make sure that you have provided a valid subscription key for the API and the regional API endpoint is correct for your resource. You can check the documentation for the API to get more information on the correct endpoint.

Regarding the missing module ldm.util, it seems like the module is not installed or not available in your current working directory. You need to make sure that the module is installed and available in your working directory. You can try installing the module using pip or any other package manager you are using for this project.

murali1999-tech avatar May 01 '23 12:05 murali1999-tech