Simple import in python 3 errors with complaint about bytes

Chris Angelico rosuav at gmail.com
Mon Oct 20 19:54:37 EDT 2014


On Tue, Oct 21, 2014 at 10:29 AM, Mike Boyle <moboyle79 at 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 be that you have
some strange console config that's causing problems.

You may also want to try changing all your names to be unique
("quaternion1" as the package name, "quaternion2" as the Python file
in it, etc), which should tell you which one it's actually failing on.

ChrisA



More information about the Python-list mailing list