当我尝试使用以下命令安装pytaglibs时:
我得到了以下错误:
pip3 install pytaglib
我得到了以下错误:
我遇到了以下错误:
> [root@localhost taglib-1.11.1]# pip3 install pytaglib WARNING: Running
> pip install with root privileges is generally not a good idea. Try
> `pip3 install --user` instead. Collecting pytaglib Using cached
> pytaglib-1.4.2.tar.gz Requirement already satisfied: Cython in
> /usr/local/lib64/python3.6/site-packages (from pytaglib) Installing
> collected packages: pytaglib Running setup.py install for pytaglib
> ... error
> Complete output from command /usr/bin/python3 -u -c "import setuptools,
> tokenize;__file__='/tmp/pip-build-et7hprc2/pytaglib/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" install
> --record /tmp/pip-lib4owfq-record/install-record.txt --single-version-externally-managed --compile:
> running install
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-3.6
> copying src/pyprinttags.py -> build/lib.linux-x86_64-3.6
> running build_ext
> building 'taglib' extension
> creating build/temp.linux-x86_64-3.6
> creating build/temp.linux-x86_64-3.6/src
> gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c src/taglib.cpp -o build/temp.linux-x86_64-3.6/src/taglib.o
> src/taglib.cpp: In function ‘int __pyx_pf_6taglib_4File___cinit__(__pyx_obj_6taglib_File*, PyObject*)’:
> src/taglib.cpp:1736:50: error: no matching function for call to ‘TagLib::FileRef::create(const Py_UNICODE*&)’
> __pyx_t_6 = TagLib::FileRef::create(__pyx_t_5);
> ^
> In file included from src/taglib.cpp:578:0:
> /usr/local/include/taglib/fileref.h:273:18: note: candidate: static TagLib::File* TagLib::FileRef::create(TagLib::FileName, bool,
> TagLib::AudioProperties::ReadStyle)
> static File *create(FileName fileName,
> ^~~~~~
> /usr/local/include/taglib/fileref.h:273:18: note: no known conversion for argument 1 from ‘const Py_UNICODE* {aka const
> wchar_t*}’ to ‘TagLib::FileName {aka const char*}’
> error: command 'gcc' failed with exit status 1
>
> ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-et7hprc2/pytaglib/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" install
> --record /tmp/pip-lib4owfq-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-et7hprc2/pytaglib/
我对这个问题毫无头绪。不幸的是,我在谷歌/这里也没有找到任何解决方案。我正在使用Fedora。有人遇到过类似的问题吗?请帮忙。