我很难度过这个错误。您可以尝试运行以下简单脚本:
from instapy_cli import client
username = "username"
password = "password"
image = "Image.jpg"
description = "This is a test"
with client(username, password) as cli:
cli.upload(image, description)
我得到以下错误:
[IG] not found cookie/cookie_file >> login as default
Error parsing error response: Expecting value: line 1 column 1 (char 0)
Error is >>
Bad Request
Something went bad.
Please retry or send an issue on https://github.com/b3nab/instapy-cli
Traceback (most recent call last):
File "c:/Users/Lucas/Desktop/Python/Proyectos/Insta Automation/Matetemático/Posting Script.py", line 15, in <module>
cli.upload(imagen, text)
File "C:\Users\Lucas\AppData\Roaming\Python\Python37\site-packages\instapy_cli\cli.py", line 153, in upload
raise IOError("Unable to upload.")
OSError: Unable to upload.
答案 0 :(得分:0)
我遇到了同样的问题,我通过卸载然后重新安装解决了该问题:
pip uninstall instapy-cli
pip install instapy-cli
答案 1 :(得分:0)
安装这些包应该大于特定版本 [instabot 0.117.0 需要moviepy>=1.0.1,但你有moviepy 0.2.3.2,它不兼容。 instabot 0.117.0 需要 tqdm>=4.41.1,但您有不兼容的 tqdm 4.11.2]
试试这个