Score:0

Getting `libftd2xx.so: undefined symbol: stime` with python package and non-root

kr flag

please could you help me?

I have FTDI USB/serial convertor and trying to use vendor's library with Python package ftd2xx. According to FTDI readme, I copied the library to /usr/local/lib, created symlink, unloaded kernel modules. The second piece is Python 3 virtual environment with ftd2xx package.

When I try to list devices using ftd.listDevices(), it works like a charm under root, however, when trying on non-root account, it fails with AttributeError: /usr/local/lib/libftd2xx.so: undefined symbol: stime.

Any idea what's wrong? I also tried to use udev rule SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE="0777" hoping for some permission issue, but no luck.

Running Kubuntu 21.10.

Thanks.

Update

Still no luck about reason.

However, it is possible to comment out the affected lines in _ftd2xx_linux.py file - seems it is not used in the Python wrapper anyway - and run it this way.

Johan Palych avatar
us flag
Read here: https://githubhelp.com/emagii/libftd2xx-x86_64 https://stackoverflow.com/questions/69482582/libc-and-undefined-symbol-stime https://aur.archlinux.org/packages/libftd2xx/
Jaroslav avatar
kr flag
thanks, I'll do.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.