I've been able to install both version of the parser with all needed
dependencies now.
http://moinmo.in/ParserMarket/Bibtex2 doesn't produce any error but a
warning:
WARNING MoinMoin.parser._ParserBase:123 Using ParserBase is deprecated -
please use/extend pygments syntax highlighting library.
and doesn't render anything in the page. The bibtex code block is just
ignored.
Could the deprecated dependency be enough to get the rendering wrong?
The combination of http://moinmo.in/ParserMarket/Bibtex and
http://moinmo.in/MacroMarket/Bibliography (version 1.6) produces error
in both case.
Macro Bibliography usage is looking for ../parser/bibtex.py but doens't
find it.
File "/var/lib/ccmmp/data/plugin/macro/Bibliography.py", line 67, in
<module>
from MoinMoin.parser.bibtex import Parser as BibtexParser
ImportError: No module named bibtex
I'm a Python beginner and probably miss something obvious but it seems
to me that everything is where it should be: Bibliography.py is in
../data/plugin/macro and bibtex.py is in ../data/plugin/parser
When trying to use the parser independantly I get the following error:
File "/var/lib/ccmmp/data/plugin/parser/bibtex.py", line 273, in format
{"bib2html_cmd": self.bib2html_cmd}))
AttributeError: Parser instance has no attribute 'bib2html_cmd'
bib2html_cmd is set in the file, I've hardcode the path to the expected
command.
This line comes form a error catch block and I'm wondering if it
couldn't be a syntax problem.
All this code is pretty old but I really would like to get it working.
Help would be welcome. Or shall I talk to the macro author directly?
Also, even though I've set
from MoinMoin import log
log.load_config('/usr/share/moin/logging')
in moin.gwsgi, I always get [formatters] section not found or something
like that, even though the section exists in the log file config.
how do you get a config to be taken into account?
cheers
> coolnodje <mailto:coolno...@gmail.com>
> 22 May 2014 17:46
> I've been trying to install the
> http://moinmo.in/MacroMarket/Bibliography macro, and I admit I've
> failed. It's quite a hell to decipher what to do to be honest.
>
> Very difficult to know what to install: there's 2 version of Macro
> Bibliography.py, and apparently v1.6 is the one to use even though the
> default is still v1.5.
> Then 2 versions of the BibTex parser exist as well:
> http://moinmo.in/ParserMarket/Bibtex and
> http://moinmo.in/ParserMarket/Bibtex2 . The first is the one
> referenced from the main page, but it seems outdated compare to the
> second.
> In both case, in order to get this to work, external binaries are
> required, and this where the install becomes very tricky.
> bibtex and bib2xhtml are required in the first case
> bibtex and bibtex2html are required in the second.
>
> In the second case, bibtex2html's home page is found under
> http://www.lri.fr/~filliatr/bibtex2html/
> A package exist for Debian: apt-get install bibtex2html
>
> Convenient, but:
> I skip here the dozens of extra packages necessary, but the result is:
>
> After this operation, 357 MB of additional disk space will be used.
> Do you want to continue [Y/n]? n
>
> As for bibtex binaries, I'm still not sure what to get. I've found
> apt-get install biblatex
>
> but
>
> After this operation, 1,127 MB of additional disk space will be used.
> Do you want to continue [Y/n]? n
>
> This would be more than twice the size of my dedicated debian install
> of moinmoin...
>
> In the case of the first BibTex parser, bib2xhtml can be found in
> http://www.spinellis.gr/sw/textproc/bib2xhtml/
> This is much lighter as it's a perl script, but install is unclear.
> And there's still the dependency on bibtex executable.
>
> Help on installing would be really welcome as I'm unsure on which
> direction to take now.
>
> At least, where can I get the bibtex executables? Is the biblatex
> debian package going to provide it? I'm reluctant to install more than
> a gigabyte of dependencies just to check if it does...
>
> cheers
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user