Python Interface - import sv error

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
marisa bazzi
Posts: 15
Joined: Wed Aug 28, 2019 3:46 pm

Python Interface - import sv error

Post by marisa bazzi » Wed Oct 20, 2021 11:42 am

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
error-importsv.PNG (17.2 KiB) Viewed 245 times

User avatar
David Parker
Posts: 1719
Joined: Tue Aug 23, 2005 2:43 pm

Re: Python Interface - import sv error

Post by David Parker » Thu Oct 21, 2021 11:12 am

Hi Marisa,

How are you executing SV to enter the Python environment? Can you import sv from the SV Python console?

Cheers,
Dave

User avatar
marisa bazzi
Posts: 15
Joined: Wed Aug 28, 2019 3:46 pm

Re: Python Interface - import sv error

Post by marisa bazzi » Sun Nov 14, 2021 12:13 pm

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
Capture.PNG (12.82 KiB) Viewed 164 times
Best,
Marisa

User avatar
David Parker
Posts: 1719
Joined: Tue Aug 23, 2005 2:43 pm

Re: Python Interface - import sv error

Post by David Parker » Mon Nov 15, 2021 8:53 pm

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

POST REPLY