Closed aliounis closed 5 years ago
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.
Same issue in line 44
exec(compile(open(fname).read(), fname, 'exec'), info)
exec(compile(open(fname, encoding='utf-8').read(), fname, 'exec'), info)
fixed the problem
The install still fails for me on a clean python installation:
...
File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/site-packages/numpy/distutils/ccompiler_opt.py", line 717, in _dist_test_spawn
o = subprocess.check_output(cmd, stderr=subprocess.STDOUT,
File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/subprocess.py", line 503, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/subprocess.py", line 1139, in communicate
stdout = self.stdout.read()
File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 232: ordinal not in range(128)
INFO: CCompilerOpt.cache_flush[825] : write cache to path -> /tmp/pip-install-5t66sm_k/mayavi_7045aac097464082b5c9f41847846c68/build/temp.linux-x86_64-cpython-310/ccompiler_opt_cache_ext.py
There seems to be a fix in the arch repos
Hi, have you solved this problem? Could you please share your solution?
The install still fails for me on a clean python installation:
... File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/site-packages/numpy/distutils/ccompiler_opt.py", line 717, in _dist_test_spawn o = subprocess.check_output(cmd, stderr=subprocess.STDOUT, File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/subprocess.py", line 503, in run stdout, stderr = process.communicate(input, timeout=timeout) File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/subprocess.py", line 1139, in communicate stdout = self.stdout.read() File "/home/XXX/.pyenv/versions/3.10.6/lib/python3.10/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 232: ordinal not in range(128) INFO: CCompilerOpt.cache_flush[825] : write cache to path -> /tmp/pip-install-5t66sm_k/mayavi_7045aac097464082b5c9f41847846c68/build/temp.linux-x86_64-cpython-310/ccompiler_opt_cache_ext.py
There seems to be a fix in the arch repos
Hi, have you solved this problem? Could you please share your solution? @ngoettin
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.