机器人框架 ImapLibrary: 'quoted-printable' 不是文本编码
Robot framework ImapLibrary: 'quoted-printable' is not a text encoding
我在尝试使用 Get Links From Email
关键字时收到此 LookupError:
Open Mailbox server=imap.googlemail.com user=user@mail.com password=pass ${proWelcomeMail} = Wait for Email recipient=${USER_EMAIL} subject=Welcome
Open Link From Email ${proWelcomeMail}
...
Close Mailbox
输出:
ImapLibrary . Get Links From Email ${proWelcomeMail}
LookupError: 'quoted-printable' is not a text encoding; use codecs.decode() to handle arbitrary codecs
请问有解决办法吗?
您可以自行更改库的代码,因为它没有被维护者修复。将文件 init.py "decode('quoted-printable')" 中的第 135 行更改为 "decode('utf-8')"。
使用已经修复的 fork ImapLibrary2
https://pypi.org/project/robotframework-imaplibrary2/
我在尝试使用 Get Links From Email
关键字时收到此 LookupError:
Open Mailbox server=imap.googlemail.com user=user@mail.com password=pass ${proWelcomeMail} = Wait for Email recipient=${USER_EMAIL} subject=Welcome
Open Link From Email ${proWelcomeMail}
...
Close Mailbox
输出:
ImapLibrary . Get Links From Email ${proWelcomeMail}
LookupError: 'quoted-printable' is not a text encoding; use codecs.decode() to handle arbitrary codecs
请问有解决办法吗?
您可以自行更改库的代码,因为它没有被维护者修复。将文件 init.py "decode('quoted-printable')" 中的第 135 行更改为 "decode('utf-8')"。
使用已经修复的 fork ImapLibrary2 https://pypi.org/project/robotframework-imaplibrary2/