Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong access rights for cdp-1.0.3-py2.7.egg-info/PKG-INFO #21

Open
jypeter opened this issue Aug 29, 2017 · 5 comments
Open

Wrong access rights for cdp-1.0.3-py2.7.egg-info/PKG-INFO #21

jypeter opened this issue Aug 29, 2017 · 5 comments

Comments

@jypeter
Copy link
Member

jypeter commented Aug 29, 2017

@zshaheen I have just stumbled on an interesting cdp-related side effect

I'm maintaining a multi-user distribution of uv-cdat (with multiple versions of uv-cdat as well) and when one of my users tried to launch spyder, she got a huge traceback ending with
IOError: [Errno 13] Permission denied: '/home/share/unix_files/cdat/miniconda2/envs/cdatm15/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/PKG-INFO'

Turns out that the PKG-INFO file was indeed only readable for me

ls -l /home/share/unix_files/cdat/miniconda2/envs/cdatm15/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/PKG-INFO
-rw------- 2 jypeter lsce 234 Apr  4 20:35 /home/share/unix_files/cdat/miniconda2/envs/cdatm15/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/PKG-INFO

Problem was solved with a simple chmod a+r cdp-1.0.3-py2.7.egg-info/PKG-INFO

Can you change that in the (next) official version?

I don't know why spyder got there. Maybe it was scanning the content of python2.7/site-packages/ ...

@doutriaux1
Copy link
Contributor

eggs....

@jypeter
Copy link
Member Author

jypeter commented Aug 29, 2017

eggs can hatch bugs?

@zshaheen
Copy link
Contributor

Hmmm, this might be an issue related to Anaconda. Since you installed pmp on the shared environment, it only gave you permission. It might have even just symbolically linked cdp from your root anaconda env as well (we had a similar permission issue a few weeks ago).

I'll investigate further.

@jypeter
Copy link
Member Author

jypeter commented Aug 31, 2017

The problem seems to be suspiciously similar to PCMDI/pcmdi_metrics#496

Can you apply the same solution/trick/whatever to the next versions of cdp and all future egg based stuff that might generate the same problem?

I have just checked which files may be affected in a pristine environment (uvcdat 2.10 with my special sauce) and only the few cdp files have this read permission problem

(cdatm15) bash-4.2$ find cdatm15 -print | wc -l       
65464
(cdatm15) bash-4.2$ find cdatm15 -type f -print | wc -l
58330
(cdatm15) bash-4.2$ find cdatm15 \! -perm /g+r,o+r -ls
50333969    4 -rw-------   2 jypeter  lsce          234 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/PKG-INFO
50333971    4 -rw-------   2 jypeter  lsce          291 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/SOURCES.txt
50333962    4 -rw-------   2 jypeter  lsce            4 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/top_level.txt
50333961    4 -rw-------   2 jypeter  lsce            1 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/dependency_links.txt
50333960    4 -rw-------   2 jypeter  lsce            1 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/not-zip-safe
50333987    8 -rw-------   2 jypeter  lsce         5149 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_viewer.pyc
50333986    8 -rw-------   2 jypeter  lsce         4208 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_metric.py
50333966    4 -rw-------   2 jypeter  lsce          150 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/__init__.pyc
50333968    4 -rw-------   2 jypeter  lsce          201 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_provenance.py
50333988    8 -rw-------   2 jypeter  lsce         5365 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_metric.pyc
50333982    4 -rw-------   2 jypeter  lsce         1821 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_parser.py
50333981    4 -rw-------   2 jypeter  lsce         1773 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_parameter.py
50333973    4 -rw-------   2 jypeter  lsce          670 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_output.py
50333980    4 -rw-------   2 jypeter  lsce         1642 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_output.pyc
50333979    4 -rw-------   2 jypeter  lsce         1474 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/_cache.pyc
50333967    4 -rw-------   2 jypeter  lsce          187 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_tool.py
50333989    0 -rw-------   2 jypeter  lsce            0 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/__init__.py
50333985    4 -rw-------   2 jypeter  lsce         3843 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_viewer.py
50333984    4 -rw-------   2 jypeter  lsce         2436 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_parameter.pyc
50333970    4 -rw-------   2 jypeter  lsce          288 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_io.py
50333974    4 -rw-------   2 jypeter  lsce          692 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_tool.pyc
50333978    4 -rw-------   2 jypeter  lsce          878 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_io.pyc
50333976    4 -rw-------   2 jypeter  lsce          734 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/_cache.py
50333983    4 -rw-------   2 jypeter  lsce         2269 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_parser.pyc
50333975    4 -rw-------   2 jypeter  lsce          724 Apr  4 20:35 cdatm15/lib/python2.7/site-packages/cdp/cdp_provenance.pyc

@jypeter
Copy link
Member Author

jypeter commented Sep 11, 2017

@zshaheen cdp is still the only package with permissions problems in 2.12
But that's to be expected, since it's the same version of cdp (1.0.3) in 2.12 and 2.10 :-)

(cdatm16) bash-4.1$ find uvcdat-2.12 \! -perm /g+r,o+r -ls
24774102    4 -rw-------   3 jypeter  lsce          670 Apr  4 20:35 uvcdat-2.12/lib/python2.7/site-packages/cdp/cdp_output.py
24774113    4 -rw-------   3 jypeter  lsce         2436 Apr  4 20:35 uvcdat-2.12/lib/python2.7/site-packages/cdp/cdp_parameter.pyc
24774111    4 -rw-------   3 jypeter  lsce         1821 Apr  4 20:35 uvcdat-2.12/lib/python2.7/site-packages/cdp/cdp_parser.py
[...]
24774098    4 -rw-------   3 jypeter  lsce          234 Apr  4 20:35 uvcdat-2.12/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/PKG-INFO
24774089    4 -rw-------   3 jypeter  lsce            1 Apr  4 20:35 uvcdat-2.12/lib/python2.7/site-packages/cdp-1.0.3-py2.7.egg-info/not-zip-safe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants