Blockcypher-python UnicodeError(“ label too long”)

问题描述 投票:1回答:1

我在Blockcypher for Python上遇到了令人讨厌的问题。一个简单的代码段

import sys
from blockcypher import get_address_overview

print(sys.version)
print(sys.version_info)
print(get_address_overview('1BTCorgHwCg6u2YSAWKgS17qUad6kHmtQW'))

正在我的本地安装中引发此异常(我正在使用PyCharm)

3.7.6(tags / v3.7.6:43364a7ae0,2019年12月19日,00:42:30)[MSC v.1916 64位(AMD64)]sys.version_info(major = 3,minor = 7,micro = 6,releaselevel ='final',serial = 0)

追踪(最近一次通话):文件“ C:\ Users \ xxx \ AppData \ Local \ Programs \ Python \ Python37 \ lib \ encodings \ idna.py”,第167行,编码时出现UnicodeError(“ label too long ”)UnicodeError:标签过长

Repl.it上,一切都正常运行。

调试idna.py显示第3个标签是引发异常的标签,但我一直在努力理解为什么我在本地安装中遇到此问题。

idna.py Exception

python python-3.x bitcoin blockcypher
1个回答
0
投票

[A fix for Windows has been made在最新版本(1.0.80)中。

© www.soinside.com 2019 - 2024. All rights reserved.