Page 1 of 1
Python Interface - import sv error
Posted: Wed Oct 20, 2021 11:42 am
by bazzi006
Hello,
I am trying to use the python interface, and when I try to import to sv module is giving me the error below. How do I fix it? I tested in two different version of the SimVascular, and I get the same error for both.
Best,
Marisa

- error-importsv.PNG (17.2 KiB) Viewed 285 times
Re: Python Interface - import sv error
Posted: Thu Oct 21, 2021 11:12 am
by davep
Hi Marisa,
How are you executing SV to enter the Python environment? Can you import sv from the SV Python console?
Cheers,
Dave
Re: Python Interface - import sv error
Posted: Sun Nov 14, 2021 12:13 pm
by bazzi006
Hey Dave,
My bad. I forgot I had to execute sv. But now, I am getting the following error. I am just trying to use a old code to convert STL to vtp.

- Capture.PNG (12.82 KiB) Viewed 204 times
Best,
Marisa
Re: Python Interface - import sv error
Posted: Mon Nov 15, 2021 8:53 pm
by davep
Hi Marisa,
It seems that you are using a very old version (2020-04-06) of SV; I don't think this version has the new Python API. Please update to the June 2021 release.
Cheers,
Dave