When I try to start libprs500 after running the first code, I get this error message:
An unexpected error has occurred during execution of the main script
IOError: [Errno 4] Interrupted system call"
There are two buttons: Console, and Terminate
I've tried to start libprs500 several more times since writing the above. Two times it ran without error and I was able to add a book. Four or five times I got the error and had to "terminate."
The second code gives: