albertz / music-player-core

Music player core Python module
BSD 2-Clause "Simplified" License
74 stars 22 forks source link

installation failing (pip, manjaro) #17

Open Frevel opened 5 years ago

Frevel commented 5 years ago

Hello, unfortunality the installation with pip fails. I'm on Manjaro.

`Collecting musicplayer Using cached https://files.pythonhosted.org/packages/7f/e2/7a1890044c7cb2073b83924b5868eea55207317c12092d9615869381dc7e/musicplayer-1.20141030.091600.tar.gz Installing collected packages: musicplayer Running setup.py install for musicplayer ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-nrddq6ov/musicplayer/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-record-0x_mocsh/install-record.txt --single-version-externally-managed --compile: running install running build running build_ext building 'musicplayer' extension creating build creating build/temp.linux-x86_64-3.7 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -flto=4 -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python3.7m -c musicplayer_utils.cpp -o build/temp.linux-x86_64-3.7/musicplayer_utils.o -std=c++11 In file included from PlayerInStream.hpp:14, from musicplayer.h:44, from musicplayer_utils.cpp:7: PyUtils.h: In Funktion »bool pyStr(PyObject, std::__cxx11::string&)«: PyUtils.h:32:5: Fehler: »PyString_Check« wurde in diesem Gültigkeitsbereich nicht definiert if(PyString_Check(obj)) { ^~~~~~ PyUtils.h:32:5: Anmerkung: empfohlene Alternative: »PyMapping_Check« if(PyString_Check(obj)) { ^~~~~~ PyMapping_Check PyUtils.h:33:21: Fehler: »PyString_AS_STRING« wurde in diesem Gültigkeitsbereich nicht definiert str = std::string(PyString_AS_STRING(obj), PyString_GET_SIZE(obj)); ^~~~~~ PyUtils.h:33:21: Anmerkung: empfohlene Alternative: »PyBytes_AS_STRING« str = std::string(PyString_AS_STRING(obj), PyString_GET_SIZE(obj)); ^~~~~~ PyBytes_AS_STRING PyUtils.h:33:46: Fehler: »PyString_GET_SIZE« wurde in diesem Gültigkeitsbereich nicht definiert str = std::string(PyString_AS_STRING(obj), PyString_GET_SIZE(obj)); ^~~~~ PyUtils.h:33:46: Anmerkung: empfohlene Alternative: »PySet_GET_SIZE« str = std::string(PyString_AS_STRING(obj), PyString_GET_SIZE(obj)); ^~~~~ PySet_GET_SIZE PyUtils.h:46:26: Fehler: »PyObject_Unicode« wurde in diesem Gültigkeitsbereich nicht definiert PyObject unicodeObj = PyObject_Unicode(obj); ^~~~ PyUtils.h:46:26: Anmerkung: empfohlene Alternative: »PyObject_Size« PyObject unicodeObj = PyObject_Unicode(obj); ^~~~ PyObject_Size In file included from musicplayer.h:44, from musicplayer_utils.cpp:7: PlayerInStream.hpp: In Konstruktor »PlayerInStream::PlayerInStream()«: PlayerInStream.hpp:73:47: Warnung: »void memset(void, int, size_t)« Säubern eines Objekts des Typs »struct PlayerInStream« ohne triviale Kopierzuweisung; use value-initialization instead [-Wclass-memaccess] memset(this, 0, sizeof(PlayerInStreamRawPOD)); ^ PlayerInStream.hpp:57:8: Anmerkung: »struct PlayerInStream« wird hier deklariert struct PlayerInStream : PlayerInStreamRawPOD { ^~~~~~ musicplayer_utils.cpp: In Funktion »char objStrDup(PyObject)«: musicplayer_utils.cpp:24:10: Fehler: »PyString_Check« wurde in diesem Gültigkeitsbereich nicht definiert else if(PyString_Check(obj)) ^~~~~~ musicplayer_utils.cpp:24:10: Anmerkung: empfohlene Alternative: »PyMapping_Check« else if(PyString_Check(obj)) ^~~~~~ PyMapping_Check musicplayer_utils.cpp:25:9: Fehler: »PyString_AsString« wurde in diesem Gültigkeitsbereich nicht definiert str = PyString_AsString(obj); ^~~~~ musicplayer_utils.cpp:25:9: Anmerkung: empfohlene Alternative: »PyBytes_AsString« str = PyString_AsString(obj); ^~~~~ PyBytes_AsString musicplayer_utils.cpp:31:27: Fehler: »PyObject_Unicode« wurde in diesem Gültigkeitsbereich nicht definiert PyObject unicodeObj = PyObject_Unicode(obj); ^~~~ musicplayer_utils.cpp:31:27: Anmerkung: empfohlene Alternative: »PyObject_Size« PyObject* unicodeObj = PyObject_Unicode(obj); ^~~~ PyObject_Size musicplayer_utils.cpp:38:10: Fehler: »PyString_AsString« wurde in diesem Gültigkeitsbereich nicht definiert str = PyString_AsString(strObj); ^~~~~ musicplayer_utils.cpp:38:10: Anmerkung: empfohlene Alternative: »PyBytes_AsString« str = PyString_AsString(strObj); ^~~~~ PyBytes_AsString In file included from /usr/include/c++/8.2.1/cassert:44, from /usr/include/boost/predef/detail/_cassert.h:12, from /usr/include/boost/predef/library/c/_prefix.h:11, from /usr/include/boost/predef/library/c.h:13, from /usr/include/boost/predef/library.h:13, from /usr/include/boost/predef.h:16, from /usr/include/boost/smart_ptr/detail/yield_k.hpp:28, from /usr/include/boost/smart_ptr/detail/spinlock_std_atomic.hpp:18, from /usr/include/boost/smart_ptr/detail/spinlock.hpp:47, from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25, from /usr/include/boost/smart_ptr/shared_ptr.hpp:36, from /usr/include/boost/shared_ptr.hpp:17, from musicplayer.h:46, from musicplayer_utils.cpp:7: musicplayer_utils.cpp: In Elementfunktion »void ProtectionData::unlock()«: musicplayer_utils.cpp:248:25: Warnung: Vergleich von Ganzzahlausdrücken, von denen nur einer ein Vorzeichen hat: »long int« und »long unsigned int« [-Wsign-compare] assert(lockThreadIdent == PyThread_get_thread_ident());


    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-nrddq6ov/musicplayer/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-record-0x_mocsh/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-nrddq6ov/musicplayer/`