Comments (7)
What are the version numbers of modelx and lifelib?
You can check them by the following code.
>>> import modelx as mx
>>> mx.__version__
>>> import lifelib
>>> lifelib.__version__
from lifelib.
Hi,
I get the same error when I try to run the vanilla simplelife template (haven't tried others yet).
ModelX version 0.0.22 and lifelib 0.0.11.
Using the stack trace I noticed that some cell references in build_input.py didn't match up to valid tables in inputs.xlsx.
It appears that two inputs spreadsheets are packaged - the other one is input.xlsm (macro-enabled) - and the cell references appeared to match in this case - so the code appears to be configured for this one.
So, I backed up the xlsx and saved the macro-enabled file as input.xlsx (without macros) and now it appears to work fine. I guess you could alternatively point the code to input.xlsm
Perhaps Fumito can clarify the separate spreadsheets or if versions are a problem for us.
Cheers,
Declan
from lifelib.
I couldn't reproduce the error. Note input.xlsm
is renamed to input.xlsx
in lifelib v0.0.11 and the positions of some tables in the files are adjusted as this commit: 41abc27
My guess is that you're using build_input.py
from an older version of lifelib with input.xlsx
.
from lifelib.
Hi fumithoh,
Sorry I missed your response.
I ran the code and I am using lifelib 0.0.11
Using the fix Declan mentioned I got it running.
The problem was that the input.xlsx did not have the tab "otherparams" completely filled out. However input.xlsm did. The code in simpleplife.py links to input.xlsx.
I have attached the unmodified version of input.xlsm.
Thanks,
ro-co
from lifelib.
I downloaded the lifelib archive (0.0.11) from https://pypi.org/project/lifelib/
to check if this is consistent with what's on my system and it isn't. We don't have the changes from the commit Fumitoh referenced.
This is odd because the version number is consistent. Here is the output of pip show lifelib
Name: lifelib
Version: 0.0.11
Summary: Actuarial models in Python
Home-page: https://lifelib.io
Author: Fumito Hamamura
Author-email: [email protected]
License: License :: OSI Approved :: MIT License
Location: c:\program files (x86)\microsoft visual studio\shared\anaconda3_64\lib\site-packages
Requires: modelx
Required-by:
I tried uninstalling and reinstalling lifelib with --no-cache-dir. pip downloaded an archive from this url https://files.pythonhosted.org/packages/6e/1c/e31b6f029be1b6f21257a109b393cdd52adfcf5ff3eef00d9a953d66ec52/lifelib-0.0.11-py3-none-any.whl
When I open this in 7zip I can see its consistent with what was on my system and not with what is packaged on pypi.org
I will do a dev install from github to get around this, but it is a little odd behaviour from pip
from lifelib.
I reproduced the problem. As declan pointed out, v0.0.11
was not packaged correctly, so both input.xlsx
and input.xlsm
are included, and the included build_input.py
is not reflecting revisions up to v0.0.11
tag. As PyPI does not accept uploading the same version, I'll fix the issue at the next release.
from lifelib.
Fixed in v0.0.12
from lifelib.
Related Issues (20)
- Using Spyder plugin (Reading a Model) HOT 5
- How to Install this package in Linux Mint HOT 6
- Creating an EV Model HOT 15
- Update the subtitle of lifelib.io
- About providing excel template for the project HOT 7
- Update About lifelib
- Update README
- Add MyST support
- Update Contributing to lifelib page
- Update Quick Start page
- Create Contributor list HOT 1
- Problems about simplelife project (19/2/2019) HOT 6
- lifelib v0.8.0 introduces the economic_curves library
- Spyder doesn't launch after install of plugin (spyder 5.4.2) HOT 3
- Lifelib on Python 3.10 HOT 7
- Discussion about Abstract concepts about Lifelib 19/2/2019 HOT 2
- Spyder plugin breaks Spyder on Anaconda HOT 3
- Reading "simplelife.mx" file HOT 2
- Simplelife.build() error with latest Modelx version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lifelib.