Jump to content

Manual talk:Mathoid/Flow

About this board

Juandev (talkcontribs)

So, what is the architecture of Mathoid? If a user imputes LaTeX to Math extension, it goes to Mathoid, which is a JavaScript, where MathJax library creates svg file and texvc hidden MathML? Does texvc needs texlive, cjk-latex and LaTeX's packages amcls and amsmath, like it needed when it was not a part of MediaWiki?

Reply to "Architecture"
137.44.146.11 (talkcontribs)
- The Debian instructions don't work on Debian, as the repository that gets added only includes Ubuntu packages. (Attempting to use these also switches init systems and fouls up half the system.)
- The building from source instructions fail in the form they're given, as npmn should instead (I think) be npm.
- phantomjs is currently unavailable on the latest Debian stable and must be installed from source
137.44.146.11 (talkcontribs)
- Also, node doesn't work, node-legacy is necessary for npm to work
AvisPhoenix (talkcontribs)

In Debian Jessie you must install nodejs , npm and phantomjs from the source. Also using node install mathoid has not worked for me It does not pass the test, in addition, to the port is 10044

51.39.140.20 (talkcontribs)
sudo add-apt-repository ppa:physikerwelt/mathoid

Did not work on Ubuntu 14.4, Ubuntu 16.4 and Debian 8.5. Further node.js in repositories don't work for mathoid installation in Ubuntu, Debian, Fedora 24 alpha and SL 7.2. Installation in SL 7.2 with latest node.js worked, see updated instructions.

Rjdave (talkcontribs)

When using \color{color}{stuff to color} mathoid colors the rest of the equation from \color on instead of just the "stuff to color". e.g.:

<math>x \color{blue}{=} 0</math>

results in a black "x" but a blue "= 0" instead of just the "=" being blue.

Reply to "Inaccuracies"

Ubuntu_package_(unmaintained)is useless

1
Jingkaimori (talkcontribs)
Reply to "Ubuntu_package_(unmaintained)is useless"

Test not producing expected result

3
Prh47bridge (talkcontribs)

When Mathoid is running I try to test it using:

curl -d 'q=E=mc^2' localhost:10044

as per the manual. Instead of the expected result I get:

{"status":500,"type":"internal_error","title":"TypeError","detail":"Cannot read property 'semantic' of undefined","method":"POST","uri":"/","success":false,"log":"Cannot read property 'semantic' of undefined","error":""}

My log shows:

{"name":"mathoid","hostname":"ns3299566.ip-5-135-154.eu","pid":1442,"level":50,"message":"500: internal_error","stack":"TypeError: Cannot read property 'semantic' of undefined\n    at srePostProcessor (/usr/lib/node_modules/mathoid/lib/math.js:118:16)\n    at BBPromise.then.then (/usr/lib/node_modules/mathoid/lib/math.js:299:20)\n    at tryCatcher (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:693:18)\n    at Async._drainQueue (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:133:16)\n    at Async._drainQueues (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:143:10)\n    at Immediate.Async.drainQueues (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:17:14)\n    at runCallback (timers.js:789:20)\n    at tryOnImmediate (timers.js:751:5)\n    at processImmediate [as _immediateCallback] (timers.js:722:5)","status":500,"type":"internal_error","detail":"Cannot read property 'semantic' of undefined","levelPath":"error/500","request_id":"06e8ae51-0c1c-11e8-a75a-adde2b46ba51","request":{"url":"/","headers":{"user-agent":"curl/7.47.0","content-length":"8","content-type":"application/x-www-form-urlencoded","x-request-id":"06e8ae51-0c1c-11e8-a75a-adde2b46ba51"},"method":"POST","params":{"0":"/"},"query":{},"remoteAddress":"127.0.0.1","remotePort":53513},"msg":"500: internal_error","time":"2018-02-07T15:31:55.216Z","v":0}

nodejs version is 8.9.4.

Any ideas?

Prh47bridge (talkcontribs)

Why was this marked as resolved? No solution was offered on here. I still have the problem. So how has it been resolved?

Mochome (talkcontribs)

I also face the exact same problem.

I have installed mathoid on Ubuntu 18.04. It used to work correctly, but recently it has been displayed as "Conversion error. Server ("cli") reported: " on mediawiki.

When I run:

curl -d 'q=E=mc^2' myserver:10044     (myserver is IP address of server running mathoid)

I get:

{"status":500,"type":"internal_error","title":"TypeError","detail":"Cannot read property 'semantic' of undefined","method":"POST","uri":"/","success":false,"log":"Cannot read property 'semantic' of undefined","error":""}

nodejs version is 8.10.0

Are there any workarounds?

Reply to "Test not producing expected result"

I think this is abandonware

4
170.199.250.52 (talkcontribs)

The documentation is useless. I spent the entire morning and a good bit of the afternoon trying to replicate these steps on multiple virtual machines as a test to see if this is possible. This page is utter total shit. Not one, not a single one of these paths resulted in the goal being met. Is this really what MediaWiki is?

Physikerwelt (talkcontribs)

@Whatamidoing (WMF)I think this user is dissatisfied with the mathoid documentation as many other users that comment on this page. I am maintaining https://github.com/wikimedia/mathoid/ (even though it might not be good enough as well). If something does not work I can also take care of bugs filed on Phabricator with the tag mathoid. Does WMF has a user support system for users that have difficulties with products offered by WMF? Can we also use the same pipeline for mathoid?

Whatamidoing (WMF) (talkcontribs)

No, unfortunately, there is no official support from the WMF for any third-party wiki. However, people with questions are welcome to ask other volunteers for help at the Project:Support desk or to join one of the off-wiki groups, such as the MediaWiki Stakeholders' Group. @MarkAHershberger probably knows about more groups that might be relevant.

Tgr (talkcontribs)

@Physikerwelt https://discourse-mediawiki.wmflabs.org/ is the planned support system (although as Whatamidoing says there isn't really such a thing as "products offered by WMF"), still in beta (see Discourse), but so far not a lot of effort went into making sure that users find it. Then again I don't think we should waste time on people who are unable to show some minimal respect to those whose hard work they are trying to use for free, so all a support system would do in such a case is moving the comments to the trash can.

Reply to "I think this is abandonware"

Configuration Documentation

2
N3X15 (talkcontribs)

There's not a whole lot of documentation on configuration, and many of the distributed defaults include what appear to be MediaWiki organization settings that would be useless or even detrimental to someone trying to get this software running on an isolated system. Examples would be the settings for stats servers and logging.

In my case, I have several wikis on seperate domains and I am trying to see if I can have all the domains use the same Mathoid service. It looks like that's what the foundation is doing, but there's zero documentation on how to do so.


Ciencia Al Poder (talkcontribs)

I've installed it on my server using the "NPM package (Debian Stretch)" section (which I completed with the instructions to create the daemon). This may be applicable to other installs. Note that I also have RESTBase, which I don't really know if it's a requirement

Reply to "Configuration Documentation"

Can't get Mathoid running on Ubuntu

1
Prh47bridge (talkcontribs)

I'm currently getting the following error:

{"name":"mathoid","hostname":"ns3299566.ip-5-135-154.eu","pid":23337,"level":60,"err":{"message":"Cannot read property 'displayMessages' of undefined","name":"TypeError","stack":"TypeError: Cannot read property 'displayMessages' of undefined\n    at Object.exports.config (/usr/lib/node_modules/mathoid/node_modules/mathoid-mathjax-node/lib/main.js:864:14)\n    at initApp (/usr/lib/node_modules/mathoid/app.js:149:11)\n    at module.exports (/usr/lib/node_modules/mathoid/app.js:254:12)\n    at _requireModule.then (/usr/lib/node_modules/mathoid/node_modules/service-runner/lib/worker.js:165:80)\n    at tryCatcher (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromiseCtx (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:606:10)\n    at Async._drainQueue (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:138:12)\n    at Async._drainQueues (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:143:10)\n    at Immediate.Async.drainQueues (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:17:14)\n    at runCallback (timers.js:789:20)\n    at tryOnImmediate (timers.js:751:5)\n    at processImmediate [as _immediateCallback] (timers.js:722:5)","levelPath":"fatal/service-runner/worker"},"msg":"Cannot read property 'displayMessages' of undefined","time":"2018-01-16T10:44:55.156Z","v":0}

Nodejs version is 8.9.4

Any idea?

Reply to "Can't get Mathoid running on Ubuntu"

How to install Mathoid on Windows?

1
Treesys (talkcontribs)
Reply to "How to install Mathoid on Windows?"
Tunglinwu (talkcontribs)

Centos 7 + nginx

it always cannot show error follow NPM package (CentOS 7).

It show Failed to parse.

Reply to "Cannot use"
There are no older topics