SuperElastix / SimpleElastix

Multi-lingual medical image registration library
http://simpleelastix.github.io
Apache License 2.0
509 stars 149 forks source link

There is no setup.py in Python or Packaging folder #438

Open MOAMSA opened 2 years ago

MOAMSA commented 2 years ago

Hello, I tried to install simpleElastix on windows but couldn't install it properly.

files in Packaging folder: image

files in Python folder: image

When I run the below line, python setup.py.in install I got the below error: `running install

running bdist_egg

running egg_info

creating SimpleITK.egg-info

writing SimpleITK.egg-info\PKG-INFO

writing dependency_links to SimpleITK.egg-info\dependency_links.txt

writing top-level names to SimpleITK.egg-info\top_level.txt

writing manifest file 'SimpleITK.egg-info\SOURCES.txt'

reading manifest file 'SimpleITK.egg-info\SOURCES.txt'

writing manifest file 'SimpleITK.egg-info\SOURCES.txt'

installing library code to build\bdist.win-amd64\egg

running install_lib

running build_py

creating build

creating build\lib.win-amd64-3.8

creating build\lib.win-amd64-3.8\SimpleITK

copying C:\Users\mohammadamin.safarza\build\SimpleITK-build\Wrapping\Python\SimpleITK.py -> build\lib.win-amd64-3.8\SimpleITK

copying C:\Users\mohammadamin.safarza\build\SimpleITK-build\Wrapping\Python__init__.py -> build\lib.win-amd64-3.8\SimpleITK

running build_ext

error: can't copy 'C:\Users\user\build\SimpleITK-build\Wrapping\Python\Packaging\@SimpleITK_BINARY_MODULE@': doesn't exist or not a regular file`

Does anyone have any idea to fix this?

Thanks,

Joeycho commented 2 years ago

Hi,

I was struggling this issue although my environment is MAC M1.

First, I replace @SimpleITK_BINARY_MODULE@ as SimpleITK-build/Wrapping/Python/SimpleITK/_SimpleITK.so file.

in my case, it was located under /Wrapping/Python/SimpleITK, but I'm not sure where you have this _SimpleITK.so file.

It seems fine for me after this one and.. with 'sudo' installing python wrapping and delete the old SimpleITK. https://github.com/SuperElastix/SimpleElastix/issues/8#issuecomment-404890927