RE: Simple import in python 3 errors with complaint about bytes

2014-10-20 Thread Mike Boyle
re...). Thanks very much! > From: ian.g.ke...@gmail.com > Date: Mon, 20 Oct 2014 17:48:23 -0600 > Subject: Re: Simple import in python 3 errors with complaint about bytes > To: python-list@python.org > > On Mon, Oct 20, 2014 at 5:29 PM, Mike Boyle wrote: >> I'm modifying

Re: Simple import in python 3 errors with complaint about bytes

2014-10-20 Thread Chris Angelico
On Tue, Oct 21, 2014 at 10:29 AM, Mike Boyle wrote: > But when it hits that line, python 3 throws its hands up in disgust: > >> python -c 'import quaternion' Just something crazy to try: Instead of using python -c, create an actual script with just that one line in it. It might be that you have s

Re: Simple import in python 3 errors with complaint about bytes

2014-10-20 Thread Ian Kelly
On Mon, Oct 20, 2014 at 5:29 PM, Mike Boyle wrote: > I'm modifying an extension written with the c-api to have a datatype of > quaternions , with one of the > goals being python 3 support. It works nicely in python 2.7, but for python > 3.x gives an e

Re: Simple import in python 3 errors with complaint about bytes

2014-10-20 Thread Chris Kaynor
Are you perhaps doing an import inside of the C code? Chris On Mon, Oct 20, 2014 at 4:29 PM, Mike Boyle wrote: > I'm modifying an extension written with the c-api to have a datatype of > quaternions , with one of the > goals being python 3 support. It