[liblouis-liblouisxml] Re: Python 3 and/or GObject introspection support?

  • From: Michael Whapples <mwhapples@xxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Sun, 13 May 2012 19:47:40 +0100

OK, a slight update: My thought of what the issue was is correct, I have a version where the __init__.py script does work. There are functions the in-built tests of __init__.py do not test and also there are things I want to alter to how my "working" version does things.


So in short I do feel that previous estimate on time is certainly realistic.

Michael Whapples
On 13/05/2012 19:30, Michael Whapples wrote:
I think I may be closing in on the issue. I imagine that given a free day to work on this I should have a python3 version created and tested, this probably will be Tuesday but I will see if I can manage it earlier.

Michael Whapples
On 13/05/2012 06:58, Hammer Attila wrote:
Hy Joanie,

I now installed a python 3.2 environment my Ubuntu 12.04 system.
Testing purpose I tryed the automatic migration tool (2to3 script with part of python 3.2). I sending a patch what want change the script in python/louis/__init__.py.in file. When I patched the file, recompiled Liblouis and run __init__.py file in the python/louis directory, I experienced following: 1. If I use python __init__.py command, the script runs under default pythor 2.7 interpreter, all basic test actions happened right. Right present Liblouis version, and the test english translated braille output.

2. If I use python3.2 __init__.py command, I get following error:
root@hammera-Satellite-L300:/usr/src/liblouis/liblouis/python/louis# python3.2 __init__.py
b'2.3.0'
Traceback (most recent call last):
  File "__init__.py", line 292, in <module>
print(translate(['../tables/en-us-g2.ctb'], 'Hello world!', cursorPos=5))
  File "__init__.py", line 124, in translate
    None, outPos, inPos, byref(cursorPos), mode):
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type
root@hammera-Satellite-L300:/usr/src/liblouis/liblouis/python/louis#

Attila

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: