PaddlePaddle / PaddleSpeech

Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.
https://paddlespeech.readthedocs.io
Apache License 2.0
11.16k stars 1.85k forks source link

ModuleNotFoundError: No module named 'swig' on CentOS9 when install M2Crypto #3838

Open Fenglinhsh opened 2 months ago

Fenglinhsh commented 2 months ago

I get below printout when running pip install M2Crypto, seems swig could not be found, but actually it was installed sucessfully, I can found them in path /usr/local/bin/. What should I do to resolve this issue?


INFO:spawn:swig -python -I/usr/lib/gcc/x86_64-redhat-linux/11/include -I/usr/local/include -I/usr/include -D__x86_64__ -I/usr/include/python3.9 -I/usr/include/openssl -includeall -builtin -outdir build/lib.linux-x86_64-cpython-39/M2Crypto -o src/SWIG/_m2crypto_wrap.c src/SWIG/_m2crypto.i
  Traceback (most recent call last):
    File "/usr/local/bin/swig", line 5, in <module>
      from swig import swig
  ModuleNotFoundError: No module named 'swig'
  error: command '/usr/local/bin/swig' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for M2Crypto Failed to build M2Crypto ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (M2Crypto)


root@vultr ~]# pip list | grep swig swig 4.2.1

[root@vultr ~]# ls /usr/local/bin/swig /usr/local/bin/swig [root@vultr ~]# ls /usr/local/bin/ pip pip3 pip3.9 swig swig4.0 [root@vultr ~]#

Ray961123 commented 2 months ago

Hello developers, thank you for paying attention to PaddleSpeech open source project, sorry for bringing you a bad development experience, the current open source project maintenance manpower is limited, you can try to modify the PaddleSpeech source code by yourself, or ask other developers in the open source community to help. Communication channel::飞桨AI Studio星河社区-人工智能学习与实训社区