unbit / foohid-py

Python wrapper for the foohid OSX driver
MIT License
18 stars 6 forks source link

Problem with a .so file. Python 3.5, Mac OSX Sierra #5

Closed GoldSloth closed 7 years ago

GoldSloth commented 7 years ago

When ever I try and import foohid, I get an error: (Tried it on 2.7.9 also, same problem)

screen shot 2017-02-14 at 12 16 19

I know this library is no longer maintained, but could someone please help me?

Thanks,

GolddolphinSKB-Fexcraftian

TwistedBlizzard commented 7 years ago

I have the same issue with 3.6.1 but 2.7.13 works fine.

dwang733 commented 7 years ago

The reason is that PyString_FromString is a Python 2 method that doesn't work in Python 3. The most recent commit should have fixed this, so it should work for Python 2 and 3.

GoldSloth commented 7 years ago

Okay, I will try this, Thanks for your work!

GoldSloth commented 7 years ago

I can confirm this issue is now solved. Thanks for your help!

dwang733 commented 7 years ago

Oh, btw, do you mind closing the issue? I can't seem to do it myself for some reason.