Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 04-27-2011, 08:38 AM   #31
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,223
Karma: 1333994
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Dammit Charles, you are supposed to say this is all impossible to implement and let my todo list empty out a little...

But thanks for the info. I think.
kiwidude is offline  
Old 04-27-2011, 09:07 AM   #32
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 4,917
Karma: 802172
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by kiwidude View Post
Dammit Charles, you are supposed to say this is all impossible to implement and let my todo list empty out a little...

But thanks for the info. I think.
I forgot to mention using those signals can corrupt the USB cable connecting a device to the computer, causing the connected device to melt into a puddle of plastic that cannot be disposed of without a WEEE license. No known workaround.
chaley is offline  
 
Enthusiast
Old 05-08-2011, 12:38 AM   #33
thrawn_aj
quantum mechanic
thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.thrawn_aj ought to be getting tired of karma fortunes by now.
 
thrawn_aj's Avatar
 
Posts: 705
Karma: 483827
Join Date: Aug 2010
Location: NorCal
Device: Nook1, Samsung Transform, Nook2
Thanks for this very useful plugin, kiwidude!
(I'm sure you're aware of this already, but I thought I'd mention that it works just fine with the new 0.8 release of Calibre - think of this as one of those weird "no error occurred" messages in old Windows programs ).
thrawn_aj is offline  
Old 05-08-2011, 12:46 AM   #34
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,735
Karma: 12488297
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by thrawn_aj View Post
"no error occurred"
..............................

Thanks Kiwidude
DoctorOhh is online now  
Old 05-12-2011, 10:25 AM   #35
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,223
Karma: 1333994
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.3 Released

Changes in this release:
  • Rewritten to support multiple devices for device independent lists
  • Allow renaming of devices
  • Allow specifying a device to not automatically be synced to
  • Allow syncing to a device manually while it is connected

Obviously the main feature in this release is support for multiple "device" sync lists. A device could be a location on an e-reader, a folder or iTunes. It no longer uses the Calibre news sync feature and operates completely independently.

Note that the first time you use the plugin after upgrading you will not have any menus available to you. First you must connect to your device/folder/iTunes, then enter the plugin dialog and click the "Add connected device". You can rename it, turn off autosyncing for that device etc. If you have multiple devices of the same type, be sure to rename them from this screen while they are connected to prevent any confusion.

There is also a bug currently in Calibre which means connecting or disconnecting a device while a dialog is open can cause a Calibre crash. So be sure to complete the connection before opening the configuration dialog and then close it before disconnecting. A ticket has been raised but this workaround will ensure you have no issues in the meantime.

Appreciate any thoughts on how well this works.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_1_Toolbar.png
Views:	49
Size:	17.9 KB
ID:	71272   Click image for larger version

Name:	Screenshot_2_Configuration.png
Views:	56
Size:	36.4 KB
ID:	71273  
kiwidude is offline  
Old 05-12-2011, 12:09 PM   #36
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,320
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
My menu is not being updated with the connection of a kindle or a folder.
nynaevelan is offline  
Old 05-12-2011, 12:11 PM   #37
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,223
Karma: 1333994
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Quote:
Originally Posted by nynaevelan View Post
My menu is not being updated with the connection of a kindle or a folder.
Did you go into the configuration dialog after connecting to then click on the Add connected device button?
kiwidude is offline  
Old 05-12-2011, 12:17 PM   #38
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,320
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
I do not have a configuration dialog, all I have is add to default sync list and view default sync list. Then I thought you moved the config to the plugins section in Preferences and I get this error message when clicking on the customize plugin option:

calibre, version 0.8.0
ERROR: Unhandled exception: <b>AttributeError</b>:'BookSyncAction' object has no attribute 'connected_device_info'

Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 262, in customize_plugin
File "site-packages\calibre\gui2\preferences\plugins.py", line 337, in modify_plugin
File "site-packages\calibre\customize\__init__.py", line 150, in do_user_config
File "calibre_plugins.book_sync.__init__", line 62, in config_widget
File "calibre_plugins.book_sync.config", line 202, in __init__
AttributeError: 'BookSyncAction' object has no attribute 'connected_device_info'


Is there somewhere else I should be looking for the config screen??
nynaevelan is offline  
Old 05-12-2011, 12:23 PM   #39
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,223
Karma: 1333994
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Hmmm. It must be throwing an error in building your menus for you to not get the "Configure plugin" option. That would explain why you get the subsequent error above. Run Calibre in debug mode and post any error info you get from when it starts up. Also attach your Book Sync.config file.
kiwidude is offline  
Old 05-12-2011, 12:31 PM   #40
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,320
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Here is the debug info. I had to rename my json file in order for it to be attached.

calibre Debug log
calibre 0.8.0
Windows-7-6.1.7600
Windows
('Windows', '7', '6.1.7600')
Python 2.7.1
Windows: ('7', '6.1.7600', '', 'Multiprocessor Free')
Starting up...
Traceback (most recent call last):
File "site-packages\calibre\gui2\ui.py", line 333, in initialize
File "calibre_plugins.book_sync.action", line 52, in initialization_complete
File "calibre_plugins.book_sync.action", line 102, in rebuild_menus
KeyError: u'syncShortcut'
Started up in 70.010999918
Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 262, in customize_plugin
File "site-packages\calibre\gui2\preferences\plugins.py", line 337, in modify_plugin
File "site-packages\calibre\customize\__init__.py", line 150, in do_user_config
File "calibre_plugins.book_sync.__init__", line 62, in config_widget
File "calibre_plugins.book_sync.config", line 202, in __init__
AttributeError: 'BookSyncAction' object has no attribute 'connected_device_info'
Attached Files
File Type: txt Book Sync.json.txt (76 Bytes, 55 views)
nynaevelan is offline  
Old 05-12-2011, 12:38 PM   #41
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,223
Karma: 1333994
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.3.1 Released

Changes in this release:
  • Bug-fix for first time upgraders who did not have the sync now keyboard shortcut

@Nyn - not quite sure why someone who I had test this previously did not get that error but this should fix it. It is related to a new keyboard shortcut in the config file that wasnt there previously, you hit a combination that caused it to error by not being there, well done
kiwidude is offline  
Old 05-12-2011, 12:55 PM   #42
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,320
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
I am getting this error when connecting my kindle, this is after Calibre finished its startup, then I connected the kindle. I assume I am getting this because Calibre isn't finished "reading" my device before the plugin does it's thing:

calibre, version 0.8.0
ERROR: Unhandled exception: <b>UnboundLocalError</b>:local variable 'device_uuid' referenced before assignment

Traceback (most recent call last):
File "calibre_plugins.book_sync.action", line 254, in _on_device_metadata_available
File "calibre_plugins.book_sync.action", line 115, in rebuild_menus
UnboundLocalError: local variable 'device_uuid' referenced before assignment

This is the info when restarting in debug mode:

calibre Debug log
calibre 0.8.0
Windows-7-6.1.7600
Windows
('Windows', '7', '6.1.7600')
Python 2.7.1
Windows: ('7', '6.1.7600', '', 'Multiprocessor Free')
Starting up...
Started up in 5.99800014496
Job: 1 Get device information finished
No details available.
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG: 0.0 USBMS: dirs are: E:\ documents
DEBUG: 12.2 USBMS: scan from root False E:\documents
DEBUG: 15.4 USBMS: count found in cache: 739, count of files in metadata: 739, need_sync: False
DEBUG: 15.4 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 15.4 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 15.4 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
Job: 2 Get list of books on device finished
No details available.
DEBUG: 21.5 USBMS: starting sync_booklists
BOOKSYNC: Metadata available: {'main': {u'device_store_uuid': u'ea994618-710c-4f6f-b99b-609219252e12', u'prefix': 'E:/', u'device_name': u'Amazon Kindle', u'calibre_version': u'0.8.0', u'location_code': 'main', u'last_library_uuid': u'c261bb36-ccf0-486c-8f6a-b0ee45cc5bec', u'date_last_connected': u'2011-05-12T16:53:37.960000+00:00'}}
Traceback (most recent call last):
File "calibre_plugins.book_sync.action", line 254, in _on_device_metadata_available
File "calibre_plugins.book_sync.action", line 115, in rebuild_menus
UnboundLocalError: local variable 'device_uuid' referenced before assignment

DEBUG: 46.5 USBMS: finished sync_booklists
Job: 3 Send metadata to device finished
No details available.

EDIT: I get the same error when connecting to a folder.

Last edited by nynaevelan; 05-12-2011 at 12:59 PM. Reason: adding more info
nynaevelan is offline  
Old 05-12-2011, 01:07 PM   #43
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,223
Karma: 1333994
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.3.2 Released

Changes in this release:
  • Bug-fix for when have less than two devices configured

@Nyn - my apologies, I clearly needed to test this better for the situation of upgraders. I have just cleared my config file out to simulate exctly your situation and fixed a few other problems as well. Fingers crossed this version should get you up and running. Thanks for your patience.
kiwidude is offline  
Old 05-12-2011, 01:16 PM   #44
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,320
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Quote:
Originally Posted by kiwidude View Post
Changes in this release:
  • Bug-fix for when have less than two devices configured

@Nyn - my apologies, I clearly needed to test this better for the situation of upgraders. I have just cleared my config file out to simulate exctly your situation and fixed a few other problems as well. Fingers crossed this version should get you up and running. Thanks for your patience.
No prob, I do not mind being a beta tester, especially for something that is going to make my life a little easier.

EDIT: I think we have a winner, so far connecting to two different folders are working. This may not have been your intention but I think I am going to set this up to backup my books to their appropriate backup folders along with my kindle and galaxy tab. THANK YOU for this addition.

Last edited by nynaevelan; 05-12-2011 at 01:28 PM. Reason: additional info
nynaevelan is offline  
Old 05-12-2011, 04:33 PM   #45
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,010
Karma: 777817
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I noticed I could not rename a device unless I actually had it plugged in. Is this a deliberate restriction?
itimpi is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Goodreads Sync kiwidude Plugins 650 06-09-2014 03:55 PM
[GUI Plugin] Copy book covers as Standby images (Sony/PocketBook/Kindle/Nook) jackie_w Plugins 112 11-07-2012 10:41 AM
[GUI Plugin] Manage Sony x50 Reader Book List kpw Plugins 159 01-07-2012 02:44 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
[Metadata Download Plugin] Goodreads Metadata **Deprecated** kiwidude Plugins 30 04-23-2011 02:10 PM


All times are GMT -4. The time now is 10:06 PM.


MobileRead.com is a privately owned, operated and funded community.