Comments (5)
Just recently i used this library. I also got the same issue. Thanks @alexlaurence for sharing this library.
'shutil' is now included in default packages.So @Usama323 Fixed it by following:
- Skip the step of installing shutil.
if it does not works still after removing , add following import in nii2png.py file:
import scipy.misc
It worked for me after adding above changes.
from nifti-image-converter.
ok, thanks a lot @dhirajsardana I would check this out
from nifti-image-converter.
Just recently i used this library. I also got the same issue. Thanks @alexlaurence for sharing this library.
'shutil' is now included in default packages.So @Usama323 Fixed it by following:
- Skip the step of installing shutil.
if it does not works still after removing , add following import in nii2png.py file:
import scipy.miscIt worked for me after adding above changes.
Hi, my current OS is Windows 10. I have skipped the step of installing shutil, and I have got other package installed. However, when I enter pip install nii2png
on Powershell. It says:
Collecting nii2png
Using cached https://files.pythonhosted.org/packages/a4/76/e1142e1e3a40a52479c387f663505b7a758559df3d84c09ea4ec5002c5db/nii2png-0.3.0-py3-none-any.whl
ERROR: Could not find a version that satisfies the requirement shutil (from nii2png) (from versions: none)
ERROR: No matching distribution found for shutil (from nii2png)
Do you know how to 'tell' nii2png I have already got shutil? (Also, I can't find nii2png.py in my python/Lib folder)
Thank you.
from nifti-image-converter.
I've managed to find a workaround (not a bug-fix) to this problem.
It seems like this is a problem specific to Windows 10 (I've downloaded then installed all prerequisites + nii2png and ran it from cmd).
Afterwards, I did the same thing in the WSL terminal and ran it from there and it worked.
So a workaround to this bug would be running it from the WSL terminal.
from nifti-image-converter.
Hi,
I was trying to install nii2png and still getting the following error. I have imported scipy.misc as mentioned in one comment.
Just FYI my os is windows 10 and I am using the Jupyter Notebook interface as well.
(unet_test) C:\Users\faiz0000>pip install nii2png
Collecting nii2png
Using cached nii2png-0.3.0-py3-none-any.whl (7.1 kB)
Requirement already satisfied: numpy in c:\users\faiz0000\miniconda\envs\unet_test\lib\site-packages (from nii2png) (1.18.1)
ERROR: Could not find a version that satisfies the requirement shutil (from nii2png) (from versions: none)
ERROR: No matching distribution found for shutil (from nii2png)
Can I get any help please in this regard?
from nifti-image-converter.
Related Issues (19)
- Contrast settings
- can i change .nii to RGB images(images with 3 channels) using nii2png HOT 1
- Support for 2D nifti files? HOT 2
- Error running code. HOT 2
- how to use nii_to_png_converter.py HOT 4
- how to implement nii_to_pngs_converter for .nii zipped files @monjoybme HOT 4
- UnboundLocalError HOT 1
- convert nii.gz to png black image.png HOT 5
- Incorrect scale after image convert HOT 1
- Iterate with nii2png HOT 1
- NIFTI images (MRI, DTI, and PET) from ADNI database to jpg HOT 1
- how to convert multiple niftii files to PNG using nii2png in Matlab? HOT 1
- ModuleNotFoundError: No module named '_bz2' HOT 3
- Matlab Error HOT 2
- scipy.misc.imsave is deprecated HOT 7
- nii2png going to work for .nii file to .jpg HOT 3
- nibabel.filebasedimages.ImageFileError: Cannot work out file type of HOT 1
- Getting this error by using in Matlab version of this repo?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nifti-image-converter.