-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Illegal instruction' output when tying to run the spotify-connect.sh #9
Comments
This one is probably beyond me. If the illegal instruction is on the libspotify_embedded, then we are toast. We depend on that file working. Did you make any changes at all to main.py? Was the original build successful? Maybe it's worth rebuilding making sure everything outputs the 'expected' results (specially the build). What OS are you running? |
First yes I changed the main.py in the beginning adding this what you described here: http://moodeaudio.org/forum/showthread.php?tid=14&pid=1507#pid1507 Yes the original build was successful and the sound command did output sounds. I have the 2018-03-13-raspbian-stretch-lite build with moode Release: 4.1 2018-04-02 How do I do a complete rebuild/ uninstall so I can reinstall? Already thanks for the support. If you need any additional logs or info just tell me |
First of all, that change is only needed if you the error: "No module named wsgi". If not, please do not modify the file and try to see what happens. Is there a chance that, when editing the main.py file you corrupted the file by omitting a space or something else? So, first question:
Please post the output of:
|
I changed it only after I received the "No module named wsgi" error. I also just tried to reverse the changes and removed the 'py' and I got the error again. Here is my main.py: (w/o the change to pywsgi) web_arg_parser = argparse.ArgumentParser(add_help=False) #Not a tuple, evaluates the same as "" + "" def validate_cors_host(host): web_arg_parser.add_argument('--cors', help=cors_help, action='append', type=validate_cors_host) app = Flask(name, root_path=sys.path[0]) #Serve bootstrap files locally instead of from a CDN #Used by the error callback to determine login status @ffi.callback('void(SpError error, void *userdata)') connect_app = Connect(web_error_callback, web_arg_parser) if os.environ.get('DEBUG') or connect_app.args.debug: ##Routes #Home page ##API routes #Playback routes @app.route('/api/playback/pause') @app.route('/api/playback/prev') @app.route('/api/playback/next') [...] The whole main.py is here in case you need it completely: https://drive.google.com/file/d/1IIAqTbSsNks_SSfChYEnS9MX1PEm6hE_/view?usp=sharing |
It looks good, maybe there was something wrong with the editing? By the way, what are you using to edit the file? Maybe it is changing some encoding or something else? Who is the owner:group of the main.py file? |
I use nano but I'll try it with another editor. Here is the output of ls -l: pi@moode:~/spotify/spotify-connect-web $ ls -l BTW maybe a clean install is the solution. Is there a way to remove spotify without removing moode? (moode install takes several hours) |
Oh, yes, absolutely. All you need is to just remove the spotify directory in home/pi, and the two services you created. So, basically,
If you want to completely remove all you did, probably delete the asound.conf file as well:
That's it. (I'm assuming you did not follow the UI Alpha procedures, if not, reverse those changes as well). |
So I tried to reinstall it and this error appeared. I will try to reinstall the whole system soon but if it can help here is the error: Collecting cffi>=0.9.2 (from -r requirements.txt (line 1)) |
Could you have a corrupted microSD card? I had one that was an off-market fake (sold to me as the real thing) that did these kind of unpredictable and random errors. I do think you are beyond the full moOde rebuild at this point, but I would suggest replacing the card. Obviously not what you wanted to hear, but may as well save you time in the long run. Hope you get things sorted out! Best regards, |
Yes it is possible that the card is corrupt it is a few years old. I will try a fresh install on a newer card soon and report if anything changed. Already thanks for all the support and the great work here |
So I installed moode and spotify connect again and I cannot get the spotify-connect-web.service to run. Here is what the status is outputting: pi@moode:~/spotify $ sudo systemctl status spotify-connect-web.service Jun 03 06:10:40 moode systemd[1]: spotify-connect-web.service: Failed with result 'exit-code'. I already tried to change the number of the mixer in spotify-connect.sh but that did not change anything even after restarting the service |
Disable and stop the service and run the script directly and post the output of Spotify-connect.sh, just like before. It's the only way of knowing which is the error. |
Here is the output of spotify-connect.sh: pi@moode:~/spotify $ sudo ./spotify-connect.sh Tried to fix that with "pip install flask" but that did not fix it |
Did you run the instructions to install depedndencies? It's weird to have another module missing. Maybe the spotify-connect script is missing info on the variables that point to the python libs? Can you cat the results of the spotify-connect.sh file? |
I did run the commands to run the dependencies and when I ran the commands again it said that it is already installed. Here is the output of the dependencies and cat of the spotify-connect.sh: pi@moode:~/spotify $ sudo apt-get install avahi-utils pi@moode:~/spotify $ sudo apt-get install python-dev libffi-dev libasound2-dev pi@moode:~/spotify $ cat spotify-connect.sh cd / |
Ok. i meant the pip requirements? |
That fixed that part of the problem. I just ran the command again and got this error: Since you discussed the solution to it in another post I applied the solution by changing the main.py as described. pi@moode:~/spotify $ ./spotify-connect.sh So it is probably not the SD card as this one is only a few month old and barely used. |
Also I checked and when I change the main.py back (remove the py in front of the wsgi) I get the "no module called wsgi again) |
Me on raspberrypi B , a fix this with a pre-built chroot version of spotify connect. https://github.com/Fornoth/spotify-connect-web asound.conf are copy in chroot folder. In my fork, I'm writing a lite readme for raspberry pi B (ARM7 version) |
I'm also getting the "illegal instruction" here on my installation. yes, its an older model :) I guess the binaries are not compiled for this CPU architecture ?? |
chroot version should work. 'look at this readme for comand lines https://github.com/Biniou/moode-spotify-connect-web I only change the code in this readme for install a chroot version, the text arround is maybe wrong |
I have the Rpi zero w and when I try to run the spotify connect.sh it gives this output:
pi@moode:~/spotify $ ./spotify-connect.sh
Loading Spotify library...
Last.fm: incomplete credentials, not launched
Device has no native mute
min_volume_range: 0
Using libspotify_embedded version: release-esdk-1.20.0-v1.20.0-g594175d4
Illegal instruction
I have tried changing the name of the device in main.py because I got that error and tried changing the master in the spotify-connect.sh.
Also I noticed that the spotify-connect-web.service is constantly restarting.
I am using a generic USB sound card which outputs sound with the command provided in the instructions. I also tried two different ones so I don't think(hope) that is the issue
Thanks already for the help
Best Regards
Lukas
The text was updated successfully, but these errors were encountered: