You are not logged in.

#1 2012-03-22 13:29:36

2k
Member
From: UK
Registered: 2006-02-17
Posts: 76

Errors when trying to run Calibre

Hi there

After hearing some really good things about calibre I have just installed it from AUR, however when i try to run it i'm getting some error messages that I can't find the answers to despite spending several hours searching these forums and google.
the error messages that i'm getting are the following

Traceback (most recent call last):
  File "/usr/bin/calibre", line 19, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/gui2/main.py", line 363, in main
    gui_debug=gui_debug)
  File "/usr/lib/calibre/calibre/gui2/main.py", line 258, in run_gui
    wizard().exec_()
  File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 913, in wizard
    w = Wizard(parent)
  File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 859, in __init__
    self.library_page = LibraryPage()
  File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 659, in __init__
    self.init_languages()
  File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 682, in init_languages
    if l != lang]
  File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 678, in get_esc_lang
    return get_language(l)
  File "/usr/lib/calibre/calibre/utils/localization.py", line 196, in get_language
    iso639 = _load_iso639()
  File "/usr/lib/calibre/calibre/utils/localization.py", line 185, in _load_iso639
    with open(ip, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/share/calibre/localization/iso639.pickle'

I don't know what else to say other than the system was fully updated before i started to install it, I used makepkg to install it, there is as far as i know nothing unusual about my machine or setup.

thanks for any help that can be offered

Mike

Offline

#2 2012-03-22 13:36:16

2k
Member
From: UK
Registered: 2006-02-17
Posts: 76

Re: Errors when trying to run Calibre

I should add that i read that i should run Run

python setup.py iso639

to generate the pickle file.

however that produces the error

python: can't open file 'setup.py': [Errno 2] No such file or directory

Offline

#3 2012-03-22 14:15:52

2k
Member
From: UK
Registered: 2006-02-17
Posts: 76

Re: Errors when trying to run Calibre

right I messed the last post up slightly as I was in the wrong directory!

however when i go into ~/aur/calibre-bzr/src/calibre and run python setup.py iso639

the error i'm now getting is

python setup.py iso639
  File "setup.py", line 43
    print 'Usage: python', args[0], 'command', '[options]'
                        ^
SyntaxError: invalid syntax

Half the problem is that I don't know if working in the right direction here as i'm totally at a loss

Offline

#4 2012-03-22 15:45:13

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: Errors when trying to run Calibre

Calibre is in the repos, so

 pacman -S calibre

Offline

#5 2012-03-22 17:19:28

2k
Member
From: UK
Registered: 2006-02-17
Posts: 76

Re: Errors when trying to run Calibre

whoops,

I thought I checked the repos!

sorry about *blushes*

Last edited by 2k (2012-03-22 17:29:56)

Offline

#6 2012-03-22 22:42:32

arguser
Member
From: world/argentina/entrerios
Registered: 2011-07-13
Posts: 15
Website

Re: Errors when trying to run Calibre

I'm also having issues with Calibre, in this case with lxml.

~ >> calibre                                                                                                                                         ArchLinux
Traceback (most recent call last):
  File "/usr/bin/calibre", line 18, in <module>
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/main.py", line 18, in <module>
    from calibre.library.database2 import LibraryDatabase2
  File "/usr/lib/calibre/calibre/library/database2.py", line 19, in <module>
    from calibre.ebooks.metadata.opf2 import metadata_to_opf
  File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
    from lxml import etree
ImportError: No module named lxml

Offline

#7 2012-03-22 22:47:41

aking9
Member
Registered: 2009-03-30
Posts: 65

Re: Errors when trying to run Calibre

2k is your issue fixed?

arguser try modprobe lxml?

Offline

#8 2012-03-22 22:51:01

arguser
Member
From: world/argentina/entrerios
Registered: 2011-07-13
Posts: 15
Website

Re: Errors when trying to run Calibre

aking9 I think this is related with a python module, not system. I have python-lxml and python2-lxml installed but something is wrong, somewhere.

[SOLVED]
Got Calibre's today upgrade, re-installed python2-lxml and that's it!

Last edited by arguser (2012-03-23 15:51:14)

Offline

Board footer

Powered by FluxBB