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

ImportError: /usr/local/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_get_nsamples #5

Closed
Aniana0 opened this issue Jul 9, 2021 · 5 comments

Comments

@Aniana0
Copy link

Aniana0 commented Jul 9, 2021

My English is bad. So I used a translator. I'm sorry.

I installed wsl2 and Ubuntu(version: 2004.2021.222.0) to use nnsvs.
Then I tried to install nnsvs using setup-nsvs-on-wsl (https://github.com/oatsu-gh/setup-nnsvs-on-wsl)), but it didn't install properly because of an error.
So I copied the commands in 'setup_nnsvs_on_wsl.sh' and entered them directly into Windows Terminal to install the necessary packages and nnsvs.
But nnsvs didn't work, and I checked and found an error when import pysinsy.

This is the result of import pysinsy:
.>>> import pysinsy
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/pysinsy/init.py", line 5, in
from .sinsy import Sinsy
ImportError: /usr/local/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_get_nsamples

I tried reinstalling Ubuntu and nnsvs several times to resolve the error, but the problem was not resolved.
Please help me to resolve this error...😢
Thank you for reading!

Original Message(Korean):
저는 nnsvs를 사용하기 위해 wsl2와 Ubuntu(버전: 2004.2021.222.0)을 설치했습니다.
그 다음 setup-nnsvs-on-wsl(https://github.com/oatsu-gh/setup-nnsvs-on-wsl)을 사용해 nnsvs 설치하려고 했지만, 오류가 났고 제대로 설치가 되지 않았습니다.
그래서 setup_nnsvs_on_wsl.sh 안의 명령어를 한 줄 씩 복사해서 Windows Terminal에 직접 입력하여 필요한 패키지들과 nnsvs를 설치했습니다.
하지만 nnsvs가 작동하지 않았고, 확인해보니 pysinsy를 import할 때 오류가 있었습니다.

아래는 pysinsy를 import한 결과입니다:
.>>> import pysinsy
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/pysinsy/init.py", line 5, in
from .sinsy import Sinsy
ImportError: /usr/local/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_get_nsamples

오류를 해결하기 위해 Ubuntu와 nnsvs를 여러번 재설치 해보았지만 문제가 해결되지 않았습니다.
제가 이 오류를 해결할 수 있도록 도와주세요...😢
읽어주셔서 감사합니다.

@Aniana0
Copy link
Author

Aniana0 commented Jul 10, 2021

I tried using Google Colab to use nnsvs and found an error in 'import pysinsy' too.

Error message:
stage 0: Data preparation
Traceback (most recent call last):
File "/content/nnsvs/egs/nnsvs_natsume_singing/00-svs-world/utils/gen_lab.py", line 1, in
import pysinsy
File "/usr/local/lib/python3.7/dist-packages/pysinsy/init.py", line 5, in
from .sinsy import Sinsy
ImportError: /usr/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_save_riff
0it [00:00, ?it/s]
0it [00:00, ?it/s]
0it [00:00, ?it/s]
0it [00:00, ?it/s]
0it [00:00, ?it/s]
Traceback (most recent call last):
File "/content/nnsvs/egs/nnsvs_natsume_singing/00-svs-world/utils/perf_segmentation.py", line 85, in
np.min(flatten_lengths), np.max(flatten_lengths), np.mean(flatten_lengths)))
File "<array_function internals>", line 6, in amin
File "/usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py", line 2880, in amin
keepdims=keepdims, initial=initial, where=where)
File "/usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
Traceback (most recent call last):
File "/content/nnsvs/egs/nnsvs_natsume_singing/00-svs-world/utils/finalize_lab.py", line 1, in
import pysinsy
File "/usr/local/lib/python3.7/dist-packages/pysinsy/init.py", line 5, in
from .sinsy import Sinsy
ImportError: /usr/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_save_riff

Original Message(Korean):
저는 Google Colab을 이용해 nnsvs 사용을 다시 시도해보았고, Colab에서도 'import pysinsy'에서 오류가 나는 것을 발견했습니다.

오류 메시지:
stage 0: Data preparation
Traceback (most recent call last):
File "/content/nnsvs/egs/nnsvs_natsume_singing/00-svs-world/utils/gen_lab.py", line 1, in
import pysinsy
File "/usr/local/lib/python3.7/dist-packages/pysinsy/init.py", line 5, in
from .sinsy import Sinsy
ImportError: /usr/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_save_riff
0it [00:00, ?it/s]
0it [00:00, ?it/s]
0it [00:00, ?it/s]
0it [00:00, ?it/s]
0it [00:00, ?it/s]
Traceback (most recent call last):
File "/content/nnsvs/egs/nnsvs_natsume_singing/00-svs-world/utils/perf_segmentation.py", line 85, in
np.min(flatten_lengths), np.max(flatten_lengths), np.mean(flatten_lengths)))
File "<array_function internals>", line 6, in amin
File "/usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py", line 2880, in amin
keepdims=keepdims, initial=initial, where=where)
File "/usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
Traceback (most recent call last):
File "/content/nnsvs/egs/nnsvs_natsume_singing/00-svs-world/utils/finalize_lab.py", line 1, in
import pysinsy
File "/usr/local/lib/python3.7/dist-packages/pysinsy/init.py", line 5, in
from .sinsy import Sinsy
ImportError: /usr/lib/libsinsy.so.0.9: undefined symbol: HTS_Engine_save_riff

@r9y9
Copy link
Owner

r9y9 commented Jul 10, 2021

Could you ask the author of https://github.com/oatsu-gh/setup-nnsvs-on-wsl? I may look into the problem when I have some time but cannot guarantee when I get some time to do it as I have been busy at work recently.

@Aniana0
Copy link
Author

Aniana0 commented Jul 10, 2021

Thank you for your reply!
I got it. I'll ask the author of setup-nnsvs-on-wsl, too.
Please check when you have time so that it won't be a burden to you.
I can wait forever.😆

This is just my opinion, I don't think it's a matter of setup-nsvs-on-wsl.
My friend advised me to change the version of wsl to 1, and I reinstalled everything after changing the version of wsl to 1.
When reinstalling everything, I tried installing nnsvs without 'setup-nsvs-on-wsl' and still got the same error.
I saved the command and execution results that I entered to install 'nnsvs' in a txt file: log.txt

Original Message(Korean):
답변감사합니다!
알겠습니다. setup-nnsvs-on-wsl의 제작자에게도 물어보겠습니다.
부담이 되지 않도록 여유가 있을 때 천천히 확인해주세요.
저는 언제까지나 기다릴 수 있습니다.😆

이것은 그저 제 의견입니다만, setup-nsvs-on-wsl의 문제가 아닌 것 같습니다.
지인이 제게 wsl의 버전을 1로 바꾸어 보라고 알려주었고, 저는 wsl의 버전을 1로 바꾸면서 모든 것을 다시 설치해보았습니다.
그리고 다시 모든 것을 설치할 때, 저는 setup-nnsvs-on-wsl 없이 nnsvs를 설치해보았고, 여전히 같은 오류가 났습니다.
저는 nnsvs를 설치하기 위해 입력한 명령어와 실행 결과를 txt 파일에 저장해두었습니다: log.txt

@So-Fann
Copy link

So-Fann commented Aug 2, 2021

I have the same question too. Do you fix it?

@Aniana0
Copy link
Author

Aniana0 commented Aug 31, 2021

I have the same question too. Do you fix it?

A few hours ago, I deleted everything and reinstalled nnsvs, and the error was fixed.
I don't know why the error was fixed even though it was installed in the same process as before.🤔
This is a log of all the commands I entered in Ubuntu during the installation of nnsvs : command_logs.txt
So you delete everything and try installing nnsvs again.

Original Message(Korean):
몇 시간 전, 모든 것을 삭제하고 다시 nnsvs를 설치하니 오류가 사라졌습니다.
저는 이전과 같은 과정으로 설치했음에도 오류가 사라진 이유를 알 수가 없었습니다.
이것은 제가 NNSVS를 설치하는 동안 우분투에 입력한 명령어를 기록한 것입니다: command_logs.txt
So-Fann님도 모든 것을 지운 뒤 다시 nnsvs를 설치해보시길 바랍니다

@Aniana0 Aniana0 closed this as completed Aug 31, 2021
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

3 participants