Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10_x64下闪退 #9

Closed
lanybass opened this issue Mar 15, 2019 · 9 comments
Closed

win10_x64下闪退 #9

lanybass opened this issue Mar 15, 2019 · 9 comments

Comments

@lanybass
Copy link

D:\IQIYI-parser\Win7-64-compile>main.exe
[Ctrl + C] to copy the iqiyi video url, and go back to see this console.
" https://www.iqiyi.com/v_19rqv8kir4.html?list=19rr9l4atu "
+---------------------------------------------------------------+
?拮拥睦寺眯?0190314预告 包贝尔定制浪漫之旅惨被吐槽-综艺-高清正版视频在线观看–爱奇艺Traceback (most recent call last):
  File "main.py", line 240, in <module>
  File "main.py", line 182, in main
  File "site-packages\colorama\ansitowin32.py", line 40, in write
  File "site-packages\colorama\ansitowin32.py", line 141, in write
  File "site-packages\colorama\ansitowin32.py", line 166, in write_and_convert
  File "site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
IOError: [Errno 0] Error
[9656] Failed to execute script main
@lanybass lanybass changed the title 闪退 win10_x64下闪退 Mar 15, 2019
@ZSAIm
Copy link
Owner

ZSAIm commented Mar 15, 2019

可能是编码的问题,可以尝试在main.py的14行加入如下代码

import sys
reload(sys)
sys.setdefaultencoding('utf-8') 

@ZSAIm
Copy link
Owner

ZSAIm commented Mar 15, 2019

如果没有python环境可以尝试如下版本
dist.zip

@lanybass
Copy link
Author

lanybass commented Mar 19, 2019

D:\dist>main.exe https://www.iqiyi.com/v_19rqv8kir4.html?list=19rr9l4atu
[Ctrl + C] to copy the iqiyi video url, and go back to see this console.
" https://www.iqiyi.com/v_19rqv8kir4.html?list=19rr9l4atu "
+---------------------------------------------------------------+
?拮拥睦寺眯?0190314预告 包贝尔定制浪漫之旅惨被吐槽-综艺-高清正版视频在线观看–爱奇艺Traceback (most recent call last):
  File "main.py", line 252, in <module>
  File "main.py", line 194, in main
  File "site-packages\colorama\ansitowin32.py", line 40, in write
  File "site-packages\colorama\ansitowin32.py", line 141, in write
  File "site-packages\colorama\ansitowin32.py", line 166, in write_and_convert
  File "site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
IOError: [Errno 0] Error
[2480] Failed to execute script main

用你上面的dist.zip,一样

@YFTX2015
Copy link

我的也是一样闪退,用的也是win10_64

@ZSAIm
Copy link
Owner

ZSAIm commented Mar 26, 2019

解析并没问题,应该就是第三方模块colorama的问题。这段时间会抽点时间写个GUI界面,放弃使用colorama。

@lanybass
Copy link
Author

解析并没问题,应该就是第三方模块colorama的问题。这段时间会抽点时间写个GUI界面,放弃使用colorama。

界面倒不用,把颜色去掉也挺好

@ZSAIm
Copy link
Owner

ZSAIm commented Mar 26, 2019

还是做一个把,没有进度显示看起来不舒服。
做个简单的就行了,花不了多久。

@ZSAIm
Copy link
Owner

ZSAIm commented Mar 28, 2019

程序已上传,可以尝试下是否能使用。

@lanybass
Copy link
Author

没毛病,老铁,可以下载了
但是
1.菜单里的exit按了没反应
2.解析后不下载按x关闭,提示:Failed to execute script main
建议记录错误日志到文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants