~$ sudo emerge -av tagpy Password: These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-python/tagpy-0.94.5 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/tagpy-0.94.5 * tagpy-0.94.5.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking tagpy-0.94.5.tar.gz to /var/tmp/portage/dev-python/tagpy-0.94.5/work >>> Source unpacked in /var/tmp/portage/dev-python/tagpy-0.94.5/work >>> Compiling source in /var/tmp/portage/dev-python/tagpy-0.94.5/work/tagpy-0.94.5 ... /usr/lib/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.message = message /usr/lib/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.message = message running build running build_py creating build creating build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/tagpy copying src/python/mpc.py -> build/lib.linux-i686-2.6/tagpy copying src/python/ape.py -> build/lib.linux-i686-2.6/tagpy copying src/python/__init__.py -> build/lib.linux-i686-2.6/tagpy copying src/python/id3v1.py -> build/lib.linux-i686-2.6/tagpy copying src/python/id3v2.py -> build/lib.linux-i686-2.6/tagpy copying src/python/flac.py -> build/lib.linux-i686-2.6/tagpy copying src/python/mpeg.py -> build/lib.linux-i686-2.6/tagpy creating build/lib.linux-i686-2.6/tagpy/ogg copying src/python/ogg/__init__.py -> build/lib.linux-i686-2.6/tagpy/ogg copying src/python/ogg/vorbis.py -> build/lib.linux-i686-2.6/tagpy/ogg copying src/python/ogg/flac.py -> build/lib.linux-i686-2.6/tagpy/ogg running build_ext building '_tagpy' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/src creating build/temp.linux-i686-2.6/src/wrapper i686-pc-linux-gnu-gcc -pthread -O3 -DNDEBUG -O2 -march=native -mtune=native -pipe -fomit-frame-pointer -ftree-vectorize -mfpmath=sse -msse3 -fPIC -I/usr/include/taglib -I/usr/include/python2.6 -c src/wrapper/basics.cpp -o build/temp.linux-i686-2.6/src/wrapper/basics.o In file included from src/wrapper/basics.cpp:34: src/wrapper/common.hpp:24:28: error: boost/python.hpp: No such file or directory src/wrapper/common.hpp:25:34: error: boost/scoped_array.hpp: No such file or directory In file included from src/wrapper/basics.cpp:34: src/wrapper/common.hpp:31: error: ‘boost’ has not been declared src/wrapper/common.hpp:31: error: ‘python’ is not a namespace-name src/wrapper/common.hpp:31: error: expected namespace-name before ‘;’ token src/wrapper/common.hpp:69: error: expected initializer before ‘make_list’ src/wrapper/common.hpp: In function ‘Value&<unnamed>::Map_getitem(TagLib::Map<Key, T>&, const Key&)’: src/wrapper/common.hpp:88: error: ‘PyExc_KeyError’ was not declared in this scope src/wrapper/common.hpp:88: error: there are no arguments to ‘PyErr_SetString’ that depend on a template parameter, so a declaration of ‘PyErr_SetString’ must be available src/wrapper/common.hpp:88: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) src/wrapper/common.hpp:89: error: there are no arguments to ‘error_already_set’ that depend on a template parameter, so a declaration of ‘error_already_set’ must be available src/wrapper/common.hpp: At global scope: src/wrapper/common.hpp:101: error: expected constructor, destructor, or type conversion before ‘Map_keys’ src/wrapper/common.hpp: In function ‘void<unnamed>::exposeMap(const char*)’: src/wrapper/common.hpp:116: error: ‘class_’ was not declared in this scope src/wrapper/common.hpp:116: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:117: error: request for member ‘def’ in ‘name’, which is of non-class type ‘const char*’ src/wrapper/common.hpp:119: error: ‘return_self’ was not declared in this scope src/wrapper/common.hpp:119: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:119: error: expected primary-expression before ‘)’ token src/wrapper/common.hpp:121: error: ‘return_internal_reference’ was not declared in this scope src/wrapper/common.hpp:121: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:121: error: expected primary-expression before ‘)’ token src/wrapper/common.hpp:124: error: ‘Map_keys’ was not declared in this scope src/wrapper/common.hpp:124: error: expected primary-expression before ‘,’ token src/wrapper/common.hpp:124: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:124: error: expected primary-expression before ‘)’ token src/wrapper/common.hpp: In function ‘Value&<unnamed>::List_getitem(TagLib::List<T>&, TagLib::uint)’: src/wrapper/common.hpp:136: error: ‘PyExc_IndexError’ was not declared in this scope src/wrapper/common.hpp:136: error: there are no arguments to ‘PyErr_SetString’ that depend on a template parameter, so a declaration of ‘PyErr_SetString’ must be available src/wrapper/common.hpp:137: error: there are no arguments to ‘error_already_set’ that depend on a template parameter, so a declaration of ‘error_already_set’ must be available src/wrapper/common.hpp: In function ‘void<unnamed>::List_setitem(TagLib::List<T>&, TagLib::uint, Value)’: src/wrapper/common.hpp:147: error: ‘PyExc_IndexError’ was not declared in this scope src/wrapper/common.hpp:147: error: there are no arguments to ‘PyErr_SetString’ that depend on a template parameter, so a declaration of ‘PyErr_SetString’ must be available src/wrapper/common.hpp:148: error: there are no arguments to ‘error_already_set’ that depend on a template parameter, so a declaration of ‘error_already_set’ must be available src/wrapper/common.hpp: In function ‘void<unnamed>::exposeList(const char*)’: src/wrapper/common.hpp:163: error: ‘class_’ was not declared in this scope src/wrapper/common.hpp:163: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:164: error: request for member ‘def’ in ‘name’, which is of non-class type ‘const char*’ src/wrapper/common.hpp:166: error: ‘return_self’ was not declared in this scope src/wrapper/common.hpp:166: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:166: error: expected primary-expression before ‘)’ token src/wrapper/common.hpp:168: error: ‘return_value_policy’ was not declared in this scope src/wrapper/common.hpp:168: error: ‘return_by_value’ was not declared in this scope src/wrapper/common.hpp:168: error: expected primary-expression before ‘)’ token src/wrapper/common.hpp: In function ‘Value*&<unnamed>::PointerList_getitem(TagLib::List<Value*>&, TagLib::uint)’: src/wrapper/common.hpp:184: error: ‘PyExc_IndexError’ was not declared in this scope src/wrapper/common.hpp:184: error: there are no arguments to ‘PyErr_SetString’ that depend on a template parameter, so a declaration of ‘PyErr_SetString’ must be available src/wrapper/common.hpp:185: error: there are no arguments to ‘error_already_set’ that depend on a template parameter, so a declaration of ‘error_already_set’ must be available src/wrapper/common.hpp: At global scope: src/wrapper/common.hpp:191: error: ‘auto_ptr’ has not been declared src/wrapper/common.hpp:191: error: expected ‘,’ or ‘...’ before ‘<’ token src/wrapper/common.hpp: In function ‘void<unnamed>::PointerList_setitem(TagLib::List<Value*>&, TagLib::uint, int)’: src/wrapper/common.hpp:195: error: ‘PyExc_IndexError’ was not declared in this scope src/wrapper/common.hpp:195: error: there are no arguments to ‘PyErr_SetString’ that depend on a template parameter, so a declaration of ‘PyErr_SetString’ must be available src/wrapper/common.hpp:196: error: there are no arguments to ‘error_already_set’ that depend on a template parameter, so a declaration of ‘error_already_set’ must be available src/wrapper/common.hpp:198: error: ‘v’ was not declared in this scope src/wrapper/common.hpp: At global scope: src/wrapper/common.hpp:202: error: ‘auto_ptr’ has not been declared src/wrapper/common.hpp:202: error: expected ‘,’ or ‘...’ before ‘<’ token src/wrapper/common.hpp: In function ‘void<unnamed>::PointerList_append(TagLib::List<Value*>&, int)’: src/wrapper/common.hpp:204: error: ‘v’ was not declared in this scope src/wrapper/common.hpp: In function ‘void<unnamed>::exposePointerList(const char*)’: src/wrapper/common.hpp:211: error: ‘class_’ was not declared in this scope src/wrapper/common.hpp:211: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:212: error: request for member ‘def’ in ‘name’, which is of non-class type ‘const char*’ src/wrapper/common.hpp:214: error: ‘return_self’ was not declared in this scope src/wrapper/common.hpp:214: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:214: error: expected primary-expression before ‘)’ token src/wrapper/common.hpp:216: error: ‘return_internal_reference’ was not declared in this scope src/wrapper/common.hpp:216: error: expected primary-expression before ‘>’ token src/wrapper/common.hpp:216: error: expected primary-expression before ‘)’ token src/wrapper/basics.cpp: At global scope: src/wrapper/basics.cpp:43: error: ISO C++ forbids declaration of ‘PyObject’ with no type src/wrapper/basics.cpp:43: error: expected ‘;’ before ‘*’ token src/wrapper/basics.cpp:48: error: expected `;' before ‘}’ token src/wrapper/basics.cpp:52: error: ISO C++ forbids declaration of ‘PyObject’ with no type src/wrapper/basics.cpp:52: error: expected ‘;’ before ‘*’ token src/wrapper/basics.cpp:56: error: expected `;' before ‘}’ token src/wrapper/basics.cpp:76: error: expected template-name before ‘<’ token src/wrapper/basics.cpp:76: error: expected `{' before ‘<’ token src/wrapper/basics.cpp:76: error: expected unqualified-id before ‘<’ token src/wrapper/basics.cpp:211: error: expected `}' at end of input error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 * * ERROR: dev-python/tagpy-0.94.5 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2450: Called distutils_src_compile * environment, line 686: Called die * The specific snippet of code: * ${python} setup.py build "$@" || die "compilation failed" * The die message: * compilation failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/tagpy-0.94.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/tagpy-0.94.5/temp/environment'. * >>> Failed to emerge dev-python/tagpy-0.94.5, Log file: >>> '/var/tmp/portage/dev-python/tagpy-0.94.5/temp/build.log' * Messages for package dev-python/tagpy-0.94.5: * * ERROR: dev-python/tagpy-0.94.5 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2450: Called distutils_src_compile * environment, line 686: Called die * The specific snippet of code: * ${python} setup.py build "$@" || die "compilation failed" * The die message: * compilation failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/tagpy-0.94.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/tagpy-0.94.5/temp/environment'. Reproducible: Always Steps to Reproduce: Just emerge tagpy
Did you upgrade python recently but failed to run python updater ? Did you built >=boost-1.35.0 without python useflag ? The second one may be considered an ebuild bug.
No. All worked ok before I run `emerge -avuDN world` today and boost has been updated: ~$ emerge -pv boost These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-libs/boost-1.37.0-r1 USE="eselect python -debug -doc -expat -icu -mpi -tools" 0 kB
Upd: so now sonata cannot edit tags since tagpy fails to work after boost update.
What does 'eselect boost list' print ? More exactly, does /usr/include/boost symlink exist ?
*** This bug has been marked as a duplicate of bug 269517 ***
sudo eselect boost set 1 and reemerging tagpy resolved the problem. Thanks.