Quote:
Originally Posted by eschwartz
@thiago.eec
You can get a debug log by using:
Preferences -> Restart in debug mode
It will create a text file containing the debug log, IIRC.
|
I did the porting using
modernize now. Got better results:
1) ACE ported almost flawlessly. It works fine but for one error in the config dialog:
a) OPEN FOLDER. This gives the same error reported by @JimmXinu.
Spoiler:
calibre, version 4.99.0
ERRO: Exceção sem tratamento: <b>TypeError</b>:%b requires a bytes-like object, or an object that implements __bytes__, not 'int'
calibre 4.99 Portable embedded-python: True is64bit: False
Windows-10-10.0.18362-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.18362')
Python 3.8.0
Windows: ('10', '10.0.18362', 'SP0', '')
Interface language: pt_BR
Successfully initialized third party plugins: ACE (1, 1, 0) && Skoob Sync (0, 3, 0)
Traceback (most recent call last):
File "calibre_plugins.ACE.config", line 158, in get_directory
File "win_file_dialogs.py", line 238, in choose_dir
File "win_file_dialogs.py", line 161, in run_file_dialog
File "win_file_dialogs.py", line 59, in serialize_binary
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'int'
2) Skoob Sync had more problems. First I had a problem with encoding a password with base64 (which I ended up giving up). There were a lot of other errors about encode/decode of strings/bytes with urllib requests.
Right now, it is working partially. Some functions work, others make calibre hang. Trying to debug now...
______________________________
EDIT: Looks like the problem is on my multi-threading code. Until now (4.6), sometimes I got an error like this:
Code:
QObject::setParent: Cannot set parent, new parent is in a different thread
But it did not prevent the plugin to run. Now, every time this error shows up, calibre hangs. Apparently, python 3 is more error intolerant ....
This is my code for multi-threading:
Anyway... I will keep digging.