06-29-2021, 05:21 PM | #1 |
Custom User Title
Posts: 8,626
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Building from source silently fails
On Windows 10 Home, I run Calibre from source using this batch file:
Code:
@ECHO OFF set CALIBRE_DEVELOP_FROM=D:\Documents\git\calibre\src "c:\Program Files\calibre2\calibre-debug" -g Here are things I've tried: - Using Sourcetree to pull the latest code. There was one change about a libstemmer. - Double-checking that Calibre was not silently running in the background. - Switched to a test library in case it was something involving the recent composite column recursion fixes. - Since I'm not sure how to run without plugins with source, temporarily moving my plugins folder outside of Calibre's appdata folder. (in fact, according to last-accessed dates, it doesn't even touch anything in appdata) - Rebooting again. Regular Calibre runs fine, but there's a bugfix I use that's currently in source. Any suggestions? Last edited by ownedbycats; 06-29-2021 at 08:50 PM. |
06-29-2021, 10:03 PM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Open the console window first and then run the bat file inside it, you will hopefully get an actual error message then.
|
06-29-2021, 11:20 PM | #3 |
Custom User Title
Posts: 8,626
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Here's the error:
Code:
calibre 5.22.1* [64bit] embedded-python: True is64bit: True Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: None Traceback (most recent call last): File "runpy.py", line 194, in _run_module_as_main File "runpy.py", line 87, in _run_code File "site.py", line 82, in <module> File "site.py", line 77, in main File "site.py", line 49, in run_entry_point File "D:\Documents\git\calibre\src\calibre\debug.py", line 264, in main calibre(['calibre'] + args[1:]) File "D:\Documents\git\calibre\src\calibre\gui_launch.py", line 60, in calibre print_basic_debug_info() File "D:\Documents\git\calibre\src\calibre\debug.py", line 208, in print_basic_debug_info from calibre.customize.ui import has_external_plugins, initialized_plugins File "D:\Documents\git\calibre\src\calibre\customize\ui.py", line 18, in <module> from calibre.customize.builtins import plugins as builtin_plugins File "D:\Documents\git\calibre\src\calibre\customize\builtins.py", line 752, in <module> from calibre.devices.smart_device_app.driver import SMART_DEVICE_APP File "D:\Documents\git\calibre\src\calibre\devices\smart_device_app\driver.py", line 2051, in <module> from zeroconf import ( ImportError: cannot import name '_LOCAL_TRAILER' from 'zeroconf' (c:\Program Files\calibre2\app\bin\python-lib.bypy.frozen\zeroconf\__init__.pyc) Last edited by ownedbycats; 06-29-2021 at 11:23 PM. |
06-29-2021, 11:27 PM | #4 |
Custom User Title
Posts: 8,626
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
According to https://github.com/kovidgoyal/calibr..._app/driver.py the file was updated 3 days ago with a comment about zeroconf. I will see if I can figure out how to selectively revert that in my copy.
|
06-29-2021, 11:32 PM | #5 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Install the beta from: https://download.calibre-ebook.com/betas/
it has the updated zeroconf |
06-29-2021, 11:40 PM | #6 |
Custom User Title
Posts: 8,626
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Now it's working. Thank you
|
06-30-2021, 01:20 AM | #7 |
Custom User Title
Posts: 8,626
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Also, the beta includes the composite recursion fix. So I can just use the beta for now.
|
07-11-2021, 12:47 AM | #8 |
Member
Posts: 24
Karma: 90156
Join Date: Jul 2017
Device: Nook Glowlight, Sony DPT-CP1
|
Interesting, just got the same error after updating to 5.23 — I guess I have my answer, too, but I would think it was intended to have the updated zeroconf included. Right?
|
07-11-2021, 02:23 AM | #9 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It does have the updated zeroconf included.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to download 04/21 update - fails silently :( | AB9239 | enTourage Archive | 4 | 04-25-2010 08:46 PM |
PRS-600 Accessing the display via /dev/fb fails silently... any ideas why? | Xaphiosis | Sony Reader Dev Corner | 10 | 04-22-2010 07:15 AM |
Building Calibre from source | al35 | Calibre | 3 | 03-24-2010 02:22 PM |
Attempt to add 1187 ebooks in one folder fails silently | earthq | Calibre | 1 | 06-12-2009 12:20 AM |
ComicLRF fails silently from Gui | Cold | Calibre | 1 | 11-07-2008 03:16 PM |