Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get plugin to work in gedit - Version 3.14.3 (Fedora21 Testing) #9

Closed
anhsirksai opened this issue Mar 30, 2015 · 4 comments
Closed

Comments

@anhsirksai
Copy link

I tried to setup reST plugin on Fedora21.
python version available: Python 3.4.1

Steps followed :

clone source and switch to gedit-3.14 branch

https://github.com/bittner/gedit-reST-plugin.git

Install dependencies :

pygments:
pip install pygments

docutils: (http://docutils.sourceforge.net/README.html#installation)
git clone git://repo.or.cz/docutils.git
cd docutils/docutils ; python3 setup.py install

odtwriter : could not find the source for this.

copy reST.plugin and reST/ into the path for edit plugins in fedora21:

/usr/lib64/gedit/plugins

start gedit from terminal and load the plugin. I get the following error on terminal :

[saikrishna@localhost plugins]$ gedit
Traceback (most recent call last):
File "/usr/lib64/gedit/plugins/reST/init.py", line 22, in
from .restructuredtext import RestructuredtextHtmlPanel
File "/usr/lib64/gedit/plugins/reST/restructuredtext.py", line 20, in
from docutils.core import publish_parts
File "/usr/lib/python3.4/site-packages/docutils/init.py", line 68, in
class ApplicationError(StandardError):
NameError: name 'StandardError' is not defined

(gedit:12392): libpeas-WARNING **: Error loading plugin 'reST'

Please suggest.

@bittner
Copy link
Owner

bittner commented Mar 30, 2015

This seems to be an issue with docutils.

I see you're using docutils off the repository (development version). Can you try installing the package that your Linux distribution provides? (see http://pkgs.org/download/python-docutils, for example)
The version of docutils on the Debian system I'm using for issue #6 is docutils==0.12, Python version there is 3.4.2. That combination is working for the plugin.

Then, try generating HTML from a reST file from command line. Does it work?

@anhsirksai
Copy link
Author

Hi Bittner,

I have set it up successfully on my debian wheezy machine successfully. I am no longer going to test it on fedora any time soon. May be you may want to abandon this issue since I could not confirm you on further status! The other choice that made me abandon fixing this issue is https://github.com/ekalinin/github-markdown-toc. setting up markdown-toc is just running a script with and I am really happy the way it is working.

Thanks,
--sai krishna.

@bittner
Copy link
Owner

bittner commented Apr 2, 2015

Thanks for letting me know, @anhsirksai.

Sorry, I don't understand what the github-markdown-toc project has to do with reStructuredText and the Gedit plugin.

@anhsirksai
Copy link
Author

I have added about that just to notify about a feature request(if possible)
for gedit-reST-plugin. the github-markdown-toc plugin has a shell script
which when run, will install the plugin and I felt it is easy to use
without much of a hassle.

I haven't done a comparative study on functioning of both these plugins
yet. So I have nothing to comment on working of either plugin.

Thank you,
--sai krishna.

On Thu, Apr 2, 2015 at 8:36 PM, Peter Bittner notifications@github.com
wrote:

Thanks for letting me know, @anhsirksai https://github.com/anhsirksai.

Sorry, I don't understand what the github-markdown-toc project has to do
with reStructuredText and the Gedit plugin.


Reply to this email directly or view it on GitHub
#9 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants