holll / teledown

使用Telethon批量下载telegram中任意群组/频道文件
GNU General Public License v3.0
61 stars 7 forks source link

AttributeError: module 'socks' has no attribute 'SOCKS5' #6

Open hixiu opened 1 year ago

hixiu commented 1 year ago

折腾了好几个小时,还是解决不了,救命 运行报错:AttributeError: module 'socks' has no attribute 'SOCKS5' pip3 list 已经显示安装了 PySocks 1.7.1

mian.py client = TelegramClient('python', api_id, api_hash, proxy=(socks.SOCKS5, 'localhost', proxy_port)) 鼠标移上去显示:Cannot find reference 'SOCKS5' in 'socks.py'

holll commented 1 year ago

有一种可能性,是电脑中存在多个版本的python,pip3指向的python不是运行的python版本;网上有说是requests版本太低,但如果安装了我指定的版本,应该不会出现版本太低问题

hixiu commented 1 year ago

谢谢,SOKCKS5这个问题解决了,现在就是一直连接超时,不太懂是什么原因。应用id,hash,手机什么都配置了。

------------------ 原始邮件 ------------------ 发件人: "holll/teledown" @.>; 发送时间: 2023年3月5日(星期天) 上午8:41 @.>; @.**@.>; 主题: Re: [holll/teledown] AttributeError: module 'socks' has no attribute 'SOCKS5' (Issue #6)

有一种可能性,是电脑中存在多个版本的python,pip3指向的python不是运行的python版本;网上有说是requests版本太低,但如果安装了我指定的版本,应该不会出现版本太低问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

hixiu commented 1 year ago

输入验证码之后就卡住了。。。

------------------ 原始邮件 ------------------ 发件人: "holll/teledown" @.>; 发送时间: 2023年3月5日(星期天) 上午8:41 @.>; @.**@.>; 主题: Re: [holll/teledown] AttributeError: module 'socks' has no attribute 'SOCKS5' (Issue #6)

有一种可能性,是电脑中存在多个版本的python,pip3指向的python不是运行的python版本;网上有说是requests版本太低,但如果安装了我指定的版本,应该不会出现版本太低问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

holll commented 1 year ago

输入验证码之后就卡住了。。。 能到输验证码这一步,起码说明代理配置是成功的。卡住就是输完验证码时候程序什么反应也没有,也没有任何日志输出吗

hixiu commented 1 year ago

对,没有任何反映,没有死机或者程序终止,也没有日志,也没有任何输出,就是单纯的停住了

------------------ 原始邮件 ------------------ 发件人: "holll/teledown" @.>; 发送时间: 2023年3月6日(星期一) 下午4:46 @.>; @.**@.>; 主题: Re: [holll/teledown] AttributeError: module 'socks' has no attribute 'SOCKS5' (Issue #6)

输入验证码之后就卡住了。。。 能到输验证码这一步,起码说明代理配置是成功的。卡住就是输完验证码时候程序什么反应也没有,也没有任何日志输出吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>