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.
When attempting to install mayavi through pip on OSX it fails with the error
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.