Python 3 and the requests library

Brian brian.from.fl at gmail.com
Mon Feb 9 16:37:56 EST 2015


Thank you, Ian and Zack! That was exactly the issue. Apparently, having a token.py script (one of my first Python 2 scripts to get an authorization token from a billing server) is OK for Python 2 but breaks Python 3.

*face palm*

Thank you again so very much!

Brian

On Monday, February 9, 2015 at 3:59:11 PM UTC-5, Ian wrote:
> On Mon, Feb 9, 2015 at 1:37 PM, Brian wrote:
> > Zach,
> >
> > Here is what I get on the Mac:
> >
> > $ python3 -c "import token;print(token.__file__)"
> > /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/token.py
> 
> Are you running this from the same directory where you have your test
> scripts (in case there is also a token module hanging around in that
> directory)?



More information about the Python-list mailing list