-
Notifications
You must be signed in to change notification settings - Fork 532
TypeError: environment can only contain strings #2509
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
Comments
So it looks like this may be an incompatibility of 3DUnetCNN with more recent versions of nipype. Do they provide docker images that pre-package known compatible versions? If not, this may be worth tracking down on their side, and then seeing if there's something we can do here to resolve the issue. |
I have exactly the same issue! Can anyone help with this? |
I also have the same issue when using SPM interface. Is there any solutions? I'm using win10, and have spm running correctly in matlab. |
Can you share the code producing the issue? |
I think maybe this is the issue with popen under win10 environment. There are no such error when I switch to run my code in docker. |
Hi, I also face this problem when I just used the example code. from nipype.interfaces.dcm2nii import Dcm2niix converter = Dcm2niix() can anybody solve this? Thanks |
It looks like there are some related but not identical issues. The original issue is just a too-old nipype. That bug was fixed in #2085. This latest is unclear exactly why it's happening, since it's occurring in |
Oh, actually, it seems to be the opposite. Windows has gone from only permitting bytes to only permitting strings. |
Can people try installing my branch into your environment and testing?
|
Anybody up for a test? I don't have a Windows machine to test on. |
I set up the environment and have the following platform details:
With the |
Hi there, after I tried to run the nipype.interfaces.petpvc module on my windows 10 machine (Python 3.8, nipype 1.5.1), I got the following error:
So I tried the solution from @effigies
and now after trying to run PETPVC again I am getting the same error as @axiezai:
As you can see, the first part is in german, unfortunately :-) @axiezai By the way: With which command did you get this dictionary with platform details? |
Taken from the new issues template :) |
@benjo-90 The OSError issue should now be fixed, if you could reinstall my branch:
|
I just pointed the dcm2niix example to an empty directory, with the updated installation you suggested:
Here's the code I used:
The directory has no dicom images so I expect the following msg:
Which is what happens on my ubuntu subsystem on the same windows machine I'm testing on. But in Windows Anaconda installation I am now getting:
Not sure if this is a separate issue or something weird going on with my old laptop |
Thanks. I think the good news is that to get there you should have been able to spawn a new process... |
So the issue is that I do believe that the environment issue is resolved, so I'm merging #3267. Will open a new issue for the select error. |
I was till now not able to test it, sorry. I can confirm getting the new OSError after trying to run the nipype.interfaces.petpvc module on my windows 10 machine (Python 3.8, nipype 1.6.0):
|
I believe if you run with Cygwin, this will be resolved. Possibly also the Windows Subsystem for Linux (WSL). Opened #3277 for further discussion. |
Summary
I'm working on an image processing task with nipype, and I got the following problem
Actual behavior
Expected behavior
How to replicate the behavior
Script/Workflow details
here are the codes that produced the error:
Platform details:
Execution environment
can anyone help me with this? any suggestion is appreciated.
The text was updated successfully, but these errors were encountered: