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

Errors installing Emscripten during setup steps on a Windows machine #359

Open
chrispcampbell opened this issue Sep 26, 2023 Discussed in #358 · 4 comments
Open

Errors installing Emscripten during setup steps on a Windows machine #359

chrispcampbell opened this issue Sep 26, 2023 Discussed in #358 · 4 comments

Comments

@chrispcampbell
Copy link
Contributor

Discussed in #358

Originally posted by andyhe958 September 25, 2023
Hi everyone,

I have been trying to run SDEverywhere from command prompt on a Windows machine but came across an error below when installing Emscripten. It suggests Python is not found, but in fact I do have Python 3.11 installed.

Error message 1

Then I went on to disable the app alias for Python as suggested, but I got a second error, which seems to contradict with the first error:

Error message 2

I have since managed to install Emscripten separately, not as part of the SDEverywhere setup steps, and it was installed successfully. I think I would post this here to help others potentially in a similar situation, and to help with further configuration of this tool for Windows.

@tom-papaioannou
Copy link

Discussed in #358

Originally posted by andyhe958 September 25, 2023 Hi everyone,

I have been trying to run SDEverywhere from command prompt on a Windows machine but came across an error below when installing Emscripten. It suggests Python is not found, but in fact I do have Python 3.11 installed.

Error message 1

Then I went on to disable the app alias for Python as suggested, but I got a second error, which seems to contradict with the first error:

Error message 2

I have since managed to install Emscripten separately, not as part of the SDEverywhere setup steps, and it was installed successfully. I think I would post this here to help others potentially in a similar situation, and to help with further configuration of this tool for Windows.

Hello,

I had the same problem using git-bash environment.
I have edited the bashrc with nano

nano ~/.bashrc

to edit it and add at the end of the file this line to add it as alias
alias python3='python'

and saved. After a restart of the git-bash environment it worked.

If you use a windows terminal as CMD, I would create a python3.bat file and edit it to add these lines

@echo off
python %*

then procceed to add the folder of the bat file at the environment PATH variables in Windows settings.

@MSDRL
Copy link

MSDRL commented Jun 28, 2024

Hi Chris,
I have tried again and failed - the emscripten is installed - when I tried to reinstall, got this message:
SDEver-1
SDEver-1

When I downloaded the latest sdeverywhere and tried to create the project using your instructions I got the same error message:
SDEver-2
SDEver-2

I have really tried, wanted to give our students and customers a tool that replaces so called obsolete technologies like Sable, but this solution is not even half-cooked...
Please let me know when there is a working product with clear instructions and I'll be happy to try again.
Best,
Mark

@chrispcampbell
Copy link
Contributor Author

Hi @MSDRL, it looks like from the first screenshots that you have installed Emscripten separately yourself using Chocolatey, is that correct? If so, then when you run the npm create command, you should select “no” (i.e. type “n”) when it asks if you would like to install the Emscripten SDK. In other words, if you already have Emscripten installed, then there’s no point in having the create script do it for you, and you should skip that step (thus avoiding these Windows errors).

Note that we have recently added support for generating pure JavaScript code by default in part to avoid these issues you’re facing with Emscripten on Windows. New users who simply want to evaluate SDEverywhere should not have to worry about these steps and can get up and running faster when Wasm is not involved. These changes have not yet been “npm published” but will be published the week of July 8.

To summarize, you can either try my suggestion above about skipping the step, or wait a couple weeks at which point these install issues should go away.

@chrispcampbell
Copy link
Contributor Author

@MSDRL: To follow up on my last comments, the changes I was referring to have been published, so now if you follow the Quick Start instructions, when it asks you if you want to use WebAssembly, select "no" (the default) and it will create a project that uses JavaScript only (no Emscripten or generation of WebAssembly required).

See the August 2024 Updates announcement for more details.

I still plan to smooth out this issue with Emscripten installation on Windows, but for most projects, the generated JavaScript code will be sufficient to get started, and compiling to WebAssembly can always be configured later if needed for faster model execution.

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

3 participants