Comments (7)
是不是没装 mplayer ?( #38 )
from douban.fm.
@Hexcles 装了。
from douban.fm.
能不能试试看github上最新的版本?
不过原因我猜是歌曲列表空了,没装 mplayer 的话更容易出现,因为一首歌立即就“结束”了,一下就放完整个列表,来不及获取新歌曲。装了 mplayer 的话在网络不好或者其他状况下可能也会出现。
我实验一下。
from douban.fm.
@Hexcles 我的是github最新版本的。
from douban.fm.
@R00t8ug 最近一段时间做了不少调整,有可能不经意间影响了这个bug,能否再试试看?
这个异常是播放列表空了,但我仔细读了一遍源代码,每次获取下一首歌之前我们都检查了播放列表,如果是空的就去抓新的,但只尝试一次并且没有再检查。一般情况下是不会有问题的,但如果和豆瓣的连接质量较差,就可能导致抓不到播放列表。你的树莓派 ping www.douban.com 通畅么?
我会考虑对这个地方处理一下,但由于获取列表已经是相对较快的 API 了,出错机率也很低,如果这儿都失败的话后面其他地方可能也要卡很久甚至出错。最好情况就是让它 fail loudly and gracefully 了。
from douban.fm.
启动
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in *bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, _self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 270, in play
self.player.spawn(song['url'], volume)
File "/usr/local/lib/python2.7/dist-packages/douban/mplayer.py", line 37, in spawn
stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
切换频道
Traceback (most recent call last):
File "/usr/local/bin/douban.fm", line 9, in
load_entry_point('douban.fm==0.3.0', 'console_scripts', 'douban.fm')()
File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 740, in main
Win(douban)
File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 114, in init
self.run()
File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 324, in run
self.set_play()
File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 354, in _func
func(self)
File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 435, in set_play
self.play()
File "/usr/local/lib/python2.7/dist-packages/douban/douban.py", line 270, in play
self.player.spawn(song['url'], volume)
File "/usr/local/lib/python2.7/dist-packages/douban/mplayer.py", line 37, in spawn
stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
from douban.fm.
@Angdo mplayer装了吗?
from douban.fm.
Related Issues (20)
- 安装报错python setup.py egg_info, Python版本是 2.7.10 HOT 3
- Add proxy server settings for Netease music HOT 3
- master 版本,网易不能播放
- 不能获取歌词... HOT 4
- python-dev和libffi-dev也算是依赖?
- 无法登录 HOT 1
- 坏掉了... HOT 2
- 安装错误 HOT 2
- 当我输入 douban.fm 并且输入 Email和Password之后,为什么跳转到 Hit any key to quit w3m:
- Does this package support Python 3?
- 歌曲没有放完就跳到下一首 HOT 1
- 运行douban.fm 报语法错误,invalid syntax (pycookiecheat.py, line 27) HOT 1
- 运行后终端卡死,无法播放音乐
- doubanfm.exceptions.APIError: list index out of range HOT 1
- No module named 'Queue' HOT 1
- pyobjc-core 安装问题
- invalid syntax HOT 1
- requirments.txt
- max 下报错并一直显示加载歌曲
- 更新出错 HOT 3
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 douban.fm.