instagram-unfollowers icon indicating copy to clipboard operation
instagram-unfollowers copied to clipboard

error

Open farenhite opened this issue 5 years ago • 5 comments

F:\py>py -2.7 main.py 528817151 ~ Connecting to Instagram Traceback (most recent call last): File "main.py", line 19, in if insta.login() == False: File "F:\py\insta.py", line 45, in login if (self.SendRequest('accounts/login/', self.generateSignature(json.dumps(data)), True)): File "F:\py\insta.py", line 73, in generateSignature return 'ig_sig_key_version=' + self.SIG_KEY_VERSION + '&signed_body=' + hmac.new(self.IG_SIG_KEY.encode('utf-8'), data.encode('utf-8'), hashlib.sha256).hexdigest() + '.' + urllib.pathname2url(data) File "C:\Users\Amir.windows-build-tools\python27\lib\nturl2path.py", line 60, in pathname2url raise IOError, error IOError: Bad path: .........

i use python 2 and whats the problem?

farenhite avatar Jul 10 '18 17:07 farenhite

same issue persists, doesn't work

gonultasbu avatar Jan 25 '19 07:01 gonultasbu

i got the same issue

dion-ricky avatar Feb 09 '19 03:02 dion-ricky

I have the same issue. Has anyone been able to solve? It has to do with urllib.pathname2url. It is unable to handle the data object being passed in. I'm running on a windows 10 environment

xeagl3x avatar May 01 '19 05:05 xeagl3x

urllib has been updated, it should now be urllib.request.pathname2url

https://stackoverflow.com/questions/30654772/python-3-4-2-urlib-no-attribute-pathname2url

johnvalin avatar Sep 03 '20 05:09 johnvalin

@johnvalin but the project is using python2.7 and if I change to urllib.request.pathname2url it says urllib doesn't have a attribute request

shashwata27 avatar Oct 30 '22 07:10 shashwata27