Giter VIP home page Giter VIP logo

Comments (5)

dhirajsardana avatar dhirajsardana commented on June 9, 2024 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:

  1. 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.

Usama323 avatar Usama323 commented on June 9, 2024

ok, thanks a lot @dhirajsardana I would check this out

from nifti-image-converter.

KilledByBugs avatar KilledByBugs commented on June 9, 2024

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:

  1. 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.

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.

petremihaivalentin avatar petremihaivalentin commented on June 9, 2024

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.

rowzat avatar rowzat commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.