Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

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

Closed
trim21 opened this issue Sep 10, 2017 · 4 comments
Closed

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

trim21 opened this issue Sep 10, 2017 · 4 comments

Comments

@trim21
Copy link
Contributor

trim21 commented Sep 10, 2017

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

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

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

选择mikanani.me做为数据源

rm ~/.bgmi -r
echo '2'|bgmi
@trim21 trim21 changed the title python3 ubuntu在第一次运行的时候无法选择数据源 python3 linux在第一次运行的时候无法选择数据源 Sep 10, 2017
@RicterZ
Copy link
Owner

RicterZ commented Sep 10, 2017 via email

@trim21
Copy link
Contributor Author

trim21 commented Sep 10, 2017

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

@RicterZ
Copy link
Owner

RicterZ commented Sep 10, 2017 via email

@trim21
Copy link
Contributor Author

trim21 commented Sep 10, 2017

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

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的报错也是一样的..

RicterZ added a commit that referenced this issue Sep 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants