Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Installation failed with error code 1 #1

Closed
abhikandoi2000 opened this issue Jan 31, 2013 · 7 comments
Closed

Installation failed with error code 1 #1

abhikandoi2000 opened this issue Jan 31, 2013 · 7 comments

Comments

@abhikandoi2000
Copy link

I installed it using sudo pip install tagpy
I have installed boost.python and taglib as the dependencies but I am getting an error while installing tagpy
Here is the log data...

Continuing in 1 seconds...    

running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/tagpy

copying tagpy/flac.py -> build/lib.linux-x86_64-2.7/tagpy

copying tagpy/ape.py -> build/lib.linux-x86_64-2.7/tagpy

copying tagpy/id3v2.py -> build/lib.linux-x86_64-2.7/tagpy

copying tagpy/mpeg.py -> build/lib.linux-x86_64-2.7/tagpy

copying tagpy/id3v1.py -> build/lib.linux-x86_64-2.7/tagpy

copying tagpy/__init__.py -> build/lib.linux-x86_64-2.7/tagpy

copying tagpy/mpc.py -> build/lib.linux-x86_64-2.7/tagpy

creating build/lib.linux-x86_64-2.7/tagpy/ogg

copying tagpy/ogg/flac.py -> build/lib.linux-x86_64-2.7/tagpy/ogg

copying tagpy/ogg/vorbis.py -> build/lib.linux-x86_64-2.7/tagpy/ogg

copying tagpy/ogg/__init__.py -> build/lib.linux-x86_64-2.7/tagpy/ogg

running build_ext

building '_tagpy' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

creating build/temp.linux-x86_64-2.7/src/wrapper

gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -I/usr/include/python2.7 -c src/wrapper/basics.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/basics.o

gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -I/usr/include/python2.7 -c src/wrapper/id3.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/id3.o

src/wrapper/id3.cpp: In function ‘void exposeID3()’:

src/wrapper/id3.cpp:222:10: error: no matching function for call to ‘boost::python::class_<TagLib::ID3v2::Tag, boost::noncopyable_::noncopyable, boost::python::bases<TagLib::Tag> >::def(const char [7], <unresolved overloaded function type>)’

src/wrapper/id3.cpp:222:10: note: candidates are:

In file included from /usr/include/boost/python.hpp:18:0,

                 from src/wrapper/common.hpp:24,

                 from src/wrapper/id3.cpp:40:

/usr/include/boost/python/class.hpp:224:11: note: template<class Derived> boost::python::class_<T, X1, X2, X3>::self& boost::python::class_::def(const boost::python::def_visitor<Derived>&) [with Derived = Derived; W = TagLib::ID3v2::Tag; X1 = boost::noncopyable_::noncopyable; X2 = boost::python::bases<TagLib::Tag>; X3 = boost::python::detail::not_specified]

/usr/include/boost/python/class.hpp:224:11: note:   template argument deduction/substitution failed:

src/wrapper/id3.cpp:222:10: note:   mismatched types ‘const boost::python::def_visitor<U>’ and ‘const char [7]’

In file included from /usr/include/boost/python.hpp:18:0,

                 from src/wrapper/common.hpp:24,

                 from src/wrapper/id3.cpp:40:

/usr/include/boost/python/class.hpp:234:11: note: template<class F> boost::python::class_<T, X1, X2, X3>::self& boost::python::class_::def(const char*, F) [with F = F; W = TagLib::ID3v2::Tag; X1 = boost::noncopyable_::noncopyable; X2 = boost::python::bases<TagLib::Tag>; X3 = boost::python::detail::not_specified]

/usr/include/boost/python/class.hpp:234:11: note:   template argument deduction/substitution failed:

src/wrapper/id3.cpp:222:10: note:   couldn't deduce template parameter ‘F’

In file included from /usr/include/boost/python.hpp:18:0,

                 from src/wrapper/common.hpp:24,

                 from src/wrapper/id3.cpp:40:

/usr/include/boost/python/class.hpp:243:11: note: template<class A1, class A2> boost::python::class_<T, X1, X2, X3>::self& boost::python::class_::def(const char*, A1, const A2&) [with A1 = A1; A2 = A2; W = TagLib::ID3v2::Tag; X1 = boost::noncopyable_::noncopyable; X2 = boost::python::bases<TagLib::Tag>; X3 = boost::python::detail::not_specified]

