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
I am running into the same import error on the
model_demographics01andmodel_demographics02example:For example, with
pyrhon make02_launch_sims.pyinEMOD-Generic-Scripts/model_demographics02/experiment_demog_WPP_estimates01/:Here is my environment information: