Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow breaking? #8

Open
krosenfeld-IDM opened this issue Feb 17, 2025 · 3 comments
Open

Workflow breaking? #8

krosenfeld-IDM opened this issue Feb 17, 2025 · 3 comments
Assignees

Comments

@krosenfeld-IDM
Copy link
Contributor

I am running into the same import error on the model_demographics01 and model_demographics02 example:

ImportError: cannot import name 'FILENAME_ID' from 'emod_reduce' (/home/krosenfeld/code/EMOD-Generic-Scripts/local_python/emod_reduce.py)

For example, with pyrhon make02_launch_sims.py in EMOD-Generic-Scripts/model_demographics02/experiment_demog_WPP_estimates01/:

$ python make02_launch_sims.py
/home/krosenfeld/code/EMOD-Generic-Scripts/.venv/lib/python3.10/site-packages/COMPS/Data/SerializableEntity.py:111: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if name[0] is not '_' or include_hidden_props:
cannot import name 'FILENAME_ID' from 'emod_reduce' (/home/krosenfeld/code/EMOD-Generic-Scripts/local_python/emod_reduce.py)
NoneType: None
Traceback (most recent call last):
  File "/home/krosenfeld/code/EMOD-Generic-Scripts/model_demographics02/experiment_demog_WPP_estimates01/make02_launch_sims.py", line 14, in <module>
    from emod_reduce import FILENAME_ID
ImportError: cannot import name 'FILENAME_ID' from 'emod_reduce' (/home/krosenfeld/code/EMOD-Generic-Scripts/local_python/emod_reduce.py)

Here is my environment information:

Package                     Version
--------------------------- -----------
astor                       0.8.1
astunparse                  1.6.3
backoff                     2.2.1
backports-tarfile           1.2.0
beautifulsoup4              4.13.3
bs4                         0.0.2
certifi                     2025.1.31
cffi                        1.17.1
charset-normalizer          3.4.1
click                       7.1.2
coloredlogs                 15.0.1
contourpy                   1.3.1
cryptography                44.0.1
cycler                      0.12.1
dataclasses-json            0.6.7
diskcache                   5.4.0
docker                      7.1.0
emod-api                    2.0.4
emodpy                      2.1.0
exceptiongroup              1.2.2
filelock                    3.17.0
fonttools                   4.56.0
future                      1.0.0
geographiclib               2.0
graphviz                    0.20.3
humanfriendly               10.0
idmtools                    2.0.2
idmtools-models             2.0.2
idmtools-platform-comps     2.0.2
idmtools-platform-container 2.0.2
idmtools-platform-general   2.0.2
idmtools-platform-slurm     2.0.2
idna                        3.10
importlib-metadata          8.6.1
iniconfig                   2.0.0
jaraco-classes              3.4.0
jaraco-context              6.0.1
jaraco-functools            4.1.0
jeepney                     0.8.0
jinja2                      3.1.5
joblib                      1.4.2
keyring                     25.6.0
kiwisolver                  1.4.8
lxml                        5.3.1
lz4                         4.4.3
markdown-it-py              3.0.0
markupsafe                  3.0.2
marshmallow                 3.26.1
matplotlib                  3.10.0
mdurl                       0.1.2
more-itertools              9.1.0
mypy-extensions             1.0.0
natsort                     8.4.0
numpy                       2.2.3
packaging                   24.2
pandas                      2.2.3
parse                       1.20.2
pillow                      11.1.0
pluggy                      1.5.0
prodict                     0.8.20
pycomps                     2.11.0
pycparser                   2.22
pygments                    2.19.1
pyparsing                   3.2.1
pyproj                      3.7.1
pytest                      8.3.4
python-dateutil             2.9.0.post0
pytz                        2025.1
pyyaml                      6.0.2
requests                    2.32.3
rich                        13.9.4
scikit-learn                1.6.1
scipy                       1.15.2
secretstorage               3.3.3
setuptools                  75.8.0
shapely                     2.0.7
six                         1.17.0
soupsieve                   2.6
tabulate                    0.9.0
threadpoolctl               3.5.0
tomli                       2.2.1
tqdm                        4.67.1
typing-extensions           4.12.2
typing-inspect              0.9.0
tzdata                      2025.1
unittest-xml-reporting      3.2.0
urllib3                     2.3.0
wheel                       0.45.1
xdg                         6.0.0
zipp                        3.21.0
@kfrey-idm kfrey-idm self-assigned this Feb 17, 2025
@kfrey-idm
Copy link
Member

I updated several of the models (covariance01, measles01, network01, polio_nga01, rubella01, transtree01) to v2.0 of emodpy, but haven't finished the rest yet.

Demographics are top of the to-do list!

@krosenfeld-IDM
Copy link
Contributor Author

Thanks!

@kfrey-idm
Copy link
Member

I've fixed scripts for the model_demographics02 (now model_demographics_wpp01), and added some better documentation:
https://docs.idmod.org/projects/emod-generic-scripts/en/latest/examples/model_demographics_wpp01.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants