question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data files installed without read permission with Astropy 1.3.1

See original GitHub issue

@lpsinger filed this issue in the Macports tracker: https://trac.macports.org/ticket/53865

Since Astropy 1.3.1 the “data files” from Astropy are installed in Macports without file permission that prevent them being read by non-root users and thus import astropy fails because astropy.cfg in site-packages can’t be read.

This is a bit surprising since I think the issue was introduced with the Astropy 1.3.0 -> 1.3.1 update, with no changes on the Macports side: https://github.com/macports/macports-ports/commit/5c14ebc3d35e816cebb24ce08f85b1deec473eb6#diff-9bf981826bafa297ea70fa2ff3e20a21

We had noticed a while back a similar file permission issue for photutils in Macports, but didn’t manage to track down the cause (and there it only affected running the tests, not photutils itself): https://github.com/macports/macports-ports/pull/214 If someone knows the Astropy build system well, looking at this full log (for the photutils build) might reveal the issue: https://gist.github.com/cdeil/88f8e48d85d1c65f593d81db1e7e0d92#file-gistfile1-txt-L1151

@astrofrog @bsipocz - Has there been any change on the Astropy side, e.g. in astropy-helpers, that could lead to installing files without the “read” premission flag set?

@lpsinger @hamogu as Macports users – any idea what the cause or fix here could be?

I’m pretty clueless how to debug or fix this issue. So unless someone here comes with a suggestion within the next day or two, I’ll roll back the update to the previous 1.3.0 in Macports.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
astrofrogcommented, Mar 27, 2017

Ah ok hmm, well then maybe 1.3.2 makes sense then.

1reaction
lpsingercommented, Mar 27, 2017

It also says:

Creating post-releases of pre-releases is strongly discouraged, as it makes the version identifier difficult to parse for human readers. In general, it is substantially clearer to simply create a new pre-release by incrementing the numeric component.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1. Introduction — Astrodata User Manual 2.1.0 documentation
This is the AstroData User's Manual. AstroData is a DRAGONS package. The current chapter covers basic concepts like what is the astrodata package...
Read more >
Astropy Documentation, Release 1.0.11 - Read the Docs
If you get an error mentioning that you do not have the correct permissions to install Astropy into the default.
Read more >
Reading and Writing tabular ASCII data
One of these is the file() object which can be used to read or write files. Let's start off by downloading this data...
Read more >
FITS File Handling (astropy.io.fits)
If you want to read or write a single table in FITS format, the recommended method is via the high-level Unified File Read/Write...
Read more >
Astropy Documentation - The University of Texas at Austin
With Astropy 0.4 installed, run fitsheader file.fits in your ... that you do not have the correct permissions to install Astropy into the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found