Closed x1y9 closed 7 months ago
Hi @x1y9, I may be wrong but this looks to be a bug in the 0.1.2 release package.
There are a few options/workarounds:
you could install the previous release which looks like it doesn't have this issue - pip install nii2dcm==0.1.1
,
or, if you want to use the latest version, I think installing from source by cloning the source code from GitHub and following the instructions under "building from source" at https://pypi.org/project/nii2dcm/ may avoid the problem.
or, if you're happy editing the code after you've installed via pip, you could edit the _version.py
file in the nii2dcm
directory and replace the line __version__ = Version.from_git().serialize(metadata=False, style=Style.SemVer)
with __version__ = '0.1.2'
. From the example you gave above, that file on your system should be at D:\tools\WPy64-39100\python-3.9.10.amd64\lib\site-packages\nii2dcm\_version.py
.
Hope that helps. I'll open an issue to investigate/resolve this issue.
@x1y9 – sorry about this, I've not tested nii2dcm much in Windows yet! It's on the TODO list.
@jcohen02 – thanks for the input! Much appreciated.
(This looks to be a duplicate (at least in part) of #30.) The workarounds described above should work to address the initial part of the problem reported in #30 but it looks like there may be a second problem highlighted there too.
Fixed by #33
@x1y9 – thanks for raising this issue. It should hopefully be fixed with latest version 0.1.5.
I get this exception when run nii2dcm under windows after pip install:
seems the version is detect from current git directory and get a git exception?