Fwd: locale problems [Astropy v0.4]

Derek Homeier <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <5A578CE2-CD9C-44B7-AFA7-54D95640221E@astro.physik.uni-goettingen.de>
Hi,

forwarding this here in case there are other Fink packages where this has become an issue
(the package in question is on https://sourceforge.net/p/fink/package-submissions/4396/):

Begin forwarded message:

>> I had a look at the new release and actually ran into a problem right away building it on OS X 10.9:
>> File "/scratch.noindex/fink.build/astropy-py34-0.4-1/astropy-0.4/ah_bootstrap.py", line 435, in _check_submodule_using_git
>>    stderr = stderr.decode(stdio_encoding)
>> TypeError: decode() argument 1 must be str, not None
> 
> We've got a known issue for the issue of incorrectly set environment
> variables (such as in the MacOS X terminal):
> 
> 
> http://docs.astropy.org/en/stable/known_issues.html#utf-8-locale-error-on-macos-x
> 
> I've now opened a pull request to add other errors such as the one above
> which are due to the same issue:
> 
>  https://github.com/astropy/astropy/pull/2760
> 
> Erik B. has also been working on a workaround that will try and get
> around issues of misconfigured locale variables. In the mean time, it
> makes sense to set these correctly as shown in the 'known issue' above,
> since this is an error that can occur with other packages, not just astropy.

If this is a more common problem, maybe it makes sense to add something like
SetLC_XXX:
fields to the package description (or perhaps even have Fink always set sane defaults).
But otoh in the fink build the issue was not LC_CTYPE being set to UTF-8 but rather being not set
at all, and this problem might be more specific to astropy. In that case it’s perhaps better to just use
the workaround until this is resolved upstream.

Cheers,
					Derek


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.