|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Running from source and win_fonts
I updated my source this morning and tried to run it. I got the following:
Code:
Traceback (most recent call last):
File "D:\CalibreDev\calibre\src\calibre\gui2\main.py", line 266, in initialize
self.initialize_db()
File "D:\CalibreDev\calibre\src\calibre\gui2\main.py", line 247, in initialize_db
self.initialize_db_stage2(db, None)
File "D:\CalibreDev\calibre\src\calibre\gui2\main.py", line 223, in initialize_db_stage2
self.start_gui(db)
File "D:\CalibreDev\calibre\src\calibre\gui2\main.py", line 175, in start_gui
main.initialize(self.library_path, db, self.listener, self.actions)
File "D:\CalibreDev\calibre\src\calibre\gui2\ui.py", line 196, in initialize
from calibre.utils.fonts import fontconfig
File "D:\CalibreDev\calibre\src\calibre\utils\fonts\__init__.py", line 62, in <module>
fontconfig = Fonts()
File "D:\CalibreDev\calibre\src\calibre\utils\fonts\__init__.py", line 16, in __init__
self.backend = load_winfonts()
File "D:\CalibreDev\calibre\src\calibre\utils\fonts\win_fonts.py", line 104, in load_winfonts
raise RuntimeError('Failed to load the winfonts module: %s'%err)
RuntimeError: Failed to load the winfonts module: No module named winfonts
Looking at the code, I think it is looking for a DLL which hasn't been built. Has there been a change in the development setup, or is this something else? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need a C module that isn't built with the source code. I'll post a build of calibre with the module in a bit, but you can temporarily workaround the issue by replacing the line
from calibre.constants import iswindows with iswindows = False in the file utils/fonts/__init__.py |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I thought that was the case. The workaround worked.
Thanks. |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Here's a build with the C module included: http://calibre-ebook.com/downloads/b...ibre-0.9.0.msi
|
|
|
|
|
|
#5 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
That worked to. Thanks again for the quick response.
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help requested from people running from source | chaley | Calibre | 8 | 11-11-2011 01:28 AM |
| For people running calibre from source | kovidgoyal | Calibre | 4 | 08-19-2011 05:28 PM |
| Error while running calibre with source | Lev667 | Development | 3 | 03-05-2011 10:55 AM |
| Running from source after V0.7.32 | chaley | Calibre | 0 | 12-04-2010 01:08 PM |
| Note for those running from source and 0.7.2 | chaley | Calibre | 1 | 06-12-2010 09:19 AM |