Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-03-2014, 04:59 AM   #1
favour
Junior Member
favour began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: all
No module named icu

My Os is centos.
I want to install calibre on source, but I face some questions.
How Can I Do? Thank ALL!
[root@localhost calibre]# sudo python setup.py develop
Dropping privileges to those of root: 0
Hello, world11!
Traceback (most recent call last):
File "setup.py", line 99, in <module>
sys.exit(main())
File "setup.py", line 85, in main
command.run_all(opts)
File "/home/xuliyuan/calibre/setup/__init__.py", line 181, in run_all
self.run_cmd(self, opts)
File "/home/xuliyuan/calibre/setup/__init__.py", line 173, in run_cmd
cmd.pre_sub_commands(opts)
File "/home/xuliyuan/calibre/setup/install.py", line 127, in pre_sub_commands
import calibre.utils.config as c
File "/home/xuliyuan/calibre/src/calibre/__init__.py", line 23, in <module>
from calibre.startup import winutil, winutilerror
File "/home/xuliyuan/calibre/src/calibre/startup.py", line 178, in <module>
from calibre.utils.icu import title_case, lower as icu_lower, upper as icu_upper
File "/home/xuliyuan/calibre/src/calibre/utils/icu.py", line 24, in <module>
raise RuntimeError('Failed to load icu with error: %s' % err)
RuntimeError: Failed to load icu with error: No module named icu
/home/xuliyuan/calibre/src/calibre/ptempfile.py:27: RuntimeWarning: Parent module 'calibre' not found while handling absolute import
import shutil
favour is offline   Reply With Quote
Old 04-08-2014, 11:17 PM   #2
favour
Junior Member
favour began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: all
why?

why no man answer me?
favour is offline   Reply With Quote
Advert
Old 04-08-2014, 11:37 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Try using the binary install, and setting
Code:
CALIBRE_DEVELOP_FROM=/path/to/source/code/
This is the recommended way to hack the source code. You can edit the source code you downloaded/in git, and calibre will use that code for everything (well, not for the handful of C++ components).

See: http://manual.calibre-ebook.com/develop.html

Last edited by eschwartz; 04-08-2014 at 11:43 PM.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ImportError: No module named djvu canadianjameson Conversion 12 04-01-2012 11:23 PM
ImportError: No module named setup pramodxyle Development 4 03-20-2012 12:41 AM
Error on install: No module named PyQt4 good_man Calibre 4 02-18-2011 03:10 PM
ImportError: No module named profiles ould Calibre 11 02-28-2009 07:25 PM
ImportError: No module named pkg_resources erik80 Calibre 3 08-02-2008 09:33 AM


All times are GMT -4. The time now is 09:36 PM.


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