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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-23-2022, 06:55 AM   #1066
cedm
Junior Member
cedm began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2022
Device: Kobo Libra 2
Quote:
Originally Posted by frailtyy View Post
Seeing something strange when attempting to configure the plugin on Linux:



If there's anything else I can pull to help, feel free to let me know.
Hello all,

I installed the Annotation plugin and I have the same error on Fedora. I saw that it was Python version related but I was wondering if you had find the root cause for this?

Let me know if I can help or even report a bug on the Git?

Kind regards,

CM
cedm is offline   Reply With Quote
Old 06-24-2022, 12:11 AM   #1067
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,483
Karma: 46824438
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by cedm View Post
Hello all,

I installed the Annotation plugin and I have the same error on Fedora. I saw that it was Python version related but I was wondering if you had find the root cause for this?

Let me know if I can help or even report a bug on the Git?
The fix for what @cedm reported should have been in version 1.17.0 of the plugin. Can you actually post the details of the error so that we can see if it is actually the same. Or try installing the beta posted during the last few days. That does have a fix for a problem that would only be seen on Linux, but, it is not the error reported by @cedm.
davidfor is online now   Reply With Quote
Old 06-24-2022, 03:23 AM   #1068
cedm
Junior Member
cedm began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2022
Device: Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
The fix for what @cedm reported should have been in version 1.17.0 of the plugin. Can you actually post the details of the error so that we can see if it is actually the same. Or try installing the beta posted during the last few days. That does have a fix for a problem that would only be seen on Linux, but, it is not the error reported by @cedm.

Here is the message I have when I launch the "Customize plugin" option from the menu. The plugin seems to be the version 1.17.0. In the meantime, I give a try to the beta version and I let you know if there is an other behaviour.

Code:
calibre, version 5.42.0
ERROR: Unhandled exception: <b>AttributeError</b>:module 'collections' has no attribute 'Callable'

