Issue with publishing to web

Use this forum to post Vensim related questions.
Post Reply
zm00
Junior Member
Posts: 6
Joined: Mon Mar 22, 2021 10:32 am
Vensim version: DSS

Issue with publishing to web

Post by zm00 »

I have followed the steps outlined in the documentation, however when I publish to web I get an error stating that "Compilation to WASM appears to have failed". It produces some of the web files but not mdl.js or mdl.wasm.

Is anyone aware of what could be causing this? (I don't have admin rights for my computer so would need to be able to explain clearly what the fix needs to be to IT)
Administrator
Super Administrator
Posts: 3848
Joined: Wed Mar 05, 2003 3:10 am

Re: Issue with publishing to web

Post by Administrator »

What versions of GIT, Python and Emscripten do you have installed?

And are you on MacOS or Windows?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
zm00
Junior Member
Posts: 6
Joined: Mon Mar 22, 2021 10:32 am
Vensim version: DSS

Re: Issue with publishing to web

Post by zm00 »

I am using windows and have the versions:
Git version 2.30.1
Python version 3.9.2
Administrator
Super Administrator
Posts: 3848
Joined: Wed Mar 05, 2003 3:10 am

Re: Issue with publishing to web

Post by Administrator »

What version of Emscripten?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
zm00
Junior Member
Posts: 6
Joined: Mon Mar 22, 2021 10:32 am
Vensim version: DSS

Re: Issue with publishing to web

Post by zm00 »

Emscripten version 2.0.15
Administrator
Super Administrator
Posts: 3848
Joined: Wed Mar 05, 2003 3:10 am

Re: Issue with publishing to web

Post by Administrator »

ok. If you edit
C:\Users\Public\Vensim\COMP\wasm\wasm_compile.bat

and make sure the last line is "pause". Run the compile to web again and the compile window should pause so that you can see the errors. Can you paste the output here?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 3259
Joined: Wed May 24, 2006 4:54 am

Re: Issue with publishing to web

Post by tomfid »

Also, be sure you're running the latest Vensim - one of the 8.1.x versions was mismatched with an emscripten update as I recall.
zm00
Junior Member
Posts: 6
Joined: Mon Mar 22, 2021 10:32 am
Vensim version: DSS

Re: Issue with publishing to web

Post by zm00 »

I have edited the file to have pause however it is still closing. The error says that it is unable to find mdl.js and mdl.wasm.
Administrator
Super Administrator
Posts: 3848
Joined: Wed Mar 05, 2003 3:10 am

Re: Issue with publishing to web

Post by Administrator »

Can you upload a screen shot of these errors please?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
zm00
Junior Member
Posts: 6
Joined: Mon Mar 22, 2021 10:32 am
Vensim version: DSS

Re: Issue with publishing to web

Post by zm00 »

Of course, here you go
Attachments
Vensim Error for Forum (4).png
Vensim Error for Forum (4).png (115.67 KiB) Viewed 817 times
Administrator
Super Administrator
Posts: 3848
Joined: Wed Mar 05, 2003 3:10 am

Re: Issue with publishing to web

Post by Administrator »

It looks like it's not getting to the line where is calls the emscripten compiler.

The batch file to compile has the following lines,

Code: Select all

del web\mdl.js
del web\mdl.wasm
mkdir web
Which are executed (the "could not find" and "a subdirectory or file." show this).

Does the compile process just stop at this point?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
zm00
Junior Member
Posts: 6
Joined: Mon Mar 22, 2021 10:32 am
Vensim version: DSS

Re: Issue with publishing to web

Post by zm00 »

Yes it just stops and throws "Compilation to WASM appears to have failed" error
Yada6970
Newbie
Posts: 1
Joined: Sat May 08, 2021 2:41 pm
Vensim version: DSS

Re: Issue with publishing to web

Post by Yada6970 »

Any updated on this? I am facing the same issue

Windows 10
Python 3.9
Vensim 8.1.X
Administrator
Super Administrator
Posts: 3848
Joined: Wed Mar 05, 2003 3:10 am

Re: Issue with publishing to web

Post by Administrator »

Yada6970 wrote: Sun May 09, 2021 7:24 am Any updated on this? I am facing the same issue

Windows 10
Python 3.9
Vensim 8.1.X
Can you start a new thread please and provide some output so we can try and help?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply