Closed physikerwelt closed 10 years ago
It appears to be looking for the module LaTeXML::Converter which is now, basically LaTeXML itself (after a big shuffle). I'm guessing that either you need to update the Plugin, or perhaps it hasn't yet been updated to match the reorganization of LaTeXML itself.
On 03/02/2014 10:45 PM, Moritz Schubotz wrote:
I have installed LaTeXML and LaTeXML-Plugin-ltxpsgi locally via |perl Makefile.PL && make && make test && sudo make install| for Plugin-MathWebSearch make and make install works fine bute make test fails:
|root@mediawiki-vagrant:/home/LaTeXML/LaTeXML-Plugin-MathWebSearch# perl Makefile.PL Writing Makefile for LaTeXML::Plugin::MathWebSearch Writing MYMETA.yml root@mediawiki-vagrant:/home/LaTeXML/LaTeXML-Plugin-MathWebSearch# make Skip blib/lib/LaTeXML/resources/XSLT/MWSquery.xsl (unchanged) Skip blib/lib/LaTeXML/Package/mws.sty.ltxml (unchanged) Skip blib/lib/LaTeXML/resources/Profiles/mwsquery.opt (unchanged) root@mediawiki-vagrant:/home/LaTeXML/LaTeXML-Plugin-MathWebSearch# make tests make: ** No rule to make target `tests'. Stop. root@mediawiki-vagrant:/home/LaTeXML/LaTeXML-Plugin-MathWebSearch# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/.t t/1_contentquery.t .. Can't locate LaTeXML/Converter.pm in @INC (@INC contains: /home/LaTeXML/LaTeXML-Plugin-MathWebSearch/blib/lib /home/LaTeXML/LaTeXML-Plugin-MathWebSearch/blib/arch /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at t/1_contentquery.t line 8. BEGIN failed--compilation aborted at t/1_contentquery.t line 8.
Looks like your test exited with 2 before it could output anything.
t/1_contentquery.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 3/3 subtests
Test Summary Report
t/1_contentquery.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 3 tests but ran 0. Files=1, Tests=0, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.24 cusr 0.02 csys = 0.27 CPU) Result: FAIL Failed 1/1 test programs. 0/0 subtests failed. make: *\ [test_dynamic] Error 2 |
— Reply to this email directly or view it on GitHub https://github.com/KWARC/LaTeXML-Plugin-MathWebSearch/issues/1.
I think the problem is related to the tests only. Since using the plugin in the webservice works:
vagrant@mediawiki-vagrant:/etc/apache2/sites-available$ curl -d 'preload=mws.sty&whatsout=fragment&whatsin=math&cmml&tex=literal:$ab+?x$' localhost:8888
{"status_code":0,"status":"No obvious problems","log":"\nltxpsgi (LaTeXML version 0.7.99; revision 66fdb76)\nprocessing started Mon Mar 3 05:19:02 2014\n\n(Digesting TeX Anonymous String...\n(Processing content Anonymous String...\n(Processing content Anonymous String...\n(Processing content Anonymous String...\n(Loading /usr/local/share/perl/5.14.2/LaTeXML/Package/LaTeX.pool.ltxml... 0.14 sec) 0.14 sec) 0.16 sec)\n(Building.... 0.03 sec)\n(Rewriting... 0.00 sec)\n(Math Parsing...1 formulae ...[1]\nMath parsing succeeded:\n ltx:XMath: 1/1\nSymbols assumed as simple identifiers (with # of occurences):\n 'a{italic}' (1), 'b{italic}' (1), 'qvar' (1)\n 0.01 sec)\n(Finalizing... 0.00 sec)\nConversion complete: No obvious problems.\n\n(post-processing...\n(Scan processing... [DBStatus: 3/0 objects]\n(CrossRef processing... [Filled in 0 glossaryrefs] [Filled in 0 TOCs] [Filled in fragment 2 ids] [Filled in 0 refs] [Filled in 0 RDFa refs] [Filled in 0 bibrefs]\n(MathML::Content processing...\n(XSLT processing... 0.01 sec)\nPost-processing complete: No obvious problems\nprocessing finished Mon Mar 3 05:19:02 2014\nStatus:conversion:0 \n","result":"<div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"ltx_document\">\n<div id=\"p1\" class=\"ltx_para\">\n<p class=\"ltx_p\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" id=\"p1.m1\" class=\"ltx_Math\" alttext=\"ab+\\qvar{x}\" display=\"inline\"><apply><plus/><apply><times/><ci>a</ci><ci>b</ci></apply><csymbol cd=\"mws\" name=\"qvar\">x</csymbol></apply></math></p>\n</div>\n</div>"}vagrant@mediawiki-vagrant:/etc/apache2/sites-available$
Ah, this plugin hasn't been updated to the latest head of LaTeXML !
UGH! Bruce needs to start increasing the version numbers and I need to start increasing the plugin version numbers if we want to have sanity.
@physikerwelt: Thanks for noticing this went out of sync! I'll patch today.
@brucemiller: Maybe I just mention this here as a feature request - in the future, please bump the version number of any LaTeXML refactoring that introduces, what the Mojolicious team calls, "breaking changes", e.g. the refactoring that made all my plug-ins have compile-time failures, since all classes got renamed. There are now too many plugins for me to remember without having automatic help.
Thanks!
Also, you're right that this plugin is so barebone that it didn't even manage to break! That's a bug dressed as a feature this time :) But the test breaking was the only indication that I hadn't updated it to the latest LaTeXML refactoring, and in general that can cause users more confusion and much stronger hatred towards the plugin developer. And I certainly don't want to cause people misery :walking:
I have installed LaTeXML and LaTeXML-Plugin-ltxpsgi locally via
perl Makefile.PL && make && make test && sudo make install
for Plugin-MathWebSearch make and make install works fine bute make test fails: