Fails with Gedit>=3.8 (Python3 support)

Help
diplab
2013-05-04
2014-09-24
  • diplab

    diplab - 2013-05-04

    RGedit fails to load with Gedit>=3.8 since it only accepts python3 plugins.
    Will RGedit be ported? I have managed to load the plugin by replacing print
    ... with print(...) and fixing some indentations. However user preferences
    are still broken.

     
  • Dan Dediu

    Dan Dediu - 2013-10-29

    Hi,

    a little late but I just released the port to Python 3 -- could you please try to test it?

    Best,
    Dan

     
  • diplab

    diplab - 2013-12-12

    hey,

    i have ported it myself some time ago and have been using it since then: https://github.com/matmo/rgedit-python3

     
  • mdowle

    mdowle - 2014-08-12

    Dan,

    The latest version (rgedit-0.8.0.2-Gtk3-Python3.tar.bz2) works great for me with gedit v3.8.3 on Linux Mint Debian Edition.

    A little more info in case it helps others finding this ...

    Initially I got a cryptic 'failed to load' message when activating the plugin from gedit->preferences but after hunting around I found that this solved it :

    sudo apt-get install gir1.2-gtksource-3.0
    

    from http://askubuntu.com/questions/362980/gedit-external-tools-plugin-failed-to-load

    The Debian page on the Rgedit homepage points to a repo http://www.kaduk.net/~mateusz/gedit-r-plugin but that appears to be unresponsive currently. I then made the mistake of trying "sudo apt-get install gedit-r-plugin" which downloads and installs the old version (0.7 iirc) that doesn't work with the Python3 version of gedit. So currently it seems necessary to download the latest .tar.bz2 file and unpack it to the right place.

    Easy instructions are :

    1. Download the .tar.bz2 to ~/Downloads. [ Usual browser default. ]
    2. Close gedit.
    3. cd ~/.local/share/gedit/plugins
      If that doesn't exist (e.g. if you've just installed gedit) then create it :
      mkdir ~/.local/share/gedit/plugins
      cd ~/.local/share/gedit/plugins
    4. tar xvf ~/Downloads/rgedit-0.8.0.2-Gtk3-Python3.tar.bz2
    5. sudo apt-get install gir1.2-gtksource-3.0
    6. Start gedit
    7. Edit->Preferences->Plugins and Rgedit is called "R integration". Tick it.

    How to get the Debian/Ubuntu repos updated with latest version and the gir1.2-gtksource-3.0 dependency?

    Matt

    PS: and I just submitted a review here :
    https://sourceforge.net/projects/rgedit/

     
    Last edit: mdowle 2014-08-12
    • Dan Dediu

      Dan Dediu - 2014-09-24

      Hi Matt,

      sorry for being so slow! Thanks a lot for the info, I'll test it and update the website. I can't do much about the Debian package as I never packaged anything for them (but I could give it a try).

      Best,
      Dan

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks