Re: Python 3 and the requests library

2015-02-09 Thread Ian Kelly
On Mon, Feb 9, 2015 at 2:37 PM, Brian wrote: > 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. Local modules that have the

Re: Python 3 and the requests library

2015-02-09 Thread Brian
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

Re: Python 3 and the requests library

2015-02-09 Thread Zachary Ware
On Mon, Feb 9, 2015 at 2: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 That looks correct. > Just for grins, I also ran it against the built-in Python

Re: Python 3 and the requests library

2015-02-09 Thread Ian Kelly
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 (i

Re: Python 3 and the requests library

2015-02-09 Thread Brian
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 Just for grins, I also ran it against the built-in Python 2.7.5 version: $ python -c "import token;print(token.__file__)" /System/Lib

Re: Python 3 and the requests library

2015-02-09 Thread Zachary Ware
On Mon, Feb 9, 2015 at 1:20 PM, Brian wrote: > I am also seeing this in my Mac Mavericks Python 3 installation when I use > just the built-in logging library. Again, a tiny example executable script > and the results: > > $ cat test2.py > #!/usr/bin/env python3 > import logging > logging.info("T

Re: Python 3 and the requests library

2015-02-09 Thread Brian
I am also seeing this in my Mac Mavericks Python 3 installation when I use just the built-in logging library. Again, a tiny example executable script and the results: $ cat test2.py #!/usr/bin/env python3 import logging logging.info("TEST2 starting") $ ./test2.py Traceback (most recent call las

Python 3 and the requests library

2015-02-09 Thread Brian
On the Mac running Mavericks, I have successfully managed to install and use the requests library for HTTP and HTTPS requests using Python 2. But I'd like to move to Python 3. I downloaded the most recent stable version of Python 3 for Mac. All is well. I did a pip3 install requests command and