-
Notifications
You must be signed in to change notification settings - Fork 826
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
TypeError: get() takes 1 positional argument but 2 were given #9
Comments
What version of requests do you have installed? |
I've just checked : 2.4.3 for Python 3 (I just tested the previous code with this Python version) and requests 2.12.1 for Python 2 ! |
Make sure you have the most recent version of requests in both environments, with: |
Yes, I've got the most recent version on Python 3.4 available with pip --upgrade ! It's always 2.4.3, no changes. For Python 2.7 upgrade didn't work, but I didn't use it for these particular case. |
Ok. Try upgrading OSMnx to its latest beta version: 0.1b2:
I added a new piece of code that should let it work with old versions of requests, include v2.4.x. |
That's nice, thank you very much ! I used also sudo pip3 install --ignore-installed requests command, because I found an "owed by OS" message very strange. By curiosity, which requests version do you have ? I'm quite sure that 2.4.3 is the most recent on my system ! Now I've got OSMnx 0.1b2 version (just checked it), so I ran the same command but... new error :-/...
Do you prefer that I open a new issue with that and close this one ? Thank you again for your time and advices ! |
I'm using requests 2.12.1 in both my Python (3.5 and 2.7) environments. Regarding the NetworkXPointlessConcept, there's an open issue for that right now: #8. Would you comment on that issue with your details as I'm working on it there? |
Good morning !
I've just installed OSMnx on my laptop running on Linux SMP Debian 3.16.7-ckt25-2 (kernel release 3.16.0-4-amd64), for both versions of Python.
Now I just tested this commands :
But then, got these error :
Thanks in advance, and have a nice day !
EDIT : I'm working with an iPython notebook.
The text was updated successfully, but these errors were encountered: