vsajip / prettytable

Automatically exported from code.google.com/p/prettytable
Other
0 stars 0 forks source link

permission on files in egg-info not group/others readable #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the package from 
https://prettytable.googlecode.com/files/prettytable-0.7.2.tar.gz
2. Extract and notice the permission for all files, especially the ones under 
prettytable.egg-info directory
3. They should be readable by group/others.

What is the expected output? What do you see instead?
rainbow:Downloads barumugam$ tar -jxf prettytable-0.7.2.tar.bz2 && ls -lrt 
prettytable-0.7.2/prettytable.egg-info/
total 32
-rw-------@ 1 barumugam  staff   12 Apr  6 18:30 top_level.txt
-rw-------@ 1 barumugam  staff    1 Apr  6 18:30 dependency_links.txt
-rw-------@ 1 barumugam  staff  220 Apr  6 18:30 SOURCES.txt
-rw-------@ 1 barumugam  staff  710 Apr  6 18:30 PKG-INFO

What version of the product are you using? On what operating system?
0.7.2
The permission is wrong in the tar file. No matter which OS we use to extract, 
the permission is wrong. Due to this issue, if we install any library using pip 
as non-root user, it fail with following error. This one occur precisely when 
we install MySQL-python using pip, wherein prettytable is one of requirements. 
The issue seem to exist even in older versions, say: 0.7.1.

  File "/tmp/tmp2wlMmf/distribute-0.6.28/pkg_resources.py", line 1320, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: 
'/usr/local/csi/lib/python2.6/site-packages/prettytable-0.7.2-py2.6.egg-info/top
_level.txt'
/home/jenkins/workspace/csi-nova-upstream/.tox/py26/build/MySQL-python/distribut
e-0.6.28-py2.6.egg
Traceback (most recent call last):
  File "<string>", line 16, in <module>
  File "/home/jenkins/workspace/csi-nova-upstream/.tox/py26/build/MySQL-python/setup.py", line 7, in <module>
    use_setuptools()
  File "distribute_setup.py", line 145, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "distribute_setup.py", line 125, in _do_download
    _build_egg(egg, tarball, to_dir)
  File "distribute_setup.py", line 116, in _build_egg
    raise IOError('Could not build the egg.')
IOError: Could not build the egg.

Can you please fix it or regenerate the package with right permission for these 
files?

Thank you,
Bhuvan

Original issue reported on code.google.com by bhuvanes...@gmail.com on 28 Aug 2013 at 9:13

GoogleCodeExporter commented 9 years ago
For information, simply regenerating the egg from sources and upload it 
somewhere solves the problem for me.

Original comment by cedric....@gmail.com on 9 Sep 2013 at 8:41

GoogleCodeExporter commented 9 years ago
Indeed that fix the problem. That's the workaround we have been following, ever 
since we faced this problem.

I think, out of box the file permission should be correct.

Original comment by bhuvanes...@gmail.com on 9 Sep 2013 at 5:03

GoogleCodeExporter commented 9 years ago
Hi everyone,

Thanks for reporting this problem, and for providing temporary workarounds.  
I'm sorry it's taken me some time to reply to the initial report.  I have been 
very busy with work lately and, strangely, PrettyTable reports have been coming 
in a heavy burst lately.  I really haven't had time to deal with them yet, but 
I am aware that they are piling up and I hope to make some time soon to work 
through them all to get problems resolved.  I hope that things will be under 
control by the end of this month.  In the mean time, please continue to use the 
workaround provided.  Thanks for your patience and sorry again for my slow 
response.

Cheers,
Luke

Original comment by luke@maurits.id.au on 9 Sep 2013 at 5:17