Simple import in python 3 errors with complaint about bytes

2014-10-20 Thread Mike Boyle
I'm modifying an extension written with the c-api to have a datatype of quaternions https://github.com/moble/numpy_quaternion, with one of the goals being python 3 support.  It works nicely in python 2.7, but for python 3.x gives an error that I can't find anywhere on the google.  The directory

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 moboyl...@outlook.com wrote: I'm modifying an extension written with the c-api to have a datatype of quaternions https://github.com/moble/numpy_quaternion, with one of the goals being

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 moboyl...@outlook.com wrote: I'm modifying an extension written with the c-api to have a datatype of quaternions https://github.com/moble/numpy_quaternion, with one of the goals being python 3 support. It works nicely in python 2.7, but for python

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 moboyl...@outlook.com 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

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

2014-10-20 Thread Mike Boyle
: 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 moboyl...@outlook.com wrote: I'm modifying an extension written with the c-api to have