memorpy icon indicating copy to clipboard operation
memorpy copied to clipboard

Python 3 support

Open m-k-l-s opened this issue 7 years ago • 4 comments

Hello,

are you planning on supporting Python 3, please?

If I wanted to try to make it work in Python 3, was there any particular problem with Python 3 that you've encountered (e.g. are there some dependencies which also don't support it)?

Thanks :)

m-k-l-s avatar Mar 02 '18 10:03 m-k-l-s

Hello, You should be fine there is no dependencies in this project, everything is implemented in ctypes

n1nj4sec avatar May 05 '18 15:05 n1nj4sec

https://mehodin.com/i/9447dcac.png <- Getting that error tho, how to fix?

Mehodin avatar May 12 '18 17:05 Mehodin

There's a set of fixes necessary (imports, print-statements, fixing setup.py, handling bytes vs strings) to get memorpy to run properly under python3, but I have a version running. I'll make a PR in a day or two - but I've only tested it under Windows.

As there seems to be no tests available I can't confirm that I haven't broken something outside of the functions I'm using myself.

matslindh avatar Jun 20 '18 10:06 matslindh

I've added a #20 as an initial set of fixes to make memorpy work under Python 3. Since my usage was limited to Windows this time, I haven't tested the patch with other OS-es or that it is in any way backwards compatible with Python 2.

matslindh avatar Jul 07 '18 19:07 matslindh