Skip to content

error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file #721

@surespace1

Description

@surespace1

The following issues occurred during the installation process:
(minicpmv2) (base) ai@ai:~$ pip install snowboy
Collecting snowboy
Using cached snowboy-1.2.0b1.tar.gz (5.0 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: PyAudio in ./miniconda3/envs/minicpmv2/lib/python3.11/site-packages (from snowboy) (0.2.14)
Building wheels for collected packages: snowboy
Building wheel for snowboy (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running bdist_wheel
running build
Compiling snowboy...
make: python-config: 没有那个文件或目录
make: python-config: 没有那个文件或目录
g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o
../..//lib/ubuntu64/libsnowboy-detect.a -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
snowboy-detect-swig.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
make: *** [Makefile:65:_snowboydetect.so] 错误 1
creating build/lib
creating build/lib/snowboy
error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file
[end of output]

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

How to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions