Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #2

Open
farenhite opened this issue Jul 10, 2018 · 5 comments
Open

error #2

farenhite opened this issue Jul 10, 2018 · 5 comments

Comments

@farenhite
Copy link

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?

@gonultasbu
Copy link

same issue persists, doesn't work

@dion-ricky
Copy link

i got the same issue

@xeagl3x
Copy link

xeagl3x commented May 1, 2019

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

@johnvalin
Copy link

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

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

@shashwata27
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants