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

Srevin Saju srevinsaju at sugarlabs.org
Mon Sep 28 01:01:28 EDT 2020


Depending on the operating system you use, are you sure you are able to 
run `python` from your terminal? Not `python3` or `python2`. If 
possible, send the output of

$ which python

The default Ubuntu 20.04 packages for python3, does not include a 
`python` binary iirc. So this is quite important step. Setting aliases 
won't help. On Ubuntu 20.04+, looking at this 
https://askubuntu.com/questions/320996/how-to-make-python-program-command-execute-python-3 
post, this should solve the problem

|sudo apt install python-is-python3|

|
|

|
|

On 9/28/20 7:50 AM, sugar-devel-request at lists.sugarlabs.org wrote:
>
> 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

-- 
--
V/r
Srevin Saju

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x1007816766D390D7.asc
Type: application/pgp-keys
Size: 4849 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200928/c369e6d9/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200928/c369e6d9/attachment.sig>


More information about the Sugar-devel mailing list