/usr/include/boost/python/class.hpp:243:11: note:   template argument deduction/substitution failed:

src/wrapper/id3.cpp:222:10: note:   candidate expects 3 arguments, 2 provided

In file included from /usr/include/boost/python.hpp:18:0,

                 from src/wrapper/common.hpp:24,

                 from src/wrapper/id3.cpp:40:

/usr/include/boost/python/class.hpp:250:11: note: template<class Fn, class A1, class A2> boost::python::class_<T, X1, X2, X3>::self& boost::python::class_::def(const char*, Fn, const A1&, const A2&) [with Fn = Fn; A1 = A1; A2 = A2; W = TagLib::ID3v2::Tag; X1 = boost::noncopyable_::noncopyable; X2 = boost::python::bases<TagLib::Tag>; X3 = boost::python::detail::not_specified]

/usr/include/boost/python/class.hpp:250:11: note:   template argument deduction/substitution failed:

src/wrapper/id3.cpp:222:10: note:   candidate expects 4 arguments, 2 provided

In file included from /usr/include/boost/python.hpp:18:0,

                 from src/wrapper/common.hpp:24,

                 from src/wrapper/id3.cpp:40:

/usr/include/boost/python/class.hpp:266:11: note: template<class Fn, class A1, class A2, class A3> boost::python::class_<T, X1, X2, X3>::self& boost::python::class_::def(const char*, Fn, const A1&, const A2&, const A3&) [with Fn = Fn; A1 = A1; A2 = A2; A3 = A3; W = TagLib::ID3v2::Tag; X1 = boost::noncopyable_::noncopyable; X2 = boost::python::bases<TagLib::Tag>; X3 = boost::python::detail::not_specified]

/usr/include/boost/python/class.hpp:266:11: note:   template argument deduction/substitution failed:

src/wrapper/id3.cpp:222:10: note:   candidate expects 5 arguments, 2 provided

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/abhi/build/tagpy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-D39DJX-record/install-record.txt failed with error code 1 in /home/abhi/build/tagpy
Storing complete log in /home/abhi/.pip/pip.log
@inducer
Copy link
Owner

inducer commented Feb 3, 2013

What version are you trying of tagpy to install? What's your version of boost? of gcc?

@nivit
Copy link

nivit commented Mar 21, 2013

I have the same problem under FreeBSD.

Here is the error message: https://gist.github.com/nivit/5217271

Tagpy version: 0.94.8 (but the same error occurs also with 2013.1)
Boost libs version: 1.52.0
Gcc version: 4.6.3

@inducer
Copy link
Owner

inducer commented Mar 21, 2013

Nicola Vitale notifications@github.com writes:

I have the same problem under FreeBSD.

Here is the error message: https://gist.github.com/nivit/5217271

Boost libs version: 1.52.0
Gcc version: 4.6.3

Is this with taglib 1.8?

Andreas

Andreas Kloeckner
Room 1105A (Warren Weaver Hall), Courant Institute, NYU
http://www.cims.nyu.edu/~kloeckner/
+1-401-648-0599

@inducer
Copy link
Owner

inducer commented Mar 21, 2013

Caused by a taglib bug.

Hack your TAGPY_TAGLIB_HEX_VERSION to say 0x10800.

That should fix it.

@inducer inducer closed this as completed Mar 21, 2013
@nivit
Copy link

nivit commented Mar 22, 2013

Hi, Andreas.

Yes, the taglib version is 1.8. Your fix works fine, even if it is not clear why we have to use 0x10800, as the TAGLIB_MINOR_VERSION would seem to be equal to 7 (see http://goo.gl/aWtNR ) also for the last version (1.8). Anyway, thank you very much for the support.

@inducer
Copy link
Owner

inducer commented Mar 22, 2013

Problem is--they changed the interface in an incompatible way without bumping the MINOR_VERSION. We can only #ifdef based on these macros, so there are a few intermediate versions (including 1.8 proper, unfortunately) that are going to be broken.

@nivit
Copy link

nivit commented Mar 22, 2013

I see. Thanks for the explanation.

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

No branches or pull requests

3 participants