gpt4 book ai didi

spotify - 无法在树莓派上通过 libspotify 登录 Spotify

转载 作者:行者123 更新时间:2023-12-02 10:49:20 34 4
gpt4 key购买 nike

我在 Raspberry Pi 上使用 libspotify 12.1.103.gd51f6226 Release Linux-armv6-bcm2708hardfp,我认为按照自述文件中的说明一切正常。

我将 appkey.c 更改为 Spotify 提供的应用程序 key ,但当我运行 spshell 示例并尝试登录时,出现错误

FATAL, TERMINATING: failed to log in to Spotify: Cannot connect to Spotify
Logged out
Exiting...

我确信我使用了正确的用户名(我也尝试过电子邮件)和密码(我也尝试过更改密码),并且我也尝试过点唱机示例并收到类似的错误。我可以正常登录网站和 Windows 应用程序。

我认为我可能出错的地方是:

After this, ensure your PKG_CONFIG_PATH is set tocd 
include the libspotify control file, and that the lib directory is
in the library search path.

我很确定我做得很好,并且在构建过程中没有收到任何错误。

有什么想法吗?

最佳答案

我遇到了完全相同的问题,您可以从我对此问题的评论中看到。对我来说,结果是我的用户名存在问题,其中包含非 ASCII 字母 ö。但因为我一直的计划是使用 pyspotify我设法使用他们的点唱机示例登录,并在适当的地方对我的用户名进行硬编码,并在其前面添加漂亮的小u,现在我可以登录到Spotify,请参阅点唱机示例中的~460行:

session_m = Jukebox(options.username, options.password, True)

我改成这样:

session_m = Jukebox(u"username_with_ö", options.password, True)

现在我的问题是另一个问题,那就是我无法访问/dev/dsp,但这是一个完全不同的问题。 :)

编辑apt-get install alsa-oss解决了上面提到的问题,我的树莓派现在可以播放音乐了!

关于spotify - 无法在树莓派上通过 libspotify 登录 Spotify,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14555190/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com