View Single Post
Old 08-17-2014, 01:24 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,435
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot inherit from a builtin driver class like that. The plugin loading system has no way to know which is the driver class, MTP_DEVICE or MSYNC

You need to inherit from the DevicePlugin class instead.

If you really want to inherit from MTP_DEVICE then create a driver.py file in your plugin and do it in that, then simply import MSYNC into __init__.py like this

from calibre_plugins.my_plugin_import_name.driver import MSYNC
kovidgoyal is online now   Reply With Quote