OSError:无法上传

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

我度过了艰难的时光,试图找出这个错误。您可以尝试运行类似以下的简单脚本:

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.
python instagram
1个回答
0
投票

我面临相同的问题,我先卸载然后再安装来解决它:

pip uninstall instapy-cli
pip install instapy-cli
© www.soinside.com 2019 - 2024. All rights reserved.