I bought the book 'Python Programming And GUIs' by Andrew Pratt some time ago and got the demo (using ftdi bit-banging) working from the live Slackware disk and also from a Kubuntu installation on the hard drive using Python 2.7.
After a few Kubuntu upgrades, the demo no longer works. I decided to get it working on my Raspberry PI and this required a recompile of the fdti library, which eventually appeared to work. I also tried to compile the _simple_fdti.so shared Python library, with some errors and a smaller file size, and so I am using the original. However, I suspect that it uses X86 rather than ARM code.
The problem I have is that, even running as root in the /root directory and with _simple_fdti.so copied into the directory with the other files, I get the report:
ImportError: /root/demo/_simple_ftdi.so: cannot open shared object file: No such file or directory.
'ls' reports that the file is there. I have checked the 'from' lines in interface_classes.py; It has been like this for several versions of Kubuntu and now with Raspbian (using Python 2.7).
from Tkinter import *
from math import *
from _simple_ftdi import *
The first two are fine from the Python command line, but 'from _simple_fdti import *' gives the above warning.
Changing the extension to .py results in the file opening, but failing as a module. At least Python can see the file. BTW the file is also copied to /usr/local/libs/Python 2.7 as suggested in the book.
Any advice? Even though the Raspberry Pi is its own 'bit-banger' it would be nice to get the FTDI module working with Python.
Roy Leith
