japj / ryppi

python version of http://github.com/isaacs/ryp
37 stars 7 forks source link

python ryppi.py install jade does not work #10

Open kajala opened 13 years ago

kajala commented 13 years ago

python ryppi.py install jade fails with following error:

Installing http://registry.npmjs.org/jade/-/jade-0.16.2.tgz into .\node_modules\jade .. Traceback (most recent call last): File "c:\bin\ryppi\ryppi.py", line 181, in install(sys.argv[i]) File "c:\bin\ryppi\ryppi.py", line 142, in install destPath = saveAndExtractPackage(meta) File "c:\bin\ryppi\ryppi.py", line 113, in saveAndExtractPackage tar.extractall(path = tmp_dir) File "C:\bin\python\lib\tarfile.py", line 2136, in extractall self.extract(tarinfo, path, set_attrs=not tarinfo.isdir()) File "C:\bin\python\lib\tarfile.py", line 2175, in extract set_attrs=set_attrs) File "C:\bin\python\lib\tarfile.py", line 2259, in _extract_member self.makelink(tarinfo, targetpath) File "C:\bin\python\lib\tarfile.py", line 2342, in makelink os.symlink(tarinfo.linkname, targetpath) OSError: symbolic link privilege not held

japj commented 13 years ago

strange it works for me:

C:\github\ryppi>python ryppi.py install jade
Installing http://registry.npmjs.org/jade/-/jade-0.16.2.tgz into .\node_modules\jade ...
Checking dependencies for jade ...
Installing http://registry.npmjs.org/mkdirp/-/mkdirp-0.0.7.tgz into .\node_modules\mkdirp ...
Checking dependencies for mkdirp ...
Installing http://registry.npmjs.org/commander/-/commander-0.2.0.tgz into .\node_modules\commander ...
Checking dependencies for commander ...
All done.

are you running ryppi as a different user that owns the installation directory?

nicogranelli commented 12 years ago

I get a similar error:

Installing http://registry.npmjs.org/jade/-/jade-0.18.0.tgz into .\node_modules\ jade ... Traceback (most recent call last): File "F:\nginx-1.0.5\html\vendogarage\ryppi.py", line 181, in install(sys.argv[i]) File "F:\nginx-1.0.5\html\vendogarage\ryppi.py", line 142, in install destPath = saveAndExtractPackage(meta) File "F:\nginx-1.0.5\html\vendogarage\ryppi.py", line 113, in saveAndExtractPa ckage tar.extractall(path = tmp_dir) File "F:\Python32\lib\tarfile.py", line 2136, in extractall self.extract(tarinfo, path, set_attrs=not tarinfo.isdir()) File "F:\Python32\lib\tarfile.py", line 2175, in extract set_attrs=set_attrs) File "F:\Python32\lib\tarfile.py", line 2259, in _extract_member self.makelink(tarinfo, targetpath) File "F:\Python32\lib\tarfile.py", line 2359, in makelink targetpath) File "F:\Python32\lib\tarfile.py", line 2251, in _extract_member self.makefile(tarinfo, targetpath) File "F:\Python32\lib\tarfile.py", line 2292, in makefile target = bltn_open(targetpath, "wb") IOError: [Errno 22] Invalid argument: '.\node_modules.tmp\package\support\ sass\index.js'

kajala commented 12 years ago

You can also install modules by just git clone . I use that now with the modules which don't work.

nicogranelli commented 12 years ago

Thanks for the advice. I do it in a similar way: just downloaded the file and unpacked it manually :)

At least we are giving this 2 options for the next person that come here googling for express and ryppi