mr0re1 / pynstagram

Python library that allows you to upload photos to instagram
145 stars 34 forks source link

Python 3.6 Support: AttributeError: module 'urllib' has no attribute 'quote' #25

Closed singerbj closed 6 years ago

singerbj commented 7 years ago

command issued with python 3.6:

pynstagram -u bentesterman -f image.jpg -t '#neato'

Traceback (most recent call last):
  File "C:\Users\bsinger\AppData\Local\Programs\Python\Python36\Scripts\pynstagram-script.py", line 11, in <module>
    load_entry_point('pynstagram==0.1.4', 'console_scripts', 'pynstagram')()
  File "c:\users\bsinger\appdata\local\programs\python\python36\lib\site-packages\pynstagram\__main__.py", line 26, in main
    with pynstagram.client(options.username, password) as client:
  File "c:\users\bsinger\appdata\local\programs\python\python36\lib\site-packages\pynstagram\__init__.py", line 5, in client
    return PynstagramClient(*args, **kwargs)
  File "c:\users\bsinger\appdata\local\programs\python\python36\lib\site-packages\pynstagram\client.py", line 7, in __init__
    self._session.login(username, password)
  File "c:\users\bsinger\appdata\local\programs\python\python36\lib\site-packages\pynstagram\session.py", line 54, in login
    payload = 'signed_body=%s.%s&ig_sig_key_version=4' % (sig, urllib.quote(data))
AttributeError: module 'urllib' has no attribute 'quote'