Sorry to awaken a year-old thread! In case anyone is interested I've just been investigating interfacing my PM4 with Linux this evening and found this thread.
Many thanks for writing the Python code!
Yes, it does not work on Ubuntu - not even on the latest version (quantal quetzal) which still provides pyusb version 0.4, there is a simple fix (although it does require the command-line I am afraid), run these two commands:
- Code: Select all
sudo apt-get install python-pip
pip install pyusb
If you already have 'python-usb' installed you will need to add "--upgrade" to the pip line.
Note that there was a minor syntax errors in the 'pyrow.py' file in the .zip I downloaded, on line 39 I needed to change "else" to "except" to get the code to parse.
Anyway - now I've got it working I hope to have time to do something with it. But that's my lot for tonight.