You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running nipy/mindboggle, nipype raises a UnicodeEncodeError in multiple places where files are written. This is fixed when adding "encoding='utf-8'".
Actual behavior
Here are three instances in two files:
File "/opt/miniconda-latest/envs/mb/lib/python3.6/site-packages/nipype/utils/filemanip.py", line 694, in crash2txt
fp.write('Node inputs:\n{}\n'.format(node.inputs))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 495764: ordinal not in range(128)
File "/opt/miniconda-latest/envs/mb/lib/python3.6/site-packages/nipype/pipeline/engine/utils.py", li
ne 225, in write_report
File "/opt/miniconda-latest/envs/mb/lib/python3.6/site-packages/nipype/pipeline/engine/utils.py", line 141, in write_report
fp.write('\n'.join(lines))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 1765: ordinal not in range(128)
Expected behavior
How to replicate the behavior
Script/Workflow details
Please put URL to code or code here (if not too long).
Uh oh!
There was an error while loading. Please reload this page.
Summary
When running nipy/mindboggle, nipype raises a UnicodeEncodeError in multiple places where files are written. This is fixed when adding "encoding='utf-8'".
Actual behavior
Here are three instances in two files:
File "/opt/miniconda-latest/envs/mb/lib/python3.6/site-packages/nipype/utils/filemanip.py", line 694, in crash2txt
fp.write('Node inputs:\n{}\n'.format(node.inputs))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 495764: ordinal not in range(128)
File "/opt/miniconda-latest/envs/mb/lib/python3.6/site-packages/nipype/pipeline/engine/utils.py", li
ne 225, in write_report
File "/opt/miniconda-latest/envs/mb/lib/python3.6/site-packages/nipype/pipeline/engine/utils.py", line 141, in write_report
fp.write('\n'.join(lines))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 1765: ordinal not in range(128)
Expected behavior
How to replicate the behavior
Script/Workflow details
Please put URL to code or code here (if not too long).
Platform details:
neurodocker.sh:
--miniconda
conda_install="python=3.6 pip jupyter cmake mesalib vtk=8.2 pandas
matplotlib colormath nipype>=1.1.4 tbb-devel nose" \
nipype 1.2.0-py36_0
Execution environment
Choose one
Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 09:07:38)
The text was updated successfully, but these errors were encountered: