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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2012, 10:50 PM   #1
davidfor
Wizard
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: 4,244
Karma: 3677992
Join Date: Jul 2011
Location: Australia
Device: Kobo Touch, Kobo Glo
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
It has been a couple of weeks since I tried this, but it was working then.

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?
davidfor is online now   Reply With Quote
Old 10-01-2012, 10:57 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 24,805
Karma: 4369673
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
kovidgoyal is online now   Reply With Quote
Old 10-01-2012, 11:15 PM   #3
davidfor
Wizard
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: 4,244
Karma: 3677992
Join Date: Jul 2011
Location: Australia
Device: Kobo Touch, Kobo Glo
I thought that was the case. The workaround worked.

Thanks.
davidfor is online now   Reply With Quote
Old 10-01-2012, 11:37 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 24,805
Karma: 4369673
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
kovidgoyal is online now   Reply With Quote
Old 10-02-2012, 03:22 AM   #5
davidfor
Wizard
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: 4,244
Karma: 3677992
Join Date: Jul 2011
Location: Australia
Device: Kobo Touch, Kobo Glo
That worked to. Thanks again for the quick response.
davidfor is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help requested from people running from source chaley Calibre 8 11-11-2011 12:28 AM
For people running calibre from source kovidgoyal Calibre 4 08-19-2011 04:28 PM
Error while running calibre with source Lev667 Development 3 03-05-2011 09:55 AM
Running from source after V0.7.32 chaley Calibre 0 12-04-2010 12:08 PM
Note for those running from source and 0.7.2 chaley Calibre 1 06-12-2010 08:19 AM


All times are GMT -4. The time now is 03:24 AM.


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