Posts: 136
Threads: 18
Joined: Apr 2018
Reputation:
2
Still haven't been able to crack this nut. I have alternating sound but Spotify ( MAC) does not find any devices. Below are the last 2 statements with some sort of comments. From the code output below give any clues where to begin debugging?
Code: pi@moode:/etc $ sudo systemctl start avahi-spotify-connect-multiuser.service
pi@moode:/etc $ sudo systemctl start spotify-connect-web.service
pi@moode:/etc $ sudo systemctl status spotify-connect-web.service
● spotify-connect-web.service
Loaded: loaded (/lib/systemd/system/spotify-connect-web.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) since Fri 2018-06-08 00:29:49 EDT; 3s ago
Process: 23251 ExecStart=/home/pi/spotify/spotify-connect.sh (code=exited, status=0/SUCCESS)
Main PID: 23251 (code=exited, status=0/SUCCESS)
Posts: 26
Threads: 1
Joined: May 2018
Reputation:
0
06-09-2018, 09:23 AM
(This post was last modified: 06-09-2018, 05:26 PM by miklau.)
Made an error. Do not know how to delete af post... sorry
Posts: 2
Threads: 0
Joined: Jun 2018
Reputation:
0
(05-23-2018, 05:25 AM)RafaPolit Wrote: Glad you worked it out Platheo, hopefully someone will use that to solve their issues. Thanks for sharing your process.
Hi, I confirm that it has worked for me too, just changing gevent.wsgi to gevent.pywsgi in main.py
Posts: 113
Threads: 7
Joined: Apr 2018
Reputation:
3
I think you are OK. Connect your Spotify client (phone, computer, etc) to the same network as the RPi and you should see the Lounge Connect speakers / connect device.
Maybe the problem is with the avahi service? Is it enabled and started? (because the spotify-connect-web service is NOT enabled, you may have manually started it... but you need to enable both to have them run at startup).
Posts: 4
Threads: 0
Joined: Jul 2018
Reputation:
0
working for me too with hifiberry dac + once I changed the gevent.wsgi line. magic!
However it does seem to crash the UI. I can browse and play music but when I click on the configuration settings it just hangs and won't respond. I cannot even reboot from the browser either. I've looked in the moode.log file and can't find much of note. Any hints? bit of a noob here. lol
Posts: 113
Threads: 7
Joined: Apr 2018
Reputation:
3
Did you follow the 'extremely alpha' UI procedure? If not, it shouldn't affect the UI at all! It's a sandboxed installation.
Please report back if you have any hints at what may be going on.
Posts: 113
Threads: 7
Joined: Apr 2018
Reputation:
3
If you stop the avahi and spotify services, does the UI work as you expected?
Posts: 4
Threads: 0
Joined: Jul 2018
Reputation:
0
07-11-2018, 12:44 AM
(This post was last modified: 07-13-2018, 09:47 AM by rrobot.)
(07-10-2018, 02:49 PM)RafaPolit Wrote: If you stop the avahi and spotify services, does the UI work as you expected?
thanks RafaPolit. It's better when I stop the services but still freezing a bit. I've decided to start again from scratch with a clean moode installation, no NAS sources connected and see if I can isolate. it's possible it's not spotify per se but just the whole system running out of resources for other reasons.
I can confirm the spotify works great through. I'm yet to really test how stable it is over time or how it goes switching between sources on Moode, but impressed so far.
EDIT: Reinstalled Moode and it seems much better. I have discovered it's necessary to stop the spotify stream in order to reboot or shutdown moode via the UI
Posts: 7
Threads: 1
Joined: Jul 2018
Reputation:
0
Hello everybody, my first post here!
Did you try install spotify connect web to moode 4.2? I tried but without success. Do I have to do something different?
Posts: 7
Threads: 1
Joined: Jul 2018
Reputation:
0
I think the Pip Install have problems
" error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cffi"
and at the end
"Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-HQyOrh/cffi/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-H83xdU-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-HQyOrh/cffi/
Code: pi@moode:~/spotify/spotify-connect-web $ pip install -r requirements.txt
Collecting cffi>=0.9.2 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz
Collecting Flask==0.11.1 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/63/2b/01f5ed23a78391f6e3e73075973da0ecb467c831376a0b09c0ec5afd7977/Flask-0.11.1-py2.py3-none-any.whl
Collecting Flask-Bootstrap<4.0,>=3.3.2.1 (from -r requirements.txt (line 3))
Collecting Flask-Cors==2.1.2 (from -r requirements.txt (line 4))
Collecting pycparser>=2.10 (from -r requirements.txt (line 5))
Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.18-py2.py3-none-any.whl
Collecting pyalsaaudio>=0.8 (from -r requirements.txt (line 6))
Collecting gevent>=1.0.1 (from -r requirements.txt (line 7))
Collecting pylast>=1.6.0 (from -r requirements.txt (line 8))
Using cached https://files.pythonhosted.org/packages/22/57/afc385f67211b5c94cb13e429f2599ca348187a6a5aae1bfa49dbd63278e/pylast-2.3.0-py2.py3-none-any.whl
Collecting itsdangerous>=0.21 (from Flask==0.11.1->-r requirements.txt (line 2))
Collecting click>=2.0 (from Flask==0.11.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Collecting Werkzeug>=0.7 (from Flask==0.11.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl
Collecting Jinja2>=2.4 (from Flask==0.11.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
Collecting dominate (from Flask-Bootstrap<4.0,>=3.3.2.1->-r requirements.txt (line 3))
Collecting visitor (from Flask-Bootstrap<4.0,>=3.3.2.1->-r requirements.txt (line 3))
Collecting Six (from Flask-Cors==2.1.2->-r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting greenlet>=0.4.13 (from gevent>=1.0.1->-r requirements.txt (line 7))
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->Flask==0.11.1->-r requirements.txt (line 2))
Building wheels for collected packages: cffi
Running setup.py bdist_wheel for cffi ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-HQyOrh/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpwQX5oVpip-wheel- --python-tag cp27:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/c
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-kKRR4y/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: pycparser, cffi, itsdangerous, click, Werkzeug, MarkupSafe, Jinja2, Flask, dominate, visitor, Flask-Bootstrap, Six, Flask-Cors, pyalsaaudio, greenlet, gevent, pylast
Running setup.py install for cffi ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-HQyOrh/cffi/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-H83xdU-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/c
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-kKRR4y/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-HQyOrh/cffi/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-H83xdU-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-HQyOrh/cffi/
pi@moode:~/spotify/spotify-connect-web $
|