ttraj / socksipy-branch

Automatically exported from code.google.com/p/socksipy-branch
0 stars 0 forks source link

Installing with easy_install fails #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
$ easy_install SocksiPy-branch
Searching for SocksiPy-branch
Reading http://pypi.python.org/simple/SocksiPy-branch/
Reading http://code.google.com/p/socksipy-branch/
Best match: SocksiPy-branch 1.02
Downloading 
http://socksipy-branch.googlecode.com/files/SocksiPy-branch-1.02.tar.gz
Processing SocksiPy-branch-1.02.tar.gz
error: Permission denied <built-in function listdir> 
/var/folders/tQ/tQt39yC8EKS4083j2vvtRU+++TI/-Tmp-/easy_install-mkq8gT/SocksiPy-b
ranch-1.02

"ls -ld 
/var/folders/tQ/tQt39yC8EKS4083j2vvtRU+++TI/-Tmp-/easy_install-mkq8gT/SocksiPy-b
ranch-1.02" displays the permissions as d---------.

Installing with pip succeeds, though.

Original issue reported on code.google.com by camillo....@gmail.com on 4 Nov 2010 at 11:45

GoogleCodeExporter commented 8 years ago
Worked for me. What distro? Did you have permissions to write to the 
dist-packages directory?

Original comment by motoma on 1 Dec 2010 at 9:57

GoogleCodeExporter commented 8 years ago
Mac OS X 10.6. Do you mean site-packages? In that case, yes, I did.

Original comment by camillo....@gmail.com on 8 Dec 2010 at 2:46

GoogleCodeExporter commented 8 years ago
I also have experienced this issue. There's something special about the way the 
.tar.gz is created that when easy_install (or regular tar) untars the package, 
the permissions forbid even listing or changing to that directory.

My guess is it works for you because you're using an account with root 
permissions or otherwise using a tool that replaces the permissions.

On Ubuntu 10.04 with a limited user account:

jaraco@devjaraco:~$ wget 
http://socksipy-branch.googlecode.com/files/SocksiPy-branch-1.02.tar.gz -O - | 
tar xz
--2011-07-20 09:15:18--  
http://socksipy-branch.googlecode.com/files/SocksiPy-branch-1.02.tar.gz
Resolving socksipy-branch.googlecode.com... 72.14.213.82
Connecting to socksipy-branch.googlecode.com|72.14.213.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8429 (8.2K) [application/x-gzip]
Saving to: `STDOUT'

100%[======================================>] 8,429       54.4K/s   in 0.2s

2011-07-20 09:15:19 (54.4 KB/s) - written to stdout [8429/8429]

jaraco@devjaraco:~$ ls -lad S*
d--------- 2 jaraco staff 4096 2010-09-20 18:04 SocksiPy-branch-1.02
jaraco@devjaraco:~$ cd SocksiPy-branch-1.02/
-bash: cd: SocksiPy-branch-1.02/: Permission denied
jaraco@devjaraco:~$ easy_install 
http://socksipy-branch.googlecode.com/files/SocksiPy-branch-1.02.tar.gz
Downloading 
http://socksipy-branch.googlecode.com/files/SocksiPy-branch-1.02.tar.gz
Processing SocksiPy-branch-1.02.tar.gz
error: Permission denied <built-in function listdir> 
/tmp/easy_install-Il1cRt/SocksiPy-branch-1.02

Attached is a repackaging of 1.02 that was built with distutils' sdist command 
and does not appear to be subject to the error.

Original comment by jaraco%jaraco.com@gtempaccount.com on 20 Jul 2011 at 4:19

Attachments:

GoogleCodeExporter commented 8 years ago
This is trivial to fix.  Please issue a new version.  The file permissions in 
the tar are totally bogus.

tar tfvv SocksiPy-branch-1.02.tar.gz 
d--------- Motoma/None       0 2010-09-20 18:04 SocksiPy-branch-1.02/
---------- Motoma/None     622 2010-09-16 08:46 SocksiPy-branch-1.02/BUGS
---------- Motoma/None    1423 2010-09-16 08:46 SocksiPy-branch-1.02/LICENSE
---------- Motoma/None     357 2010-09-20 18:04 SocksiPy-branch-1.02/PKG-INFO
---------- Motoma/None    9233 2010-09-16 08:46 SocksiPy-branch-1.02/README
---------- Motoma/None     463 2010-09-20 17:55 SocksiPy-branch-1.02/setup.py
---------- Motoma/None   16177 2010-09-16 13:23 SocksiPy-branch-1.02/socks.py

Original comment by schw...@gmail.com on 15 May 2013 at 6:55

GoogleCodeExporter commented 8 years ago
It is worth noting that the released zip file does not have this problem.

Original comment by marin...@gmail.com on 12 Aug 2013 at 7:51

GoogleCodeExporter commented 8 years ago
You need to add sudo. SO : $sudo easy_install SocksiPy-branch

Original comment by Tthe.dollarR on 8 Jul 2015 at 2:58