Re: [vmtk-users] vmtkApps?
Brought to you by:
davidsteinman,
lucantiga
From: Luca A. <luc...@or...> - 2013-05-06 12:44:51
|
Hi Evan, it's an environment variables issue and yes, it's currently not nice to run vmtkApps in Windows, sorry about this. What you can do is create a patchanterinterpolatecenterlines.bat file (the name is irrelevant, the important is the .bat extension) with the following content: set VMTK_DIR=C:\"Program Files (x86)"\vmtk set PATH=%VMTK_DIR%bin;%VMTK_DIR%lib\InsightToolkit;%VMTK_DIR%lib\Python;%PATH% set PYTHONPATH=%VMTK_DIR%lib\site-packages;%VMTK_DIR%lib\vtk-5.6;%VMTK_DIR%lib\vmtk cd %VMTK_DIR% python patchanterinterpolatecenterlines.py Then double click on the .bat file. Let me know if this works or what error messages it produces. We'll have to think about a nicer solution than this in the future. Luca On May 2, 2013, at 10:04 PM, Evan Kao wrote: > Hi Luca, > > You can move the files (you just need the files in vmtkApps/CerebralAneurysms/ParentVesselReconstruction) into any directory. > The you should invoke the scripts at the command line, but in order to do this you need Windows to "see" python and the vmtk modules. > What are the directories where Python and vmtk are installed on our machine? > > Both vmtk and Python are in their default directories (Python was installed through vmtk): > > C:\Program Files (x86)\vmtk > C:\Python27 > > It seems I was able to open patchanterinterpolatecenterlin > es.py in the command line interface, but it doesn't see the vmtk modules ("Import Error: no module named vtk"). How can I remedy this? > > Thanks, > Evan Kao > > > On Wed, May 1, 2013 at 5:30 AM, Luca Antiga <luc...@or...> wrote: > Hi Evan, > > On Apr 26, 2013, at 8:39 AM, Evan Kao wrote: > >> Hi Luca, >> >> I had some questions on using the Python scripts (having little Python experience): >> >> 1. Into which directory should I move the files (in Windows; files obtained from the source file zip)? > > You can move the files (you just need the files in vmtkApps/CerebralAneurysms/ParentVesselReconstruction) into any directory. > The you should invoke the scripts at the command line, but in order to do this you need Windows to "see" python and the vmtk modules. > What are the directories where Python and vmtk are installed on our machine? > >> 2. I was confused by the form of the command "python patchandinterpolatecenterline.py directoryPath id1 lateral" from the tutorial. Are we supposed to call these functions from the command line/Python shell or can we still do it inside vmtk? > > They are meant to be run outside of vmtk, at the command line. > > Luca > >> Thanks for the help, >> Evan Kao >> >> >> >> On Mon, Apr 22, 2013 at 11:03 AM, Evan Kao <to...@gm...> wrote: >> Hi Luca, >> >> Thanks for the info. >> >> >> On Mon, Apr 22, 2013 at 7:01 AM, Luca Antiga <luc...@or...> wrote: >> Hello Evan, >> at the present stage you can download them from github.com/vmtk/vmtk >> >> If you don't use git, just get the source code zip at >> >> https://github.com/vmtk/vmtk/archive/master.zip >> >> and unpack. vmtkApps contains the Python scripts you're looking for. >> >> Best, >> >> Luca >> >> >> On Apr 20, 2013, at 12:09 AM, Evan Kao wrote: >> >> > Hello vmtk-users, >> > >> > I'm interested in going through the parent vessel reconstruction tutorial but I don't think I have the relevant Python scripts. The tutorial says the files are in the vmtkApps folder, but I couldn't find anything like that. Are they usually included in the installation? Where could I find these scripts (and possibly other vmtkApps)? >> > >> > Thank you, >> > Evan Kao >> > ------------------------------------------------------------------------------ >> > Precog is a next-generation analytics platform capable of advanced >> > analytics on semi-structured data. The platform includes APIs for building >> > apps and a phenomenal toolset for data science. Developers can use >> > our toolset for easy data analysis & visualization. Get a free account! >> > http://www2.precog.com/precogplatform/slashdotnewsletter_______________________________________________ >> > vmtk-users mailing list >> > vmt...@li... >> > https://lists.sourceforge.net/lists/listinfo/vmtk-users >> >> >> > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________ > vmtk-users mailing list > vmt...@li... > https://lists.sourceforge.net/lists/listinfo/vmtk-users |