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 03-31-2014, 05:13 AM   #1
fem
Member
fem began at the beginning.
 
fem's Avatar
 
Posts: 20
Karma: 10
Join Date: Mar 2014
Device: Onyx c65 Afterglow
failed to load icu

So I trie to install the git version of calibre and wanted to setup a development environment. I issued following command (as described in the INSTALL file)

Code:
sudo python setup.py develop
which fails with following error.

Code:
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/billiau/git/calibre/setup/__init__.py", line 181, in run_all
    self.run_cmd(self, opts)
  File "/home/billiau/git/calibre/setup/__init__.py", line 173, in run_cmd
    cmd.pre_sub_commands(opts)
  File "/home/billiau/git/calibre/setup/install.py", line 127, in pre_sub_commands
    import calibre.utils.config as c
  File "/home/billiau/git/calibre/src/calibre/__init__.py", line 21, in <module>
    from calibre.startup import winutil, winutilerror
  File "/home/billiau/git/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/billiau/git/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/billiau/git/calibre/src/calibre/ptempfile.py:27: RuntimeWarning: Parent module 'calibre' not found while handling absolute import
  import shutil
if I just

Code:
dpkg --get-selections | grep libicu
I get this list:

Code:
libicu-dev					install
libicu44					deinstall
libicu48:amd64					install
libicu4j-4.4-java				install
libicu4j-java					install
I'm running ubuntu 13.10

Is there something I'm missing here? Do I explictely need libicu44?

wkr
fem is offline   Reply With Quote
Old 03-31-2014, 05:28 AM   #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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The first thing you need to do is uninstall your distro version of calibre, which will be too old to run current development code.

Install the calibre binary from the calibre website, http://calibre-ebook.com/download_linux then try to setup the development environment.
kovidgoyal is offline   Reply With Quote
Old 03-31-2014, 07:42 AM   #3
fem
Member
fem began at the beginning.
 
fem's Avatar
 
Posts: 20
Karma: 10
Join Date: Mar 2014
Device: Onyx c65 Afterglow
I got the same result.

I purged calibre from my system and then went ahead and did this:

Code:
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
Cloned a calibre fork from github and tried

Code:
sudo python setup.py develop

But I still get the icu error.
fem is offline   Reply With Quote
Old 03-31-2014, 07:59 AM   #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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
To setup a development environment, you need to be following these instructions: http://manual.calibre-ebook.com/develop.html

Use the instriuctions for linux with a binary install
kovidgoyal is offline   Reply With Quote
Old 03-31-2014, 08:24 AM   #5
fem
Member
fem began at the beginning.
 
fem's Avatar
 
Posts: 20
Karma: 10
Join Date: Mar 2014
Device: Onyx c65 Afterglow
Aha, ok! It works.

I got the protocol all wrong! Sorry for all the confusion.

I now installed the binary, cloned from git and then instead of trying to setup I _only_ set the CALIBRE_DEVELOP_FROM. And it works
fem is offline   Reply With Quote
Old 04-03-2014, 04:55 AM   #6
favour
Junior Member
favour began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2014
Device: all
the same as I

I have the same question, but I dont know how to chek it !
favour is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre failed to load after 1.12.0 down load junglered Recipes 2 11-27-2013 10:15 PM
Please help with calibre -- Loading ICU failed pmiles Calibre 1 12-18-2012 11:27 PM
RuntimeError: Failed to load ImageMagick chris1412 Calibre 2 07-14-2012 04:58 AM
Calibre 0.7.9 failed to load ImageMagick Eldomir Calibre 4 07-21-2010 09:08 PM
Failed to load ImageMagick trustno12003 Calibre 2 06-17-2009 12:25 AM


All times are GMT -4. The time now is 08:34 AM.


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