[Sugar-devel] Unable to set up the Music Blocks repository

Shrey tripathi shreytripathi27 at gmail.com
Mon Sep 28 00:50:26 EDT 2020


Hello,

I didn't know whom to contact regarding this or where to post this, hence
am putting this up here.

I was following the steps to set up Music Blocks on my local system from
here <https://github.com/sugarlabs/musicblocks#how-to-set-up-a-local-server>.
But after I cloned the repository, changed my directory to 'musicblocks',
and ran 'npm run serve', I get the following error:

> musicblocks at 3.2.0 serve /home/me/SUGAR/musicblocks
> > python -c "import os, sys; os.system('python -m SimpleHTTPServer 3000
> --bind 127.0.0.1') if sys.version_info.major==2 else os.system('python -m
> http.server 3000 --bind 127.0.0.1');"
>
> sh: 1: python: not found
> npm ERR! code ELIFECYCLE
> npm ERR! syscall spawn
> npm ERR! file sh
> npm ERR! errno ENOENT
> npm ERR! musicblocks at 3.2.0 serve: `python -c "import os, sys;
> os.system('python -m SimpleHTTPServer 3000 --bind 127.0.0.1') if
> sys.version_info.major==2 else os.system('python -m http.server 3000 --bind
> 127.0.0.1');"`
> npm ERR! spawn ENOENT
> npm ERR!
> npm ERR! Failed at the musicblocks at 3.2.0 serve script.
> npm ERR! This is probably not a problem with npm. There is likely
> additional logging output above.
>
> npm ERR! A complete log of this run can be found in:
> npm ERR!     /home/me/.npm/_logs/2020-09-28T04_33_00_096Z-debug.log
>

I have npm(version 6.14.4), node(version v10.19.0), and python installed on
my Ubuntu system, and I can run 'python' from the command line. The
complete error log as defined in the last line above can be found here
<https://gist.github.com/shrey27tri01/800bcc8362eb1929aa56968fbfaa606d>.

Please help me out here.

Thanks,
Shrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200928/d6550c41/attachment-0001.htm>


More information about the Sugar-devel mailing list