View Single Post
Old 03-27-2010, 02:29 AM   #15
tonyx3
Connoisseur
tonyx3 began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jan 2010
Device: Nexus One
Ok, so per your earlier advice, I tried to just edit the Android driver.py and make my own plugin for it, by adding my BCD to the list. Then I renamed my plugin 'myandroiddriver_plugin.py' as per the User Manual, and added it to a .zip, and tried to add it to the plugins in calibre.

but I got this error:

Code:
ERROR: ERROR: Unhandled exception: <b>SyntaxError</b>:encoding declaration in Unicode string (<string>, line 0)

Traceback (most recent call last):
  File "/home/kovid/build/calibre/src/calibre/gui2/dialogs/config/__init__.py", line 531, in add_plugin
  File "/home/kovid/build/calibre/src/calibre/customize/ui.py", line 271, in add_plugin
  File "/home/kovid/build/calibre/src/calibre/customize/ui.py", line 67, in load_plugin
  File "<string>", line 0
 SyntaxError: encoding declaration in Unicode string (<string>, line 0)
I'm not sure if it's possible for the plugin system to use a custom device driver, as the User Manual only talks about plugins for filetypes and metadata and such. There's no mention anywhere of device drivers.

All I did was get the driver.py from the sourcecode package and edit it, and then try to follow the plugin installation method from the manual.

What am I missing?
tonyx3 is offline   Reply With Quote