我很难弄清楚这个错误。你试试 ro 运行一个简单的脚本,如下所示:

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.

最佳答案

我遇到了同样的问题,我通过卸载然后重新安装来解决它:

pip uninstall instapy-cli
pip install instapy-cli

关于python - OSError : Unable to upload,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/59147837/

10-15 12:52