![]() |
#1 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Feb 2011
Device: none
|
Linux installation fails on OSError
OK-I upgraded to python 2.7 on my shared host and set the Path to include the directory for the Python 2.7 binary. Then I ran the import command (see below) with the resulting error. I do not have access to sudo (artifact of shared hosting on DH) nor a gui console. What is the script trying to do nd can i fiddle it somehow so that I can get calibre up and running? On the other hand, without web based tools, is this something that is simply going to be more trouble than it is worth? I am just starting to realize that managing calibre from the command line only could be quite a pain.....
************* [phoenix]$ python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()" Enter the installation directory for calibre [/opt]: Will download and install calibre-0.7.54-x86_64.tar.bz2 Downloading calibre-0.7.54-x86_64.tar.bz2 100% [================================================== ====================] Downloaded 47568314 bytes Checking downloaded file integrity... Traceback (most recent call last): File "<string>", line 1, in <module> File "<string>", line 226, in main File "<string>", line 205, in download_and_extract File "/home/mydir/opt/Python-2.7/Lib/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/opt/calibre' |
![]() |
![]() |
![]() |
#2 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
You are trying to install to /opt/calibre but you do not have access to write to /opt. DH is Dream Host?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Feb 2011
Device: none
|
Yes, DH is dreamhost.
I redid install so that install was to my local opt (whoops, thought I had tweaked that) and came up with another error message (see below.) Just also noticed that while I did an install of 2.7, the docs say one must have 2.7.1 SO, is this error resulting from the lack of 2.7.1 or from something else? [phoenix]$ ./calibre Traceback (most recent call last): File "site.py", line 55, in main File "site.py", line 41, in set_qt_plugin_path ImportError: cannot import name QCoreApplication |
![]() |
![]() |
![]() |
#4 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
I can't remember what causes that error or how to fix it.
Also, calibre requires X to run. Even some of the command line tool need an X server to work. There are a few threads about running calibre without a full X install using an X framebuffer. |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Feb 2011
Device: none
|
That is interesting in that I don't see that mentioned anywhere in the documentation - lol. I guess what is even more bizarre is that X11 is required, though the product seems to indicate that it can be run via CLI....
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Running via the CLI doesn't mean it doesn't require X. PDF output for instance renders the pages in a QWebView then prints to PDF it just doesn't show the QWebView when it does this. Qt requires X even if the controls are not shown.
SVG rasterization is another thing that uses Qt. This however will be skipped when X is not avaliable. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linux fails to write to Jetbook SD Card | louisvd | Ectaco jetBook | 15 | 01-11-2011 09:14 PM |
Problem with calibre installation of linux mint | ajambi | Calibre | 2 | 01-06-2010 12:10 PM |
0.6.31 Linux install fails | reread | Calibre | 3 | 12-28-2009 03:00 PM |
Welcome/Installation | mikelv | EPUBReader | 1 | 11-18-2009 10:41 AM |
Installation | FizzyWater | Calibre | 5 | 12-08-2008 03:21 PM |