RicterZ / BGmi

BGmi is a cli tool for subscribed bangumi.
https://bgmi.ricterz.me
387 stars 72 forks source link

python3 linux在第一次运行的时候无法选择数据源 #86

Closed trim21 closed 7 years ago

trim21 commented 7 years ago

还没想到bug要怎么修,不过暂时解决的办法是有的..

解决方法.. 选择bangumi.moe做为数据源

rm ~/.bgmi -r
echo '1'|bgmi

选择mikanani.me做为数据源

rm ~/.bgmi -r
echo '2'|bgmi
RicterZ commented 7 years ago

直接默认bangumi.moe吧。 Trim21 notifications@github.com于2017年9月10日 周日下午6:58写道:

还没想到bug要怎么修,不过暂时解决的办法是有的..

解决方法.. 选择bangumi.moe做为数据源

rm ~/.bgmi -recho '1'|bgmi

选择mikanani.me做为数据源

rm ~/.bgmi -recho '2'|bgmi

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RicterZ/BGmi/issues/86, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCbx-Ij3JvatP9jSCGO-Zbf0GGfaTcpks5sg8DagaJpZM4PSR7k .

trim21 commented 7 years ago

也是个好办法... python3 mac的情况下没问题吗...

RicterZ commented 7 years ago

我还没测试,等会儿看完电影我回去看看是什么情况导致的

Trim21 notifications@github.com于2017年9月10日 周日下午7:02写道:

也是个好办法... python3 mac的情况下没问题吗...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RicterZ/BGmi/issues/86#issuecomment-328335411, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCbx166NXwcLzjbItXaZfwnxyzn6ai0ks5sg8HVgaJpZM4PSR7k .

trim21 commented 7 years ago

突然发现忘记贴报错了..

Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/BGmi/bgmi/main.py", line 193, in <module>
    setup()
  File "/home/pi/BGmi/bgmi/main.py", line 181, in setup
    ds = input('select data source by input index: ')
  File "/usr/lib/python3.4/codecs.py", line 400, in __getattr__
    return getattr(self.stream, name)
AttributeError: '_io.BufferedWriter' object has no attribute 'encoding'

3.5的报错也是一样的..