[Sugar-devel] Problem with SugarBuild in Ubuntu 13.04
Daniel Narvaez
dwnarvaez at gmail.com
Tue Jun 25 11:07:08 EDT 2013
"with my npm installation" you mean you have installed npm also outside
sugar-build?
The permissions of your .npm directory looks broken, your user doesn't seem
to have access to the lock file inside it.
On Tuesday, 25 June 2013, laurent bernabe wrote:
> Hello again,
>
> when I launch run from the sugar build shell, I get a kind of conflict
> with my npm installation :
>
> -------------------------------------------
> Command failed: npm install -g --prefix
> /home/laurent-bernabe/Programmes/sugar-build/build/out/install
>
> npm ERR! addLocal Could not install .
> npm ERR! Error: EACCES, open '/home/laurent-bernabe/.npm/3a52ce78-.lock'
> npm ERR! { [Error: EACCES, open
> '/home/laurent-bernabe/.npm/3a52ce78-.lock']
> npm ERR! errno: 3,
> npm ERR! code: 'EACCES',
> npm ERR! path: '/home/laurent-bernabe/.npm/3a52ce78-.lock' }
> npm ERR!
> npm ERR! Please try running this command again as root/Administrator.
>
> npm ERR! System Linux 3.8.0-25-generic
> 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"
> npm ERR! cwd /home/laurent-bernabe/Programmes/sugar-build/grunt-cli
> npm ERR! node -v v0.10.11
> npm ERR! npm -v 1.2.30
> npm ERR! path /home/laurent-bernabe/.npm/3a52ce78-.lock
> npm ERR! code EACCES
> npm ERR! errno 3
> npm ERR! stack Error: EACCES, open
> '/home/laurent-bernabe/.npm/3a52ce78-.lock'
> npm ERR!
> npm ERR! Additional logging details can be found in:
> npm ERR!
> /home/laurent-bernabe/Programmes/sugar-build/grunt-cli/npm-debug.log
> npm ERR! not ok code 0
>
> -------------------------------------------
>
> 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).
>
> Regards
>
>
> 2013/6/25 laurent bernabe <laurent.bernabe at gmail.com>
>
> I launch the command without any virtual environment.
>
> I launched the commands you've just gave me :
> and this time it seems to work :)
>
> Thank you :)
>
>
>
>
> 2013/6/25 Daniel Narvaez <dwnarvaez at gmail.com>
>
> Very confusing and the error message is not really useful. Try
>
> git clean -ffdx
> ./osbuild
>
> Are you running this inside a VM? If so, is the network working reliably
> in the VM?
>
> On Tuesday, 25 June 2013, laurent bernabe wrote:
>
> Hello,
>
> Thanks for your answer.
>
> So I fetch the tarball with wget directly from the sugar build folder, and
> launched again the command :
>
> ---------------------------------------------------------------
> $ ./osbuild build
>
> = Setup the build system =
>
> * Create the python virtualenv
> Traceback (most recent call last):
> File
> "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py",
> line 2577, in <module>
> main()
> File
> "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py",
> line 979, in main
> no_pip=options.no_pip)
> File
> "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py",
> line 1091, in create_environment
> search_dirs=search_dirs, never_download=never_download)
> File
> "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py",
> line 611, in install_setuptools
> search_dirs=search_dirs, never_download=never_download)
> File
> "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py",
> line 583, in _install_req
> cwd=cwd)
> File
> "/home/laurent-bernabe/Programmes/sugar-build/build/out/sandbox/cache/virtualenv-1.9.1/virtualenv.py",
> line 1057, in call_subprocess
> % (cmd_desc, proc.returncode))
> OSError: Command /home/laurent-bernab...x/install/bin/python -c "#!python
> \"\"\"Bootstra...sys.argv[1:])
>
>
>
>
>
>
> " /home/laurent-bernab...ols-0.6c11-py2.7.egg failed with error code 1
> Traceback (most recent call last):
> File "./osbuild", line 245, in <module>
> main()
> File "./osbuild", line 210, in main
> raise e
> 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
>
> --------------------------------------------------------------------
>
> Thanks in advance
>
>
> 2013/6/25 Daniel Narvaez <dwnarvaez at gmail.com>
>
> Weird, it's trying to download and uncompress
>
>
> https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.1.tar.gz
>
> 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).
>
>
> On 25 June 2013 13:36, laurent bernabe
>
>
--
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130625/23236a3a/attachment.html>
More information about the Sugar-devel
mailing list