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

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

Open
Fenglinhsh opened this issue Sep 3, 2024 · 1 comment
Labels

Comments

@Fenglinhsh
Copy link

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
Copy link

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星河社区-人工智能学习与实训社区

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants