![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2009
Device: none
|
calibre html2epub on linux error cannot connect to X server
Hello,
I'm using the software for the conversion of xhtml to epub. It works great, however I can't get a cover to convert. I get an error message ": cannot connect to X server". The X server is running. I've tried to edit the DISPLAY var. I'm using ubuntu 9.04 desktop with gnome. I'm trying to convert it with the command line on the desktop as well through ssh. Both ain't working. The output: INFO: Parsing ndc/file/123456789_dhahadhda_adhadhsdfjhsfjhfsjfsjsfj.xhtml INFO: Detected chapter: INFO: Detected chapter: INFO: Detected chapter: INFO: Detected chapter: Colofon INFO: Detected chapter: INFO: Processing stylesheet /tmp/calibre_0.4.143_1xp5Ie_html2epub/content/resources/styleboek_0.css... INFO: Rationalizing fonts... DEBUG: Done rationalizing DEBUG: Saving stylesheets... : cannot connect to X server Does anyone know what might be the problem? Many thanks, Janwillem |
![]() |
![]() |
![]() |
#2 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
You're using 0.4.143. Upgrade to the latest version (0.6.6 as of now). A number of X server requirements were removed for the command line tools since that version.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2009
Device: none
|
Thanks for your answer. I installed calibre using apt-get. It is still the newest version according to apt-get. How can i update it to 0.6.6?
|
![]() |
![]() |
![]() |
#4 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Sadly Ubuntu does not update application versions for the life of their release. So you're two options are to install from a PPA (another repository your can point apt at). An unsupported PPA can be found here. Or you can uninstall it with apt and install using the binary installer.
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2009
Device: none
|
I've updated calibre to the new version, but i still have the error.
When I use the flag -v for debugging, I get this message: 34% Running transforms on ebook... Merging user specified metadata... Detecting structure... Detected chapter: Detected chapter: Detected chapter: Detected chapter: Colofon Detected chapter: Auto generated TOC with 5 entries. Flattening CSS and remapping font sizes... Source base font size is 12.00000pt Cleaning up manifest... Trimming unused files from manifest... Parsing stylesheet.css ... Creating EPUB Output... 67% Creating EPUB Output Looking for large trees in 123456789_dhahadhda_adhadhsdfjhsfjhfsjfsjsfj.xhtml ... No large trees found : cannot connect to X server What could be the problem? The X server is definetly running. When i do ps aux | grep X I see: root 2900 0.0 0.1 2908 740 ? S 08:40 0:00 xinit /etc/gdm/failsafeXinit /etc/X11/xorg.conf.failsafe with-gdm -- /usr/bin/X :0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7 -br -once -config /etc/X11/xorg.conf.failsafe -logfile /var/log/Xorg.failsafe.log root 2902 0.0 1.4 15872 7120 tty7 S<s+ 08:40 0:00 /usr/bin/X :0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7 -br -once -config /etc/X11/xorg.conf.failsafe -logfile /var/log/Xorg.failsafe.log root 2906 0.0 0.2 4208 1484 ? S 08:40 0:00 /bin/bash /etc/gdm/failsafeXinit /etc/X11/xorg.conf.failsafe with-gdm Edit: With the new version I get the same error even when I convert without the cover Last edited by voda; 08-12-2009 at 08:28 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
set | grep DISPLAY
and are you actually logged in to the X server as the user you're running the command as? |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2009
Device: none
|
The DISPLAY var is empty. I can set it to display=:0.0 but it makes not difference.
I log in with ssh to the server, where X is running. But I'm not actually logged in into the X server. Should I? Is there a way without? At the end i want to execute the program from the internet using php. I'm making a form, so people can create epub files. Last edited by voda; 08-12-2009 at 03:04 PM. |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Do
unset DISPLAY and then run ebook-convert |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2009
Device: none
|
Still the same error.
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works for me on a headless server. In fact I use it to automatically convert a number of formats into EPUB.
|
![]() |
![]() |
![]() |
#11 |
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2009
Device: none
|
But unsetting the var wouldn't help very much would it? It would still need the X server to run right?
|
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No it doesn't need the X server. If it detects that not X server is present (by querying DISPLAY) it skips over the parts that need the X server.
|
![]() |
![]() |
![]() |
#13 |
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2009
Device: none
|
Is there any other solution? unsetting the var doesn't seem to work.
|
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What is the exact command you are using to convert?
|
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2009
Device: none
|
I use ebook-convert test.xhtml test.epub
When i was using the old version of calibre, i got the same error, however i only got it when i was converting a cover with it. Then i used html2epub. Now i always get the error. |
![]() |
![]() |
![]() |
Tags |
calibre, connect, html2epub, linux, x server |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot connect Sony PRS 300 to Calibre on Linux | Aristée | Calibre | 15 | 10-22-2010 12:53 PM |
Metadata server error | Nanny38 | Calibre | 0 | 07-24-2010 07:22 AM |
Calibre Content Server error in Ubuntu 10.10 | Bodman456 | Calibre | 1 | 07-07-2010 03:26 PM |
Standalone Server(linux) version just for collecting news? | bigreat | Calibre | 8 | 02-25-2010 01:03 PM |
Error when trying to connect to server | Diana495 | Calibre | 5 | 07-24-2009 09:51 PM |