taizilongxu / douban.fm

:radio: douban.fm based on Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-jmcln825/pyobjc-framework-Accounts

iphone-andy opened this issue · comments

安装的时候报错了、能告知是什么原因么

抱歉我刚刚看到,它添加long description 以后的错误,上一个版本没有这个错误,我尽快修复,抱歉

2016年6月20日星期一,qiucanqing notifications@github.com 写道:

安装的时候报错了、能告知是什么原因么


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#128, or mute the thread
https://github.com/notifications/unsubscribe/AQS5ApnPzhLdq6fdtoIzQyYaOZy0b5AAks5qNjHTgaJpZM4I5ZHE
.

抱歉,刚刚这条发错了

2016年6月22日星期三,Chenghao Qian ch.jakobqian@gmail.com 写道:

抱歉我刚刚看到,它添加long description 以后的错误,上一个版本没有这个错误,我尽快修复,抱歉

2016年6月20日星期一,qiucanqing <notifications@github.com
javascript:_e(%7B%7D,'cvml','notifications@github.com');> 写道:

安装的时候报错了、能告知是什么原因么


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#128, or mute the thread
https://github.com/notifications/unsubscribe/AQS5ApnPzhLdq6fdtoIzQyYaOZy0b5AAks5qNjHTgaJpZM4I5ZHE
.

安装遇到了同样的问题。

是 macOS 10.12吗?

OK、我又回来了、我把以前的更新了、现在安装成功了、但是登录完以后就报错了

♥ Get local token - Username: NEG
♥ Get channel [ OK ]
♥ Get volume [ OK ]
♥ Get theme [ OK ]
♥ Get keys [ OK ]
Traceback (most recent call last):
File "/usr/local/bin/douban.fm", line 9, in
load_entry_point('douban.fm==0.4.15', 'console_scripts', 'douban.fm')()
File "/usr/local/lib/python2.7/site-packages/doubanfm/douban.py", line 101, in main
router = Router()
File "/usr/local/lib/python2.7/site-packages/doubanfm/douban.py", line 47, in init
self.data = data.Data()
File "/usr/local/lib/python2.7/site-packages/doubanfm/data.py", line 23, in init
self.playlist = Playlist()
File "/usr/local/lib/python2.7/site-packages/doubanfm/model.py", line 40, in init
self._get_first_song()
File "/usr/local/lib/python2.7/site-packages/doubanfm/model.py", line 57, in _func
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/doubanfm/model.py", line 82, in _get_first_song
song = douban.get_first_song()
File "/usr/local/lib/python2.7/site-packages/doubanfm/API/api.py", line 172, in get_first_song
return self.requests_url('n')
File "/usr/local/lib/python2.7/site-packages/doubanfm/API/api.py", line 163, in requests_url
raise APIError(err)
doubanfm.exceptions.APIError: list index out of range

API又报错了、

`
try:

            s = requests.get(url, params=options, cookies=self._cookies, headers=HEADERS)
            req_json = s.json()
            if req_json['r'] == 0:
                if 'song' not in req_json:
                    break
                return req_json['song'][0]
        except Exception, err:
            raise APIError(err)
            break

`