How can I use Vensim DLL in Python, Linux?

Use this forum to post Vensim related questions.
Post Reply
baharGS
Newbie
Posts: 1
Joined: Tue May 12, 2015 4:52 pm
Vensim version: DSS

How can I use Vensim DLL in Python, Linux?

Post by baharGS »

Hi there,

I work for an institute and as part of my job, I am implementing an interface to interpret the results from some of already-built Vensim models.

I am using Python on Linux, and am wondering if I can some how generate and use DLL files to access these Vensim Models from within Linux?

I read something (here in this page: http://vensim.com/workbench/) which gave me hope:

"... For the moment, most of what we provide is Windows-specific, though it is generally possible to recompile external functions for Mac and Linux..."

I really appreciate if anyone can help me with this matter.

Thanks,
Bahar
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: How can I use Vensim DLL in Python, Linux?

Post by Administrator »

The only version of Vensim for Linux is the multi-context library which is usually used on web servers.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
nocegius
Junior Member
Posts: 13
Joined: Mon May 14, 2012 9:22 am
Vensim version: DSS

Re: How can I use Vensim DLL in Python, Linux?

Post by nocegius »

Hi

I develop model using vensim DSS in ubuntu 16.04 using WINE. I want use DDL to integrate my vensim models with other software and R or GIS.

Can I will do it using wine or is better to use virtual machine with windows ?

Thanks
Giuseppe
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: How can I use Vensim DLL in Python, Linux?

Post by tomfid »

I don't know of anyone who's tried, but if you have Vensim running OK in WINE, the .dll should work too, so it might be worth a try.
nocegius
Junior Member
Posts: 13
Joined: Mon May 14, 2012 9:22 am
Vensim version: DSS

Re: How can I use Vensim DLL in Python, Linux?

Post by nocegius »

It runs or better venapp works i have not yet tried DLL .. but i suppose it works

giuseppe
pbreach
Member
Posts: 29
Joined: Mon Oct 26, 2015 5:23 pm
Vensim version: DSS

Re: How can I use Vensim DLL in Python, Linux?

Post by pbreach »

I've done this on Windows. Not sure if it will work the same way on Linux but since you're using wine with the windows dll (I think?) then maybe take a look here: https://github.com/pbreach/venpy
nocegius
Junior Member
Posts: 13
Joined: Mon May 14, 2012 9:22 am
Vensim version: DSS

Re: How can I use Vensim DLL in Python, Linux?

Post by nocegius »

thank you pbreach your hint it is very useful. i will try and then tell you.

giuseppe
kingle
Junior Member
Posts: 9
Joined: Wed Aug 23, 2017 3:55 pm
Vensim version: DSS

Re: How can I use Vensim DLL in Python, Linux?

Post by kingle »

Has anybody tried the Multi-context DLL to get Vensim projects running on Linux? Would love some advice on where to begin with this and whether it's possible before I purchase the multi-context license.
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: How can I use Vensim DLL in Python, Linux?

Post by tomfid »

Forio.com runs on the MC library on Linux, as do several other high-traffic simulations.
Post Reply