[AstroPy] Can't install aplpy

Thomas Robitaille thomas.robitaille at gmail.com
Sun Oct 27 14:48:19 EDT 2013


Hi Sandily,

Could you try doing:

export LOCALE="C"

then trying the pip command again? Any luck?

Cheers,
Tom


On 27 October 2013 19:25, Sandily Rivera <sandily.r at gmail.com> wrote:
>
>>
>> Hi, I'm trying to install the package APLpy but I can't, I have a Macbok pro with OS X 10.8.5.
>>
>> This is what I typed:
>> pip install --upgrade aplpy
>>
>> and this is what I got:
>>
>>
>> Downloading/unpacking aplpy
>>  Downloading APLpy-0.9.9.tar.gz (689kB): 689kB downloaded
>>  Running setup.py egg_info for package aplpy
>>    Traceback (most recent call last):
>>      File "<string>", line 16, in <module>
>>      File "/private/var/folders/bf/jrt8km3d32n_l86k03wkv1l00000gn/T/pip_build_Sandily/aplpy/setup.py", line 31, in <module>
>>        from astropy.setup_helpers import (register_commands, adjust_compiler,
>>      File "/Users/NoeR/anaconda/lib/python2.7/site-packages/astropy/setup_helpers.py", line 46, in <module>
>>        from sphinx.setup_command import BuildDoc as SphinxBuildDoc
>>      File "/Users/NoeR/anaconda/lib/python2.7/site-packages/sphinx/setup_command.py", line 20, in <module>
>>        from sphinx.application import Sphinx
>>      File "/Users/NoeR/anaconda/lib/python2.7/site-packages/sphinx/application.py", line 21, in <module>
>>        from docutils.parsers.rst import convert_directive_function, \
>>      File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/parsers/rst/__init__.py", line 74, in <module>
>>        import docutils.statemachine
>>      File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/statemachine.py", line 113, in <module>
>>        from docutils import utils
>>      File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module>
>>        import docutils.io
>>      File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/io.py", line 18, in <module>
>>        from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
>>      File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in <module>
>>        locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
>>      File "/Users/NoeR/anaconda/lib/python2.7/locale.py", line 511, in getdefaultlocale
>>        return _parse_localename(localename)
>>      File "/Users/NoeR/anaconda/lib/python2.7/locale.py", line 443, in _parse_localename
>>        raise ValueError, 'unknown locale: %s' % localename
>>    ValueError: unknown locale: UTF-8
>>    Complete output from command python setup.py egg_info:
>>    Traceback (most recent call last):
>>
>>  File "<string>", line 16, in <module>
>>
>>  File "/private/var/folders/bf/jrt8km3d32n_l86k03wkv1l00000gn/T/pip_build_Sandily/aplpy/setup.py", line 31, in <module>
>>
>>    from astropy.setup_helpers import (register_commands, adjust_compiler,
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/site-packages/astropy/setup_helpers.py", line 46, in <module>
>>
>>    from sphinx.setup_command import BuildDoc as SphinxBuildDoc
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/site-packages/sphinx/setup_command.py", line 20, in <module>
>>
>>    from sphinx.application import Sphinx
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/site-packages/sphinx/application.py", line 21, in <module>
>>
>>    from docutils.parsers.rst import convert_directive_function, \
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/parsers/rst/__init__.py", line 74, in <module>
>>
>>    import docutils.statemachine
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/statemachine.py", line 113, in <module>
>>
>>    from docutils import utils
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module>
>>
>>    import docutils.io
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/io.py", line 18, in <module>
>>
>>    from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in <module>
>>
>>    locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/locale.py", line 511, in getdefaultlocale
>>
>>    return _parse_localename(localename)
>>
>>  File "/Users/NoeR/anaconda/lib/python2.7/locale.py", line 443, in _parse_localename
>>
>>    raise ValueError, 'unknown locale: %s' % localename
>>
>> ValueError: unknown locale: UTF-8
>>
>> ----------------------------------------
>> Cleaning up...
>> Command python setup.py egg_info failed with error code 1 in /private/var/folders/bf/jrt8km3d32n_l86k03wkv1l00000gn/T/pip_build_Sandily/aplpy
>> Storing complete log in /Users/NoeR/.pip/pip.log
>>
>>
>> I'm new at this so I don't know how to fix it, hope you can help me.
>>
>> Thank you
>> Sandily Rivera
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy



More information about the AstroPy mailing list