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

Getting "TypeError: environment can only contain strings" on Windows 10 #7

Open
RB61 opened this issue Nov 7, 2018 · 2 comments
Open

Comments

@RB61
Copy link

RB61 commented Nov 7, 2018

(base) D:\newwork\tkuanlun350\3DUnet-Tensorflow-Brats18-master>python preprocess.py
Processing HGG ...
0%| | 0/210 [00:00<?, ?it/s]
Traceback (most recent call last):
File "preprocess.py", line 77, in
main()
File "preprocess.py", line 56, in main
N4BiasFieldCorrect(mod_file, output_path)
File "preprocess.py", line 15, in N4BiasFieldCorrect
normalized.run()
File "C:\ProgramData\Miniconda3\lib\site-packages\nipype\interfaces\base\core.py", line 522, in run
runtime = self._run_interface(runtime)
File "C:\ProgramData\Miniconda3\lib\site-packages\nipype\interfaces\ants\segmentation.py", line 420, in _run_interface
runtime, correct_return_codes)
File "C:\ProgramData\Miniconda3\lib\site-packages\nipype\interfaces\base\core.py", line 1035, in _run_interface
runtime = run_command(runtime, output=self.terminal_output)
File "C:\ProgramData\Miniconda3\lib\site-packages\nipype\interfaces\base\core.py", line 773, in run_command
close_fds=(not sys.platform.startswith('win')),
File "C:\ProgramData\Miniconda3\lib\subprocess.py", line 709, in init
restore_signals, start_new_session)
File "C:\ProgramData\Miniconda3\lib\subprocess.py", line 997, in _execute_child
startupinfo)
TypeError: environment can only contain strings


Seems to relate to Unicode being unsupported in Python
Any fix for this ?

@tkuanlun350
Copy link
Owner

tkuanlun350 commented Nov 7, 2018

Can you try to use Python3 to see if the problem still persists ?

@acumino
Copy link

acumino commented Oct 20, 2019

Any update I am getting the same problem. Also python version is 3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants