Zim

Using Zim server on a system without X11

Asked by Nathan Sain

I have a Debian server that does not run a X session and I want to use it to serve my Zim notebook via HTTP to my mobile using the built-in web server. I copied the notebook files to the server and I installed the pygtk libraries but the Zim __init__.py still exits with the error:
RuntimeError: could not create GtkClipboard object
Is there a easy modification I could make to disable the clipboard?

Thanks,

Nathan

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

On Mon, May 14, 2012 at 6:30 AM, Nathan Sain
<email address hidden> wrote:
> New question #197134 on Zim:
> https://answers.launchpad.net/zim/+question/197134
>
> I have a Debian server that does not run a X session and I want to use it to server my Zim notebook via HTTP to my mobile using the built-in web server. I copied the notebook files to the server and I installed the pygtk libraries but the Zim __init__.py still exits with the error:
> RuntimeError: could not create GtkClipboard object
> Is there a easy modification I could make to disable the clipboard?

Can you post the full traceback of the error so I can see what part of
the code causes it ?

Could be you need to disable a plugin that imports the clipboard code.

-- Jaap

Revision history for this message
gdw2 (gdwarner) said :
#2

Traceback (most recent call last):
  File "zim.py", line 73, in <module>
    zim.main(argv)
  File "/cygdrive/c/Users/gwarner/zim/zim/__init__.py", line 438, in main
    import zim.gui.notebookdialog
  File "/cygdrive/c/Users/gwarner/zim/zim/gui/__init__.py", line 34, in <module>
    from zim.gui.pageindex import PageIndex
  File "/cygdrive/c/Users/gwarner/zim/zim/gui/pageindex.py", line 22, in <module>
    from zim.gui.clipboard import \
  File "/cygdrive/c/Users/gwarner/zim/zim/gui/clipboard.py", line 516, in <module>
    Clipboard = ClipboardManager("CLIPBOARD") #: Singleton object for the default clipboard
  File "/cygdrive/c/Users/gwarner/zim/zim/gui/clipboard.py", line 407, in __init__
    self.clipboard = gtk.Clipboard(selection=atom)
RuntimeError: could not create GtkClipboard object

Revision history for this message
gdw2 (gdwarner) said :
#3

(my traceback reported above went away once I properly set the DISPLAY variable in cygwin)

Can you help with this problem?

Provide an answer of your own, or ask Nathan Sain for more information if necessary.

To post a message you must log in.