You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying the basic example to upload a picture to imgur, but whenever I get to the attributes like data, url, link, i get AttributeError: Image instance has no attribute 'date'.
Here is the code I have
importpyimgurCLIENT_ID=""PATH="/Users/jacksongeller/Desktop/imgur/sample.png"im=pyimgur.Imgur(CLIENT_ID)
uploaded_image=im.upload_image(PATH, title="Uploaded with PyImgur")
print(uploaded_image.title)
print(uploaded_image.date)
print(uploaded_image.url)
print(uploaded_image.link)
here is the error
$ python main.py
Uploaded with PyImgur
Traceback (most recent call last):
File "main.py", line 11, in <module>
print(uploaded_image.date)
File "/Library/Python/2.7/site-packages/pyimgur/__init__.py", line 70, in __getattr__
(type(self).__name__, attribute))
AttributeError: Image instance has no attribute 'date'
Am I missing something basic? or a syntax error? I cannot seem to figure it out. Thanks in advance. great module by the way
The text was updated successfully, but these errors were encountered:
I'm trying the basic example to upload a picture to imgur, but whenever I get to the attributes like data, url, link, i get AttributeError: Image instance has no attribute 'date'.
Here is the code I have
here is the error
Am I missing something basic? or a syntax error? I cannot seem to figure it out. Thanks in advance. great module by the way
The text was updated successfully, but these errors were encountered: