VMTK - No module named vtk

384 views
Skip to first unread message

Attila Pataki

unread,
May 13, 2016, 2:57:43 AM5/13/16
to vmtk-users
hey all,

i tried compiling vmtk from source code and i failed. During the installation attempt something went wrong and i can't run any python code  that uses the vmtk libraries... went back removed evrything from my computer from the source code, vmtk to python27 (because not even python worked anymore...). Than i reinstalled python 27 and vmtk but this time using the vmtk msi ( to be able to use the libraries again)

Still didn't solve the problem: i have a windows 10-64 

This are the two paths:

PYTHONPATH: C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\site-packages\vmtk\vtk;C:\Python27\Lib\site-packages\vmtk\bin;C:\Python27\Lib\site-packages\vmtk\lib;

Path: C:\Windows\System32;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\CMake\bin;C:\Python27\Lib\site-packages\vmtk\bin;C:\Python27\Lib\site-packages\vmtk\lib;C:\Python27\Lib\site-packages\vmtk\vtk;

when i run the attached python code ( hAB.py) i get the following error:  No module named vtk

so searched solution in the previous posts on this topic and tried to run the following line in python:
from vmtk import python

and i got the error one can see in the picture attached called caputer.jpg

And i tried to remove vmtk and python several time and the paths as well and the reinstall and set the paths again and still didn't manage to solve it...

For the installation from the source code i used Cmake to configure the file with every possible visual studio option offered in that list as well with 64 as with 32 and simple ones... it configures and generates the necessary files(or so i think) 
i set the flag in visual studio 14 on Release and tried it with Debug as well for every possible cmake output... But that thing fails after ITK is installed! so I tried to install ITK and VTK before installing vmtk .... still didn't solve the problem..

Once again, I ask for your help! If you have some hints, advice or even solutions i would be very thankful!!!

Regards,
Attila Pataki





hAB.py
Capture.JPG

Attila Pataki

unread,
May 13, 2016, 6:14:12 AM5/13/16
to vmtk-users
Hey all,

solved the problem! 

Removed everything once again, downloaded everything new from python to vmtk source code... installed it with cmake ad visual studio and set the paths... it works just fine ;)


Simone Manini

unread,
May 13, 2016, 10:22:40 AM5/13/16
to vmtk-users
I think the problem was that you had old env vars pointing to the installed python egg under C:\Python27\Lib\site-packages\vmtk\lib
Best Regards
Simone

--
You received this message because you are subscribed to the Google Groups "vmtk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vmtk-users+...@googlegroups.com.
To post to this group, send email to vmtk-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Simone Manini, Eng
Engineer, OROBIX Srl
via Camozzi 144, 24121 Bergamo, Italy

orobix:  www.orobix.com
web:     daron1337.github.io
twitter:  @daron1337
phone:  +39 035 0273786
             +39 035 0170561

"This message originates from Orobix Srl and its contents and attachments are privileged and confidential and are intended only for the individual(s) or entity(ies) named above. This message should not be forwarded, distributed or disclosed. Any unauthorized use, dissemination and duplication is strictly prohibited and may be unlawful. All personal messages express views solely of the sender, which are not to be attributed to Orobix Srl, and may not be copied or distributed without this disclaimer. If you are not the intended recipient or received this message in error, please delete this message and notify the sender by reply e-mail. Opinions, conclusions and other information in this message that do not relate to the official business of Orobix Srl shall be understood as neither given nor endorsed by it."
Reply all
Reply to author
Forward
0 new messages