Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-26-2011, 06:48 PM   #1
MGMiller
Junior Member
MGMiller began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2011
Location: Long Island
Device: nook 2nd Edition
Nook 2nd Edition not detected in Calibre Ubuntu 11.04 64 bit

I have a Nook 2nd edition. It is detected by my OS just fine and I can copy ebooks directly to it using Nautilus. Calibre is installed from my Ubuntu 11.04 repositories (v 0.7.44) and seems to function correctly, except it can't detect my Nook. Any help would be appreciated.

I have run it in debug mode and this is the output:

calibre Debug log
calibre 0.7.44
Linux-2.6.38-8-generic-x86_64-with-Ubuntu-11.04-natty
Linux
('Linux', '2.6.38-8-generic', '#42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011')
Python 2.7.1+
Linux: ('Ubuntu', '11.04', 'natty')
Starting up...
Failed to load high performance sqlite C extension
'Connection' object has no attribute 'enable_load_extension'
Started up in 15.3195450306
Exception in thread Thread-3 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
File "/usr/lib/calibre/calibre/utils/ipc/server.py", line 169, in run
File "/usr/lib/python2.7/Queue.py", line 177, in get
File "/usr/lib/python2.7/threading.py", line 259, in wait
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
Exception in thread Thread-8 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
File "/usr/lib/calibre/calibre/utils/ipc/server.py", line 169, in run
File "/usr/lib/python2.7/Queue.py", line 177, in get
File "/usr/lib/python2.7/threading.py", line 259, in wait
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
MGMiller is offline   Reply With Quote
Old 06-26-2011, 06:52 PM   #2
MGMiller
Junior Member
MGMiller began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2011
Location: Long Island
Device: nook 2nd Edition
On further reading, it appears Calibre did not support the Nook 2nd edition until version 0.8.something. I uninstalled my 0.7.44 and attempted to follow these instructions:
My system has python 2.7.1 installed.
wget -O- http://status.calibre-ebook.com/dist/src | tar xvz
cd calibre*
sudo python setup.py install

It downloaded ok, but on starting the install, it finished with an error message and Calibre is not recognized by the system and will not run. Here is the output of the attempted install:

marty@tux:~$ cd calibre*
marty@tux:~/calibre$ sudo python setup.py install
[sudo] password for marty:
Traceback (most recent call last):
File "setup.py", line 13, in <module>
import setup.commands as commands
File "/home/marty/calibre/setup/commands.py", line 28, in <module>
from setup.translations import POT, GetTranslations, Translations, ISO639
File "/home/marty/calibre/setup/translations.py", line 14, in <module>
from setup.build_environment import pyqt
File "/home/marty/calibre/setup/build_environment.py", line 12, in <module>
from PyQt4 import pyqtconfig
ImportError: No module named PyQt4
marty@tux:~/calibre$
MGMiller is offline   Reply With Quote
Advert
Old 06-26-2011, 07:15 PM   #3
MGMiller
Junior Member
MGMiller began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2011
Location: Long Island
Device: nook 2nd Edition
I installed the python-qt4 packages and re-ran the install. It finished with different errors and Calibre still will not run. I suspect I am in "dependency hell". I have gone back to version 0.7.44 from my repository at least it runs. Is there any way to just get the device driver for the new Nook 2nd edition and add it the version that runs on my system?

This is the output of the latest install attempt:

marty@tux:~/calibre$ sudo python setup.py install
Package poppler was not found in the pkg-config search path.
Perhaps you should add the directory containing `poppler.pc'
to the PKG_CONFIG_PATH environment variable
No package 'poppler' found
Package MagickWand was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickWand.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickWand' found
Package poppler was not found in the pkg-config search path.
Perhaps you should add the directory containing `poppler.pc'
to the PKG_CONFIG_PATH environment variable
No package 'poppler' found
Package MagickWand was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickWand.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickWand' found
Dropping privileges to those of marty: 1000
No module named icu
No module named icu

*
* Running build
*


####### Building extension speedup #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -pthread -I/usr/include/python2.7 -c /home/marty/calibre/src/calibre/utils/speedup.c -o /home/marty/calibre/build/objects/speedup/speedup.o
/home/marty/calibre/src/calibre/utils/speedup.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
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/marty/calibre/setup/__init__.py", line 163, in run_all
self.run_cmd(self, opts)
File "/home/marty/calibre/setup/__init__.py", line 156, in run_cmd
self.run_cmd(scmd, opts)
File "/home/marty/calibre/setup/__init__.py", line 159, in run_cmd
cmd.run(opts)
File "/home/marty/calibre/setup/extensions.py", line 298, in run
self.build(ext, dest)
File "/home/marty/calibre/setup/extensions.py", line 339, in build
subprocess.check_call(cmd)
File "/usr/lib/python2.7/subprocess.py", line 504, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-pthread', '-I/usr/include/python2.7', '-c', '/home/marty/calibre/src/calibre/utils/speedup.c', '-o', '/home/marty/calibre/build/objects/speedup/speedup.o']' returned non-zero exit status 1
marty@tux:~/calibre$
MGMiller is offline   Reply With Quote
Old 06-26-2011, 07:49 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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The installation command you need is

sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()"
kovidgoyal is offline   Reply With Quote
Old 06-26-2011, 09:01 PM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,162
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Not that I have a Nook but for giggles I tried the command as given by the maestro, and it worked like a charm on a stock Ubuntu 11.04, 64 bit install
PeterT is offline   Reply With Quote
Advert
Old 06-27-2011, 10:20 AM   #6
MGMiller
Junior Member
MGMiller began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2011
Location: Long Island
Device: nook 2nd Edition
Thank You! That worked. I need to do these things when I'm awake. It was the binary install that I needed, not install from source.
MGMiller is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nook 2nd Edition not detected in Calibre Ubuntu 11.04 64 bit MGMiller Devices 2 06-26-2011 06:42 PM
Help with installing kobo-desktop.deb on ubuntu 32 bit sweeticemountain Kobo Reader 2 02-28-2011 05:03 AM
New Calibre install won't start/seg faults on Ubuntu 9.10 64-bit lizajane999 Calibre 4 02-06-2010 02:42 PM
Ended Wanted: iRex iLiad - 2nd edition or Book edition Vladinfar Flea Market 2 01-10-2009 12:29 PM
New versions of calibre in Ubuntu Hardy 64 Bit deedward9 Calibre 19 10-17-2008 11:21 PM


All times are GMT -4. The time now is 02:23 AM.


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