Replies: 4 comments 4 replies
|
you now give a long, and from the looks of it rather dated, script as example of what you try to do. This makes it hard for me to fully understand what you are trying to achieve. Can you isolate the problem and give a minimum working example of the error? My hunch is that the error has something to do with bytes versus unicode strings in python. This is a major change that happened in between 2013 and now. |
|
My hunch is that line 386 in vensimDLLwrapper needs to be changed from |
|
Your hunch was right, changing |
|
this has been fixed at some point in the meantime |
Uh oh!
There was an error while loading. Please reload this page.
Dear reader,
My goal is to extract instances and the values of constants in a certain Vensim model and convert them to csv (Excel). When running the code i come across a type error which i cannot solve. I have already tried looking and making adjustments in the ema and ctypes libraries but to no avail. One adjustment from the original code was changing the extraction format for the vensim data from the vpm format in the code to vpmx.
I share the error and de full code under this post.
error
code
All reactions