Giter Club home page Giter Club logo

Comments (12)

CPFLAME avatar CPFLAME commented on September 2, 2024 3

I've solved this problem, your Python path mush be '/usr/bin', instead of the anaconda one.

from simpleelastix.

Siavash-Alipour avatar Siavash-Alipour commented on September 2, 2024 3

Dear kaspermarstal
When I run “python setup.py install” command in the {BUILD_DIRECTORY}/SimpleITK-build/Wrapping/Python/Packaging path, the following error occurs:
error: can’t copy ‘F:\Development\build\SimpleElastix\SimpleITK-build\Wrapping\Python\Packaging\ _simpleitk.pyd’ : does not exist or not a regular file
I would be thankful if you help me in this way

error

from simpleelastix.

snapfinger avatar snapfinger commented on September 2, 2024 2

I didn't find the setup.py either. To be more specific, there's no such directory called PythonPackage.
I tried the setupegg.py of Wrapping/Python/Packaging/setupegg.py, but it didn't work.

image

from simpleelastix.

stephenholtz avatar stephenholtz commented on September 2, 2024

In the build directory:

kyobi@mischief:~/code$ find build/ -type f -name "*setup*" -print
build/Swig-prefix/src/Swig/Tools/setup.py.tmpl
build/Swig-prefix/src/Swig/Examples/chicken/egg/single.setup
build/Swig-prefix/src/Swig/Examples/chicken/egg/multi.setup

In the SimpleElastix directory:

kyobi@mischief:~/code$ find SimpleElastix -type f -name "*setup*" -print
SimpleElastix/Wrapping/PythonPackage/setuptools-2.2.tar.gz
SimpleElastix/Wrapping/PythonPackage/ez_setup.py
SimpleElastix/Wrapping/PythonPackage/setup.py.in
SimpleElastix/Wrapping/PythonPackage/setupegg.py

At this point I am not clear on how to actually install the python module successfully. Running the ez_setup.py script:

sudo python ez_setup.py install

but this itself does not let me import the module, is there some system path variable I am neglecting?

from simpleelastix.

kaspermarstal avatar kaspermarstal commented on September 2, 2024

You should have a setup.py file in build/SimpleITK-build/Wrapping/PythonPackage directory. This should then be run like sudo python setup.py install.

Can you point out where there is confusion about the build directories? It should be the top-level build directory when using the SuperBuild and needs to be fixed :) thanks for the heads up

from simpleelastix.

kaspermarstal avatar kaspermarstal commented on September 2, 2024

The confusion may stem from that fact that the Python directory will be in buildir/SimpleITK-build/Wrapping/PythonPackage directory when using the superbuild, and buildir/Wrapping/PythonPackage when not using the superbuild.

from simpleelastix.

sullivak-kyra avatar sullivak-kyra commented on September 2, 2024

I found setup.py in SimpleITK-build/Wrapping/Python/Packaging
Running this seemed to work, at least I can see Elastix & SimpleElastix in dir(SimpleITK). This was fresh clone, commit: 7e30260

from simpleelastix.

CPFLAME avatar CPFLAME commented on September 2, 2024

I just met the same problem as @stephenholtz,
qq 20170227175239
There is only Java, Lua and Tcl , I cannot find PythonPackage .

from simpleelastix.

a-r-j avatar a-r-j commented on September 2, 2024

I'm having the same issue as @snapfinger

In the build > SimpleITK folder I only see CMakeCacheInit.txt. In SimpleElastix > Wrapping > Python > Packaging I have the following: init.py, setup.py.in and setupegg.py. I have attached the cache file if it is of use.
CMakeCacheInit.txt

Using macOS and have tried using both the native python and anaconda installations.

from simpleelastix.

kaspermarstal avatar kaspermarstal commented on September 2, 2024

@a-r-j It looks like CMake is not picking up your Python installation, otherwise it is usually build by default. There isn't any Python variables in your CMakeCacheInit.txt either. Is WRAP_Python set to ON or OFF after cmake is initialized?

from simpleelastix.

longkuanzou avatar longkuanzou commented on September 2, 2024

I've solved this problem, your Python path mush be '/usr/bin', instead of the anaconda one.

Hello, I meet the same problem, could tell me how do you solve this problem? thanks.

from simpleelastix.

MahnoorTanveer avatar MahnoorTanveer commented on September 2, 2024

I am having the same issue. Does Python with Anaconda work? or having linux filesystem is a dependency?

from simpleelastix.

Related Issues (20)

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.