On Thu, Feb 7, 2019 at 9:13 PM Berni Joss <berni.joss@xxxxxxxxx> wrote:
>
> Both python bindings for libftdi 1.2 and 1.4 work fine for me with python
> 2.7.
> From your message it is not clear what your specific issue is, so it is not
> easy to provide more useful information :-)
>
> On Thu, Feb 7, 2019 at 3:51 PM Mgr. Martin Pecka <peckama2@xxxxxxxxxxx> wrote:
>>
>> There is a problem with the python bindings for libftdi.
>>
>> Several sources [1, 2] say that to use python bindings with Python 2,
>> libftdi has to be in version 1.0 <= libftdi <= 1.2, whereas to work with
>> Python 3, it has to be >= 1.3.
>>
>> That's quite unfortunate. Is there a possibility to resolve this issue so
>> that a single version of libftdi would be usable in both Python 2 and Python
>> 3?
>>
>> People were reporting [3, 4, 5] even your own examples in repo fail to run
>> in version 1.3+.
>>
>> So far, I filed an Ubuntu packaging issue [6] to provide both version 1.2
>> and 1.4, but I think it has a pretty low probability to get resolved...
>>
>> Thanks you for helping resolve this unfortunate issue.
>>
>> [1]
>> https://github.com/adafruit/Adafruit_Python_GPIO/issues/61#issuecomment-363477104
>> [2]
>> https://github.com/adafruit/Adafruit_Python_GPIO/issues/50#issuecomment-363479708
>> [3]
>> http://developer.intra2net.com/git/?p=libftdi;a=blob;f=python/examples/complete.py;h=d949fcaf86203f5b184af59072f9004797084672;hb=HEAD
>> [4]
>> http://developer.intra2net.com/mailarchive/html/libftdi/2018/msg00081.html
>> [5]
>> http://developer.intra2net.com/mailarchive/html/libftdi/2018/msg00008.html
>> [6] https://bugs.launchpad.net/ubuntu/+source/libftdi1/+bug/1815049
I have a strange behavoir/error when importing ftdy in Python 2.7:
File "usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
ImportError: /usr/lib/python2.7/site-packages/_ftdi1.so: undefined
symbol: str2charp_size
Systeminfo: Python 2.7.16, SWIG 3.0.12/4.0.0, gcc version 7.3.1
20180425 [linaro-7.3-2018.05 revision
d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)
libftdi: master branch
Any idea?
Yegor
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|