You are not logged in.
i have same problem with last calibre (2.28.0-1):
$ calibre
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/ui.py", line 226, in initialize
ac.do_genesis()
File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 143, in do_genesis
self.genesis()
File "/usr/lib/calibre/calibre/gui2/actions/add.py", line 82, in genesis
from calibre.ebooks.oeb.polish.create import valid_empty_formats
File "/usr/lib/calibre/calibre/ebooks/oeb/polish/create.py", line 18, in <module>
from calibre.ebooks.oeb.polish.parsing import parse
File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
from html5lib.constants import namespaces, tableInsertModeElements, EOF
File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
from .html5parser import HTMLParser, parse, parseFragment
File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
from . import inputstream
File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
from six.moves import http_client
ImportError: No module named moves
$ calibre-debug -g
calibre 2.28 isfrozen: False is64bit: False
Linux-4.0.1-1-ARCH-i686-with-glibc2.0 Linux ('32bit', 'ELF')
('Linux', '4.0.1-1-ARCH', '#1 SMP PREEMPT Wed Apr 29 12:15:20 CEST 2015')
Python 2.7.9
Linux: ('', '', '')
Starting up...
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/ui.py", line 226, in initialize
ac.do_genesis()
File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 143, in do_genesis
self.genesis()
File "/usr/lib/calibre/calibre/gui2/actions/add.py", line 82, in genesis
from calibre.ebooks.oeb.polish.create import valid_empty_formats
File "/usr/lib/calibre/calibre/ebooks/oeb/polish/create.py", line 18, in <module>
from calibre.ebooks.oeb.polish.parsing import parse
File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
from html5lib.constants import namespaces, tableInsertModeElements, EOF
File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
from .html5parser import HTMLParser, parse, parseFragment
File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
from . import inputstream
File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
from six.moves import http_client
ImportError: No module named moves
$ ebook-edit
Traceback (most recent call last):
File "/usr/bin/ebook-edit", line 20, in <module>
sys.exit(ebook_edit())
File "/usr/lib/calibre/calibre/gui_launch.py", line 83, in ebook_edit
main(args)
File "/usr/lib/calibre/calibre/gui2/tweak_book/main.py", line 76, in main
_run(args)
File "/usr/lib/calibre/calibre/gui2/tweak_book/main.py", line 51, in _run
from calibre.gui2.tweak_book.ui import Main
File "/usr/lib/calibre/calibre/gui2/tweak_book/ui.py", line 28, in <module>
from calibre.gui2.tweak_book.file_list import FileListWidget
File "/usr/lib/calibre/calibre/gui2/tweak_book/file_list.py", line 23, in <module>
from calibre.ebooks.oeb.polish.container import guess_type, OEB_FONTS
File "/usr/lib/calibre/calibre/ebooks/oeb/polish/container.py", line 32, in <module>
from calibre.ebooks.oeb.polish.parsing import parse as parse_html_tweak
File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
from html5lib.constants import namespaces, tableInsertModeElements, EOF
File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
from .html5parser import HTMLParser, parse, parseFragment
File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
from . import inputstream
File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
from six.moves import http_client
ImportError: No module named moves
$ pacman -Q|grep calibre
calibre 2.28.0-1
[topo@linux ~]$ pacman -Q|grep python
python 3.4.3-2
python-cairo 1.10.0-5
python-dbus 1.2.0-4
python-dbus-common 1.2.0-4
python-gobject 3.16.1-1
python-gobject2 2.28.6-11
python-html2text 2015.4.14-1
python-lhafile 0.1.0fs4-1
python-pycups 1.9.72-2
python-pycurl 7.19.5.1-2
python-pyqt4 4.11.3-4
python-requests 2.6.2-1
python-setuptools 1:15.2-1
python-sip 4.16.7-1
python-xdg 0.25-2
python2 2.7.9-1
python2-apsw 3.8.9-1
python2-beaker 1.7.0-1
python2-beautifulsoup3 3.2.1-3
python2-cairo 1.10.0-2
python2-cffi 0.9.2-2
python2-chardet 2.3.0-1
python2-cherrypy 3.6.0-1
python2-crypto 2.6.1-2
python2-cryptography 0.8.2-1
python2-cssselect 0.9.1-2
python2-cssutils 1.0-2
python2-dateutil 2.4.2-1
python2-dbus 1.2.0-4
python2-dnspython 1.12.0-1
python2-enum34 1.0.4-1
python2-fuse 0.2.1-5
python2-gobject 3.16.1-1
python2-gobject2 2.28.6-11
python2-html5lib 0.999-5
python2-lxml 3.4.4-1
python2-mako 1.0.1-1
python2-markupsafe 0.23-2
python2-mechanize 0.2.5-4
python2-netifaces 0.10.4-1
python2-numpy 1.9.2-2
python2-pillow 2.8.1-1
python2-ply 3.6-1
python2-psutil 2.2.1-2
python2-pyasn1 0.1.7-2
python2-pycparser 2.12-1
python2-pyenchant 1.6.6-1
python2-pygments 2.0.2-2
python2-pyopenssl 0.14-3
python2-pyqt4 4.11.3-4
python2-pyqt5 5.4.1-2
python2-reportlab 3.1.44-2
python2-setuptools 1:15.2-1
python2-sip 4.16.7-1
python2-six 1.9.0-1
python2-twisted 15.1.0-1
python2-xdg 0.25-2
python2-zope-interface 4.1.2-2
only ebook-viewer works.
if I install it from official site, it works.
Last edited by quellen (2015-05-17 16:28:49)
sorry for my bad english
Offline
You have a similar problem, but they are not the same.
I'm going to split your post off into it's own topic so this one doesn't get derailed.
Mod note: split from https://bbs.archlinux.org/viewtopic.php?id=197159
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Good split WorMzy, very different problem.
quellen, what happens when you run python2, then `from six.moves import http_client` at the prompt?
Offline
do you mean this?
$ python2
Python 2.7.9 (default, Dec 11 2014, 05:36:55)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from six.moves import http_client
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named moves
sorry for my bad english
Offline
Could you post the output of
$ pacman -Qkk python2-six python2
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
quellen, yes, that's what I was asking for. Now, at that python2 prompt, run `import six` then `six.__file__`. That should tell you where it's loading the six library from. If it's anywhere other than /usr/lib/python2.7/site-packages/six.py{,c,o}, that would be the problem. If it is loading from that file, go to WorMzy's suggestion.
Last edited by Scimmia (2015-05-17 05:34:53)
Offline
$ pacman -Qkk python2-six python2 calibre
python2-six: 12 file totali, 0 file alterati
python2: 4716 file totali, 0 file alterati
calibre: 4881 file totali, 0 file alterati
$ python2
Python 2.7.9 (default, Dec 11 2014, 05:36:55)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import six
>>> six.__file__
'/usr/lib/python2.7/site-packages/six/__init__.pyc'
>>>
$ ls -l /usr/lib/python2.7/site-packages/six/
totale 84
-rw-r--r-- 1 root root 58 22 mar 2014 __init__.py
-rw-r--r-- 1 root root 236 28 nov 21.06 __init__.pyc
-rw-r--r-- 1 root root 236 28 nov 21.06 __init__.pyo
-rw-r--r-- 1 root root 20588 22 mar 2014 six.py
-rw-r--r-- 1 root root 20739 28 nov 21.06 six.pyc
-rw-r--r-- 1 root root 20739 28 nov 21.06 six.pyo
Last edited by quellen (2015-05-17 12:28:15)
sorry for my bad english
Offline
So where the hell did /usr/lib/python2.7/site-packages/six/six.py come from? It's not the the repos.
Offline
i really dont know. anyway, I SOLVED:
# rm -rf /usr/lib/python2.7/site-packages/six
$ python2
Python 2.7.9 (default, Dec 11 2014, 05:36:55)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import six
>>> six.__file__
'/usr/lib/python2.7/site-packages/six.pyc'
>>>
Thanks.
Last edited by quellen (2015-05-17 16:31:32)
sorry for my bad english
Offline