gedit and ssh “ImportError: No module named 'cairo'”












1















Short description: I want to run an instance of gedit, provided by my Ubuntu 13.10 "Server" on another Computer. It works via ssh -X, but some plugins cannot be installed (in my case it is 'Snippets').



After installing gedit and gedit-plugins none of the plugins worked. I installed dbus-x11 and most of them worked - "Snippets", unfortunately, still doesn't. Bash says:



Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/__init__.py", line 18, in <module>
from .appactivatable import AppActivatable
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/appactivatable.py", line 26, in <module>
from .manager import Manager
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/manager.py", line 29, in <module>
from .document import Document
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/document.py", line 21, in <module>
import cairo
ImportError: No module named 'cairo'

(gedit:954): libpeas-WARNING **: Error loading plugin 'snippets'


when I try to select "Snippets" in the plugins preferences. Any idea what I am doing wrong?



Long description: I'm using a MacBook Air for daily work. Unfortunately there seems to be no way, to get gedit running on OS X Mavericks (or any other OS X capable of running on the MacBook). So, if anyone knows a workaround for that, it would be a possible solution to. (I've tried an older version of gedit - 2.x.x I guess - it didn't crash, but it was rather buggy.)



So I installed a "hardware friendly" Ubuntu Server via Parallels Desktop 9. I guess there are distros which are far more lightweight, but Ubuntu works really seamlessly with PD9, so I chose it.



Via XQuarts linux applications like gedit can easily be streamed over ssh. So I'm able to run gedit. But I "need" the snippets. There are of course many other text editors for Mac OS, but they cost a lot of money or are incapable of almost anything.



Best regards and thanks in advance,
Markus










share|improve this question

























  • On my system I installed yum install pycairo-devel.x86_64 to solve the issue as it occurred during use of graphite-web.

    – Ezekiel Victor
    Mar 25 '14 at 10:53
















1















Short description: I want to run an instance of gedit, provided by my Ubuntu 13.10 "Server" on another Computer. It works via ssh -X, but some plugins cannot be installed (in my case it is 'Snippets').



After installing gedit and gedit-plugins none of the plugins worked. I installed dbus-x11 and most of them worked - "Snippets", unfortunately, still doesn't. Bash says:



Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/__init__.py", line 18, in <module>
from .appactivatable import AppActivatable
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/appactivatable.py", line 26, in <module>
from .manager import Manager
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/manager.py", line 29, in <module>
from .document import Document
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/document.py", line 21, in <module>
import cairo
ImportError: No module named 'cairo'

(gedit:954): libpeas-WARNING **: Error loading plugin 'snippets'


when I try to select "Snippets" in the plugins preferences. Any idea what I am doing wrong?



Long description: I'm using a MacBook Air for daily work. Unfortunately there seems to be no way, to get gedit running on OS X Mavericks (or any other OS X capable of running on the MacBook). So, if anyone knows a workaround for that, it would be a possible solution to. (I've tried an older version of gedit - 2.x.x I guess - it didn't crash, but it was rather buggy.)



So I installed a "hardware friendly" Ubuntu Server via Parallels Desktop 9. I guess there are distros which are far more lightweight, but Ubuntu works really seamlessly with PD9, so I chose it.



Via XQuarts linux applications like gedit can easily be streamed over ssh. So I'm able to run gedit. But I "need" the snippets. There are of course many other text editors for Mac OS, but they cost a lot of money or are incapable of almost anything.



Best regards and thanks in advance,
Markus










share|improve this question

























  • On my system I installed yum install pycairo-devel.x86_64 to solve the issue as it occurred during use of graphite-web.

    – Ezekiel Victor
    Mar 25 '14 at 10:53














1












1








1








Short description: I want to run an instance of gedit, provided by my Ubuntu 13.10 "Server" on another Computer. It works via ssh -X, but some plugins cannot be installed (in my case it is 'Snippets').



After installing gedit and gedit-plugins none of the plugins worked. I installed dbus-x11 and most of them worked - "Snippets", unfortunately, still doesn't. Bash says:



Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/__init__.py", line 18, in <module>
from .appactivatable import AppActivatable
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/appactivatable.py", line 26, in <module>
from .manager import Manager
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/manager.py", line 29, in <module>
from .document import Document
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/document.py", line 21, in <module>
import cairo
ImportError: No module named 'cairo'

(gedit:954): libpeas-WARNING **: Error loading plugin 'snippets'


when I try to select "Snippets" in the plugins preferences. Any idea what I am doing wrong?



Long description: I'm using a MacBook Air for daily work. Unfortunately there seems to be no way, to get gedit running on OS X Mavericks (or any other OS X capable of running on the MacBook). So, if anyone knows a workaround for that, it would be a possible solution to. (I've tried an older version of gedit - 2.x.x I guess - it didn't crash, but it was rather buggy.)



So I installed a "hardware friendly" Ubuntu Server via Parallels Desktop 9. I guess there are distros which are far more lightweight, but Ubuntu works really seamlessly with PD9, so I chose it.



Via XQuarts linux applications like gedit can easily be streamed over ssh. So I'm able to run gedit. But I "need" the snippets. There are of course many other text editors for Mac OS, but they cost a lot of money or are incapable of almost anything.



Best regards and thanks in advance,
Markus










share|improve this question
















Short description: I want to run an instance of gedit, provided by my Ubuntu 13.10 "Server" on another Computer. It works via ssh -X, but some plugins cannot be installed (in my case it is 'Snippets').



After installing gedit and gedit-plugins none of the plugins worked. I installed dbus-x11 and most of them worked - "Snippets", unfortunately, still doesn't. Bash says:



Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/__init__.py", line 18, in <module>
from .appactivatable import AppActivatable
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/appactivatable.py", line 26, in <module>
from .manager import Manager
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/manager.py", line 29, in <module>
from .document import Document
File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/document.py", line 21, in <module>
import cairo
ImportError: No module named 'cairo'

(gedit:954): libpeas-WARNING **: Error loading plugin 'snippets'


when I try to select "Snippets" in the plugins preferences. Any idea what I am doing wrong?



Long description: I'm using a MacBook Air for daily work. Unfortunately there seems to be no way, to get gedit running on OS X Mavericks (or any other OS X capable of running on the MacBook). So, if anyone knows a workaround for that, it would be a possible solution to. (I've tried an older version of gedit - 2.x.x I guess - it didn't crash, but it was rather buggy.)



So I installed a "hardware friendly" Ubuntu Server via Parallels Desktop 9. I guess there are distros which are far more lightweight, but Ubuntu works really seamlessly with PD9, so I chose it.



Via XQuarts linux applications like gedit can easily be streamed over ssh. So I'm able to run gedit. But I "need" the snippets. There are of course many other text editors for Mac OS, but they cost a lot of money or are incapable of almost anything.



Best regards and thanks in advance,
Markus







ssh gedit plugins






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 8 '13 at 20:32









hytromo

3,43632255




3,43632255










asked Dec 8 '13 at 20:10









MarkusMarkus

4551919




4551919













  • On my system I installed yum install pycairo-devel.x86_64 to solve the issue as it occurred during use of graphite-web.

    – Ezekiel Victor
    Mar 25 '14 at 10:53



















  • On my system I installed yum install pycairo-devel.x86_64 to solve the issue as it occurred during use of graphite-web.

    – Ezekiel Victor
    Mar 25 '14 at 10:53

















On my system I installed yum install pycairo-devel.x86_64 to solve the issue as it occurred during use of graphite-web.

– Ezekiel Victor
Mar 25 '14 at 10:53





On my system I installed yum install pycairo-devel.x86_64 to solve the issue as it occurred during use of graphite-web.

– Ezekiel Victor
Mar 25 '14 at 10:53










2 Answers
2






active

oldest

votes


















3














Try



sudo apt-get install python-cairo


or



sudo apt-get install python3-cairo





share|improve this answer


























  • Unfortunately no effect. The package was already installed.

    – Markus
    Dec 9 '13 at 13:53











  • @Markus I updated my answer, try with the python3 command.

    – falconer
    Dec 9 '13 at 14:27



















0














What i did for getting cairo installed succeessfully is;



pip install cairocffi



pip install pycairo



That worked for me.






share|improve this answer






















    protected by Thomas Ward Jan 2 at 20:08



    Thank you for your interest in this question.
    Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



    Would you like to answer one of these unanswered questions instead?














    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Try



    sudo apt-get install python-cairo


    or



    sudo apt-get install python3-cairo





    share|improve this answer


























    • Unfortunately no effect. The package was already installed.

      – Markus
      Dec 9 '13 at 13:53











    • @Markus I updated my answer, try with the python3 command.

      – falconer
      Dec 9 '13 at 14:27
















    3














    Try



    sudo apt-get install python-cairo


    or



    sudo apt-get install python3-cairo





    share|improve this answer


























    • Unfortunately no effect. The package was already installed.

      – Markus
      Dec 9 '13 at 13:53











    • @Markus I updated my answer, try with the python3 command.

      – falconer
      Dec 9 '13 at 14:27














    3












    3








    3







    Try



    sudo apt-get install python-cairo


    or



    sudo apt-get install python3-cairo





    share|improve this answer















    Try



    sudo apt-get install python-cairo


    or



    sudo apt-get install python3-cairo






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 9 '13 at 14:26

























    answered Dec 8 '13 at 23:45









    falconerfalconer

    12.2k22653




    12.2k22653













    • Unfortunately no effect. The package was already installed.

      – Markus
      Dec 9 '13 at 13:53











    • @Markus I updated my answer, try with the python3 command.

      – falconer
      Dec 9 '13 at 14:27



















    • Unfortunately no effect. The package was already installed.

      – Markus
      Dec 9 '13 at 13:53











    • @Markus I updated my answer, try with the python3 command.

      – falconer
      Dec 9 '13 at 14:27

















    Unfortunately no effect. The package was already installed.

    – Markus
    Dec 9 '13 at 13:53





    Unfortunately no effect. The package was already installed.

    – Markus
    Dec 9 '13 at 13:53













    @Markus I updated my answer, try with the python3 command.

    – falconer
    Dec 9 '13 at 14:27





    @Markus I updated my answer, try with the python3 command.

    – falconer
    Dec 9 '13 at 14:27













    0














    What i did for getting cairo installed succeessfully is;



    pip install cairocffi



    pip install pycairo



    That worked for me.






    share|improve this answer




























      0














      What i did for getting cairo installed succeessfully is;



      pip install cairocffi



      pip install pycairo



      That worked for me.






      share|improve this answer


























        0












        0








        0







        What i did for getting cairo installed succeessfully is;



        pip install cairocffi



        pip install pycairo



        That worked for me.






        share|improve this answer













        What i did for getting cairo installed succeessfully is;



        pip install cairocffi



        pip install pycairo



        That worked for me.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 20:03









        VicrobotVicrobot

        1318




        1318

















            protected by Thomas Ward Jan 2 at 20:08



            Thank you for your interest in this question.
            Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



            Would you like to answer one of these unanswered questions instead?



            Popular posts from this blog

            Questions related to Moebius Transform of Characteristic Function of the Primes

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            List of scandals in India