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

pip install fails on OSX #713

Closed
aliounis opened this Issue Sep 11, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@aliounis
Copy link

aliounis commented Sep 11, 2018

When attempting to install mayavi through pip on OSX it fails with the error

pip install mayavi
Collecting mayavi
 Downloading https://files.pythonhosted.org/packages/83/9e/293ba57353ed258c2f64d54bf00ca1447c1f38f4eb60d0e762ddec57bf51/mayavi-4.6.2.tar.bz2 (7.0MB)
   100% |################################| 7.0MB 223kB/s
   Complete output from command python setup.py egg_info:
   Traceback (most recent call last):
     File "<string>", line 1, in <module>
     File "/private/var/folders/lk/yq3grdq95kj0wwlc7wm5wvfrhzcrb2/T/pip-build-uyguxm50/mayavi/setup.py", line 466, in <module>
       long_description=open('README.rst').read(),
     File "/Users/kgetzand/anaconda/lib/python3.5/encodings/ascii.py", line 26, in decode
       return codecs.ascii_decode(input, self.errors)[0]
   UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7771: ordinal not in range(128)

   ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/lk/yq3grdq95kj0wwlc7wm5wvfrhzcrb2/T/pip-build-uyguxm50/mayavi/

This appears to be an issue with reading the readme as the long description in setup.py. Changing line 466 in setup.py to
long_description=open('README.rst', encoding='utf-8').read(),
fixes this issue.

@prabhuramachandran

This comment has been minimized.

Copy link
Member

prabhuramachandran commented Sep 12, 2018

Sigh, sorry about that and thanks for the report. You could send a PR if you have the time, or I will get to it soon.

prabhuramachandran added a commit that referenced this issue Sep 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.