calibre 5.42  embedded-python: False is64bit: True
Linux-5.18.5-200.fc36.x86_64-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.18.5-200.fc36.x86_64', '#1 SMP PREEMPT_DYNAMIC Thu Jun 16 14:51:11 UTC 2022')
Python 3.10.5
Interface language: None
Successfully initialized third party plugins: Annotations (1, 17, 0)
Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 1343, in show_configuration
    self.interface_action_base_plugin.do_user_config(self.gui)
  File "/usr/lib64/calibre/calibre/customize/__init__.py", line 166, in do_user_config
    config_widget = self.config_widget()
  File "calibre_plugins.annotations.__init__", line 28, in config_widget
    self.cw = ConfigWidget(self.actual_plugin_)
  File "calibre_plugins.annotations.config", line 197, in __init__
    restore_state(self)
  File "calibre_plugins.annotations.common_utils", line 1189, in restore_state
    if isinstance(setter_ref, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'
cedm is offline   Reply With Quote
Old 06-24-2022, 03:38 AM   #1069
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,483
Karma: 46824438
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by cedm View Post
Here is the message I have when I launch the "Customize plugin" option from the menu. The plugin seems to be the version 1.17.0. In the meantime, I give a try to the beta version and I let you know if there is an other behaviour.

Code:
calibre, version 5.42.0
ERROR: Unhandled exception: <b>AttributeError</b>:module 'collections' has no attribute 'Callable'

calibre 5.42  embedded-python: False is64bit: True
Linux-5.18.5-200.fc36.x86_64-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.18.5-200.fc36.x86_64', '#1 SMP PREEMPT_DYNAMIC Thu Jun 16 14:51:11 UTC 2022')
Python 3.10.5
Interface language: None
Successfully initialized third party plugins: Annotations (1, 17, 0)
Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 1343, in show_configuration
    self.interface_action_base_plugin.do_user_config(self.gui)
  File "/usr/lib64/calibre/calibre/customize/__init__.py", line 166, in do_user_config
    config_widget = self.config_widget()
  File "calibre_plugins.annotations.__init__", line 28, in config_widget
    self.cw = ConfigWidget(self.actual_plugin_)
  File "calibre_plugins.annotations.config", line 197, in __init__
    restore_state(self)
  File "calibre_plugins.annotations.common_utils", line 1189, in restore_state
    if isinstance(setter_ref, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'
OK. The change I was thinking of was not in version 1.17.0 of the plugin. It is in the beta I put up earlier in the week. It is in the post immediately before yours. Please try that and tell me how it goes. I am intending to release this over the weekend, but, I have been waiting for comments on whether it fixes the reported problems.
davidfor is online now   Reply With Quote
Old 06-25-2022, 08:03 AM   #1070
cedm
Junior Member
cedm began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2022
Device: Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
OK. The change I was thinking of was not in version 1.17.0 of the plugin. It is in the beta I put up earlier in the week. It is in the post immediately before yours. Please try that and tell me how it goes. I am intending to release this over the weekend, but, I have been waiting for comments on whether it fixes the reported problems.
I tested the beta version and the "Customize plugin" is working properly but when I want to fetch the annotations from my book reader (Kobo Libra 2), there is another error message

Code:
calibre, version 5.42.0
ERROR: Unhandled exception: <b>AttributeError</b>:'KOBOTOUCH' object has no attribute 'current_friendly_name'

calibre 5.42  embedded-python: False is64bit: True
Linux-5.18.5-200.fc36.x86_64-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.18.5-200.fc36.x86_64', '#1 SMP PREEMPT_DYNAMIC Thu Jun 16 14:51:11 UTC 2022')
Python 3.10.5
Interface language: None
Successfully initialized third party plugins: Annotations (1, 17, 4)
Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 363, in fetch_usb_connected_device_annotations
    self.fetch_usb_device_annotations(self.get_connected_device_primary_name())
  File "calibre_plugins.annotations.action", line 399, in fetch_usb_device_annotations
    self.selected_mi = get_selected_book_mi(self.get_options(),
  File "calibre_plugins.annotations.action", line 675, in get_options
    self.opts['device_name'] = self.connected_device.current_friendly_name
AttributeError: 'KOBOTOUCH' object has no attribute 'current_friendly_name'
cedm is offline   Reply With Quote
Old 06-25-2022, 10:07 AM   #1071
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,483
Karma: 46824438
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by cedm View Post
I tested the beta version and the "Customize plugin" is working properly but when I want to fetch the annotations from my book reader (Kobo Libra 2), there is another error message

Code:
calibre, version 5.42.0
ERROR: Unhandled exception: <b>AttributeError</b>:'KOBOTOUCH' object has no attribute 'current_friendly_name'

calibre 5.42  embedded-python: False is64bit: True
Linux-5.18.5-200.fc36.x86_64-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.18.5-200.fc36.x86_64', '#1 SMP PREEMPT_DYNAMIC Thu Jun 16 14:51:11 UTC 2022')
Python 3.10.5
Interface language: None
Successfully initialized third party plugins: Annotations (1, 17, 4)
Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 363, in fetch_usb_connected_device_annotations
    self.fetch_usb_device_annotations(self.get_connected_device_primary_name())
  File "calibre_plugins.annotations.action", line 399, in fetch_usb_device_annotations
    self.selected_mi = get_selected_book_mi(self.get_options(),
  File "calibre_plugins.annotations.action", line 675, in get_options
    self.opts['device_name'] = self.connected_device.current_friendly_name
AttributeError: 'KOBOTOUCH' object has no attribute 'current_friendly_name'
That's embarrassing. I didn't even test it against my own device

The attached beta works here. And should work for MTP devices as well. Let me know who it goes.
Attached Files
File Type: zip Annotations-beta.zip (681.2 KB, 51 views)
davidfor is online now   Reply With Quote
Old 06-26-2022, 05:12 AM   #1072
Carbon
Junior Member
Carbon began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2021
Device: android
support Moon+ reader

Quote:
Originally Posted by davidfor View Post
That's embarrassing. I didn't even test it against my own device

The attached beta works here. And should work for MTP devices as well. Let me know who it goes.
dear davidfor,
if convenient, please consider the pr 23 and pr 25 in github, it's very important for the Android user.
thanks.
Carbon is offline   Reply With Quote
Old 06-26-2022, 03:39 PM   #1073
cedm
Junior Member
cedm began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2022
Device: Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
That's embarrassing. I didn't even test it against my own device

The attached beta works here. And should work for MTP devices as well. Let me know who it goes.
This beta version works perfectly, thank you!
cedm is offline   Reply With Quote
Old 06-27-2022, 12:31 AM   #1074
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,483
Karma: 46824438
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Carbon View Post
dear davidfor,
if convenient, please consider the pr 23 and pr 25 in github, it's very important for the Android user.
I did. But, when I looked, both of them had been closed and the branches they were based on removed. I see the branches have been restored, but, the PRs have not been reopened. I have reopened them and plan to look at them next weekend. But, the fixes I have posted here are separate to that and will be released first.
davidfor is online now   Reply With Quote
Old 06-27-2022, 12:33 AM   #1075
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,483
Karma: 46824438
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by cedm View Post
This beta version works perfectly, thank you!
Great. Time permitting, and if the cats let me at the keyboard, I'll release this in the next couple of days.
davidfor is online now   Reply With Quote
Old 06-27-2022, 05:22 AM   #1076
aik099
Member
aik099 began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2020
Device: Kindle Keyboard WiFi v3.4.3
Quote:
Originally Posted by davidfor View Post
That's embarrassing. I didn't even test it against my own device

The attached beta works here. And should work for MTP devices as well. Let me know who it goes.
Tested 1.17.5 version on Onyx Boox device on Mac.
aik099 is offline   Reply With Quote
Old 06-27-2022, 03:09 PM   #1077
Huwaetzel
Member
Huwaetzel began at the beginning.
 
Posts: 24
Karma: 10
Join Date: May 2011
Device: Pocketbook 903
Hi, this beta version also works for me on my PB741 perfectly. No error message. Looking forward to the final version
Huwaetzel is offline   Reply With Quote
Reply

Tags
sampleexportingapp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 488 03-21-2022 03:49 AM
[GUI Plugin] Open With kiwidude Plugins 389 02-02-2022 06:03 AM
[GUI Plugin] Annotations (closed) GRiker Plugins 68 06-17-2014 06:11 AM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 01:57 AM.


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