Comments (26)
I had this exact error once.
I think this is what helped.
From memory is was due to a versioning issue.
Let me know if you need more help.
Coml
from librespot.
Thank you for the reply I will try to update rustup and check it if it helps.
from librespot.
Hello,
I need help, I can't find how to downgrade rust. I'm using rustup.
from librespot.
Hey @lionas89,
Just wondering why you are downgrading rust?
I've just complied it on the latest to check and also made Travis do it again to confirm.
Can you share more of the errors you are getting. (If they are very ling use a gist or pastebin)
Coml
from librespot.
Hello,
Thank you for the response.
In the link you provided, one user message was:
But then I had to brew switch rust 1.1.0 backwards because bad cargo is in the homebrew rust 1.2.0 package: Homebrew/legacy-homebrew#42992
Sure I can:
Compiling syntex_syntax v0.58.1
Running rustc --crate-name syntex_syntax /root/.cargo/registry/src/github. com-1ecc6299db9ec823/syntex_syntax-0.58.1/src/lib.rs --crate-type lib --emit=dep -info,link -C opt-level=3 -C metadata=1b8dae9622393ef1 -C extra-filename=-1b8dae 9622393ef1 --out-dir /root/librespot/target/release/deps -L dependency=/root/lib respot/target/release/deps --extern log=/root/librespot/target/release/deps/libl og-e39aafb8710f86e3.rlib --extern unicode_xid=/root/librespot/target/release/dep s/libunicode_xid-b0d47ff4e5256777.rlib --extern rustc_serialize=/root/librespot/ target/release/deps/librustc_serialize-c2609f6283a547ab.rlib --extern syntex_pos =/root/librespot/target/release/deps/libsyntex_pos-0f2ee0f823e73c39.rlib --exter n syntex_errors=/root/librespot/target/release/deps/libsyntex_errors-3ba41ee7b60 654b8.rlib --extern bitflags=/root/librespot/target/release/deps/libbitflags-2f9 abeef2a0eea3e.rlib --cap-lints allow
error: Could not compile syntex_syntax
.
Caused by:
process didn't exit successfully: rustc --crate-name syntex_syntax /root/.car go/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.58.1/src/lib.rs --cr ate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=1b8dae9622393ef1 -C extra-filename=-1b8dae9622393ef1 --out-dir /root/librespot/target/release/deps -L dependency=/root/librespot/target/release/deps --extern log=/root/librespot/t arget/release/deps/liblog-e39aafb8710f86e3.rlib --extern unicode_xid=/root/libre spot/target/release/deps/libunicode_xid-b0d47ff4e5256777.rlib --extern rustc_ser ialize=/root/librespot/target/release/deps/librustc_serialize-c2609f6283a547ab.r lib --extern syntex_pos=/root/librespot/target/release/deps/libsyntex_pos-0f2ee0 f823e73c39.rlib --extern syntex_errors=/root/librespot/target/release/deps/libsy ntex_errors-3ba41ee7b60654b8.rlib --extern bitflags=/root/librespot/target/relea se/deps/libbitflags-2f9abeef2a0eea3e.rlib --cap-lints allow
(signal: 9, SIGKILL : kill)
from librespot.
Ah I see what's happened, from what I've seen the latest release is fine.
What operating system are you using?
Have you tried running "rustup update"?
from librespot.
Here is information:
https://pastebin.com/XGcdVvQy
root@chip:~# rustup update
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: checking for self-updates
stable-armv7-unknown-linux-gnueabihf unchanged - rustc 1.23.0 (766bd11c8 2018-01-01)
I followed steps in this tutorial:
https://bbs.nextthing.co/t/howto-chip-or-chip-pro-as-spotify-connect-radio/17621
from librespot.
And you got the same error after the update?
Have you tried from a fresh install?
And did you run:
sudo apt-get update
sudo apt-get upgrade
to get it all up to date?
I presume you are running CHIP Operating System?
(Note: I don'r have a CHIP to help you but am looking at buying one. Also I think the above commands are correct from the documentation.)
from librespot.
Yes,
here is the output:
https://pastebin.com/pcdKPTt1
I think I'm faced the low memory issue. Is there a way to compile on PC and transfer it to CHIP?
from librespot.
Sorry for the long wait for a reply!
I'm looking at your logs now
from librespot.
Hello,
Thank you. I'm waiting for your response. :)
from librespot.
Just to confirm you have tried a complete reinstall of CHIP OS and install of rust using rustup?
from librespot.
Also I'll try cross compiling it for you later tonight, it's not ideal but it would be a short cut.
Many thanks
Coml
from librespot.
Yes, I have tried fresh CHI and install using rustup. I followed @brat steps. Tried his compiled version of @brat, but I got an error:
root@chip:~/Downloads# ./librespot --name "CHIP" --username "xxxxx" --password "xxxxx" RUST_BACKTRACE=1
INFO:librespot: librespot 67deb07 (2017-06-30). Built on 2017-07-05.
INFO:librespot::session: Connecting to AP "gew1-accesspoint-b-kzpq.ap.spotify.com:4070"
INFO:librespot::session: Authenticated as "xxxxxxx" !
INFO:librespot::session: Country: "LT"
thread '' panicked at 'called Result::unwrap()
on an Err
value: WireError("invalid value for enum: 13")', /checkout/src/libcore/result.rs:859
note: Run with RUST_BACKTRACE=1
for a backtrace.
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: "SendError(..)"', /checkout/src/libcore/result.rs:859
Thank you very much for help. 👍
from librespot.
Try running it without the username and password so just
./librespot --name "CHIP"
from librespot.
Same issue. This appears when I try to connect with remote device to play song.
from librespot.
OK I'm running a cross compiling job now and will upload the version that may work for you.
And as you saw I have commented asking if brad had any success with this fork.
from librespot.
MD5: e732d71c2b8a36c22c3aae71a96aa059
SHA256:7b9b50d93c8e628bc7b55f36a6fbbb305229f7c77af98919c2ca132b71657946
librespot.zip
Try that it may work, though I won't get our hopes up.
from librespot.
It is working at the moment. I can control it on my phone and it's what I need. Thank you very much. If I will face any issue I will let you know. Honestly, BIG THANK YOU!!! 🥇
from librespot.
No problem :) That's good to hear! Not quite sure what caused your issue but Glad you have it sorted.
I'll close this for now. Let me know if you have any other issues.
from librespot.
This seems to be exactly the problem I'm stuck with. Wanted to give the cross-compiled download a few posts up a try, but it doesn't seem to be available anymore. Not sure it would be the right platform anyway, though, I'm on a raspberry B+, not sure if that matches the CHIP.
While compiling the syntex_syntax, kswapd takes over all processing power at a certain moment, processor load goes up to 30+, and at some point the build process fails.
P.S. the reason I'm trying to compile my own librespot on the raspberry B+ is that the precompiled one I'm using now results in the following error shortly after starting it:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: WireError("invalid value for enum: 13")', /checkout/src/libcore/result.rs:859
P.P.S. I realise I'm replying to a closed issue, but since it seems to match the issue I'm having, I thought this would be better than opening a new issue. My apologies if that's not the desired way.
from librespot.
Just as a nice easy solution have you had a look at Raspotify?
It is basically a wrapper for librespot and will save you compiling it yourself?
If you want to try the version above (I'm not sure it would work) The link changed and can now be found here.
Let me know how it goes!
from librespot.
The precompiled librespot is clearly not matching my architecture, it segfaults upon startup. Raspotify, I had not heard of that, but that sounds very promising, I'll be sure to take a look at that! Thanks for pointing me there!
from librespot.
Let me know if you have any more issues and I can cross compile one for the pi but Raspotify should sort you out.
from librespot.
Raspotify sorts me out, 98%. Now I'm stuck with an alsa issue, probably some other sound-related process preventing raspotify/librespot from accessing the device.
Mar 04 12:58:09 max2play librespot[3045]: ERROR:librespot_playback::audio_backend::alsa: Alsa error PCM open -16
Mar 04 12:58:09 max2play librespot[3045]: ERROR:librespot_playback::player: Could not start audio: Alsa error: PCM open failed
But now I'm diverting quite a bit from the original issue posted here, and I hope with some more searching on the internet and trying out I can figure this out... So, thanks for the help, issue closed for me.
Raspotify was an excellent suggestion, thanks for that!
Edit: got it working at last. Note to self: if you kill other processes that claim alsa, make sure there's no automatic restart for these processes in place... ;)
from librespot.
@crushert good to hear!
from librespot.
Related Issues (20)
- [Feature Request] Allow downloading of playlists for listening offline HOT 2
- Authentication on all desktop platforms is broken HOT 1
- Android Hashcash Not working? HOT 1
- New Stream reporting payload (Mercury)
- support for setting volume directly in addition to volume up/down HOT 1
- Librespot instance not shown in latest android/web spotify app HOT 5
- High CPU usage and stutter for some songs HOT 1
- get_extended_metadata HOT 3
- Home screen empty HOT 1
- Unable to get client token HOT 2
- translation of lyrics HOT 1
- Librespot causing Spocon to pause/not work? HOT 2
- Support additionnal SpotifyUri types HOT 2
- Can't play new songs (released on current day). Automatically skipping. HOT 1
- Librespot playback won't work HOT 1
- sound volume issue librespot/snapserver HOT 2
- Segmentation fault when running static build with `with-dns-sd`
- librespot unable to play songs
- request a new release HOT 5
- regression: lyrics API no longer working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librespot.