"with my npm installation" you mean you have installed npm also outside sugar-build?<div><br></div><div>The permissions of your .npm directory looks broken, your user doesn't seem to have access to the lock file inside it.<span></span><br>
<br>On Tuesday, 25 June 2013, laurent bernabe wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello again,<div><br></div><div>when I launch run from the sugar build shell, I get a kind of conflict with my npm installation :</div>
<div><br></div><div>-------------------------------------------</div><div>
<div>Command failed: npm install -g --prefix /home/laurent-bernabe/Programmes/sugar-build/build/out/install</div><div><br></div><div>npm ERR! addLocal Could not install .</div><div>npm ERR! Error: EACCES, open '/home/laurent-bernabe/.npm/3a52ce78-.lock'</div>
<div>npm ERR! { [Error: EACCES, open '/home/laurent-bernabe/.npm/3a52ce78-.lock']</div><div>npm ERR! errno: 3,</div><div>npm ERR! code: 'EACCES',</div><div>npm ERR! path: '/home/laurent-bernabe/.npm/3a52ce78-.lock' }</div>
<div>npm ERR! </div><div>npm ERR! Please try running this command again as root/Administrator.</div><div><br></div><div>npm ERR! System Linux 3.8.0-25-generic</div><div>npm ERR! command "/home/laurent-bernabe/Programmes/sugar-build/build/out/install/bin/node" "/home/laurent-bernabe/Programmes/sugar-build/build/out/install/bin/npm" "install" "-g" "--prefix" "/home/laurent-bernabe/Programmes/sugar-build/build/out/install"</div>
<div>npm ERR! cwd /home/laurent-bernabe/Programmes/sugar-build/grunt-cli</div><div>npm ERR! node -v v0.10.11</div><div>npm ERR! npm -v 1.2.30</div><div>npm ERR! path /home/laurent-bernabe/.npm/3a52ce78-.lock</div><div>npm ERR! code EACCES</div>
<div>npm ERR! errno 3</div><div>npm ERR! stack Error: EACCES, open '/home/laurent-bernabe/.npm/3a52ce78-.lock'</div><div>npm ERR! </div><div>npm ERR! Additional logging details can be found in:</div><div>npm ERR! /home/laurent-bernabe/Programmes/sugar-build/grunt-cli/npm-debug.log</div>
<div>npm ERR! not ok code 0</div></div><div><br></div><div>-------------------------------------------</div><div><br></div><div>The message says me that I must be super-administrator : but I tried from inside sugar build shell as administrator, and it didn't solve the problem (neither did trying "sudo run" from sugar build shell).</div>
<div><br></div><div>Regards</div></div><div><br><br><div>2013/6/25 laurent bernabe <span dir="ltr"><<a>laurent.bernabe@gmail.com</a>></span><br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I launch the command without any virtual environment.</div><div><br></div>I launched the commands you've just gave me :<div>
and this time it seems to work :)</div><div><br></div><div>Thank you :)</div>
<div><br></div><div><br></div></div><div><br><br><div>2013/6/25 Daniel Narvaez <span dir="ltr"><<a>dwnarvaez@gmail.com</a>></span><br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Very confusing and the error message is not really useful. Try<div><br></div><div>git clean -ffdx</div><div>./osbuild</div>
<div><br></div><div>Are you running this inside a VM? If so, is the network working reliably in the VM?<span></span><br>
<br>On Tuesday, 25 June 2013, laurent bernabe wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Thanks for your answer.</div>
<div><br></div><div>So I fetch the tarball with wget directly from the sugar build folder, and launched again the command :</div><div><br></div><div>---------------------------------------------------------------</div>
<div><div>$ ./osbuild build</div><div><br></div><div>= Setup the build system =</div><div><br></div><div>* Create the python virtualenv</div><div>Traceback (most recent call last):</div><div> File "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py", line 2577, in <module></div>
<div> main()</div><div> File "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py", line 979, in main</div><div> no_pip=options.no_pip)</div><div> File "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py", line 1091, in create_environment</div>
<div> search_dirs=search_dirs, never_download=never_download)</div><div> File "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py", line 611, in install_setuptools</div>
<div> search_dirs=search_dirs, never_download=never_download)</div><div> File "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py", line 583, in _install_req</div>
<div> cwd=cwd)</div><div> File "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py", line 1057, in call_subprocess</div><div> % (cmd_desc, proc.returncode))</div>
<div>OSError: Command /home/laurent-bernab...x/install/bin/python -c "#!python</div><div>\"\"\"Bootstra...sys.argv[1:])</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>
<div>
<br></div><div>" /home/laurent-bernab...ols-0.6c11-py2.7.egg failed with error code 1</div><div>Traceback (most recent call last):</div><div> File "./osbuild", line 245, in <module></div><div> main()</div>
<div> File "./osbuild", line 210, in main</div><div> raise e</div><div>subprocess.CalledProcessError: Command '['python', '/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py', '-q', '--system-site-packages', '/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/install']' returned non-zero exit status 1</div>
</div><div><br></div><div>--------------------------------------------------------------------</div><div><br></div><div>Thanks in advance</div></div><div><br><br><div>2013/6/25 Daniel Narvaez <span dir="ltr"><<a>dwnarvaez@gmail.com</a>></span><br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Weird, it's trying to download and uncompress<br><br><a href="https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.1.tar.gz" target="_blank">https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.1.tar.gz</a><br>
<br></div><div>Maybe try to download that with wget and see if you get a valid tarball? I would also retry to run osbuild now in case it was some temporary weirdness (it seems to work for me right now).<br></div></div><div>
<br><br><div>On 25 June 2013 13:36, laurent bernabe <span dir="ltr"></span></div></div></blockquote></div></div></blockquote></div></blockquote></div></div></blockquote></div></div></blockquote></div><br><br>-- <br>Daniel Narvaez<br>
<br>