Group Abstract Group Abstract

Message Boards Message Boards

[WSS19] Wolfram Language using Scratch Blocks

11 Replies
Posted 6 years ago

Has anybody been able to get this to successfully installed and working with Mathematica on a Mac? And if so, exactly how?

POSTED BY: Updating Name
POSTED BY: EDITORIAL BOARD

Ooops...I forgot to run npm install in the BlockyWL directory. I now did that, and I think it's stuck in an infinite loop: been running about 10 minutes, keep seeing "Installing Scratch VM dependencies".

POSTED BY: Murray Eisenberg

That's precisely what happens for me, yes.

POSTED BY: Arben Kalziqi
Posted 6 years ago

I think git clone is required so that the submodules are also cloned. On Mac OS.

eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa
git clone --recurse-submodules git@github.com:Mackaber/BlockyWL.git
cd BlockyWL
npm install

No infinite loop, but fails with

No matching distribution found for wolframwebengine

Expected because I have not installed

https://pypi.org/project/wolframwebengine/

POSTED BY: Rohit Namjoshi

Your method of obtaining and running your Scratch with WL just does not work for me.

First, I made sure I had a github ssh key, was logged in at github, and had ssh-agent running. Still, the git-clone command failed. So finally I just did a direct download using the "Clone button" on your project page, then unzipped (and removed the "-master" appendage to the name of the resulting folder.

But now, npm start generate errors:

> blockywl@0.0.1 start /Users/murray/Downloads/BlockyWL
> concurrently 'npm:wl-*'

sh: concurrently: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! blockywl@0.0.1 start: `concurrently 'npm:wl-*'`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the blockywl@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
...
POSTED BY: Murray Eisenberg
Posted 6 years ago

Murray,

Did npm install succeed?

POSTED BY: Rohit Namjoshi

This is really cool, and I'd love to play with it—I've downloaded the source from github, but I can't get working (and neither can a few others I've spoken to). Would it be possible to get some guidance here on a fix, possibly with the help of @Kyle Keane ?

Thanks!

Arben

POSTED BY: Arben Kalziqi

Hi Arben, I just put the project in a separate directory and make sure it works as a new installation. Also, I included instructions on how to add new Functions/Challenges/Tutorials.

You can check it here: https://github.com/Mackaber/BlockyWL

Hey Miguel—thanks! I'm woefully unfamiliar with git, but I think you to set the permissions for the project to public? I get a permissions error when trying to use git clone via terminal. Failing that, I downloaded the zip, and I get the same problem as previously when trying to run npm install from the BlockyWL folder...

POSTED BY: Arben Kalziqi

Sorry for the inconvenience, This project makes use of submodules (separate projects to keep the code organized) you may need to generate an ssh key and upload it to Github, you can follow this guide: https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent Alternatively you can download https://github.com/Mackaber/scratch-gui/ and https://github.com/Mackaber/scratch-vm/ separately and put both of them into the "client" directory.

Hope this solves the issue.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard