starsimhub / starsim

Starsim disease modeling framework
http://starsim.org
MIT License
12 stars 8 forks source link

ConstantInference error #327

Closed MObrien-IDM closed 7 months ago

MObrien-IDM commented 7 months ago
[c:\Users\michelleob\Anaconda3\lib\site-packages\pandas\core\arrays\masked.py:60](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/pandas/core/arrays/masked.py:60): UserWarning: Pandas requires version '1.3.6' or newer of 'bottleneck' (version '1.3.5' currently installed).
  from pandas.core import (
Starsim 0.2.4 (2024-02-27) — © 2023-2024 by IDM
0.2.4
Initializing sim with 5000 agents
---------------------------------------------------------------------------
ConstantInferenceError                    Traceback (most recent call last)
Cell In [1], [line 20](vscode-notebook-cell:?execution_count=1&line=20)
     [18](vscode-notebook-cell:?execution_count=1&line=18) # Make the sim, run and plot
     [19](vscode-notebook-cell:?execution_count=1&line=19) sim = ss.Sim(pars)
---> [20](vscode-notebook-cell:?execution_count=1&line=20) sim.run()
     [21](vscode-notebook-cell:?execution_count=1&line=21) sim.plot()

File [c:\users\michelleob\onedrive](file:///C:/users/michelleob/onedrive) - bill & melinda gates foundation\documents\github\starsim\starsim\sim.py:536, in Sim.run(self, until, reset_seed, verbose)
    [534](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:534) T = sc.timer()
    [535](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:535) if not self.initialized:
--> [536](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:536)     self.initialize()
    [537](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:537)     self._orig_pars = sc.dcp(self.pars)  # Create a copy of the parameters to restore after the run
    [539](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:539) if verbose is None:

File [c:\users\michelleob\onedrive](file:///C:/users/michelleob/onedrive) - bill & melinda gates foundation\documents\github\starsim\starsim\sim.py:113, in Sim.initialize(self, reset, **kwargs)
    [111](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:111) self.init_demographics()
    [112](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:112) self.init_networks()
--> [113](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:113) self.init_diseases()
    [114](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:114) self.init_connectors()
    [115](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:115) self.init_interventions()

File [c:\users\michelleob\onedrive](file:///C:/users/michelleob/onedrive) - bill & melinda gates foundation\documents\github\starsim\starsim\sim.py:370, in Sim.init_diseases(self)
    [368](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:368) # Interate over diseases and initialize them
    [369](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:369) for disease in diseases:
--> [370](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:370)     disease.initialize(self)
    [372](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:372)     # Add the disease's parameters and results into the Sim's dicts
    [373](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/sim.py:373)     self.pars[disease.name] = disease.pars

File [c:\users\michelleob\onedrive](file:///C:/users/michelleob/onedrive) - bill & melinda gates foundation\documents\github\starsim\starsim\disease.py:41, in Disease.initialize(self, sim)
     [39](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/disease.py:39) self.validate_pars(sim)
     [40](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/disease.py:40) self.init_results(sim)
---> [41](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/disease.py:41) self.set_initial_states(sim)
     [42](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/disease.py:42) return

File [c:\users\michelleob\onedrive](file:///C:/users/michelleob/onedrive) - bill & melinda gates foundation\documents\github\starsim\starsim\disease.py:212, in Infection.set_initial_states(self, sim)
    [210](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/disease.py:210) alive_uids = ss.true(sim.people.alive)  # Maybe just sim.people.uid?
    [211](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/disease.py:211) initial_cases = self.pars.init_prev.filter(alive_uids)
--> [212](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/disease.py:212) self.set_prognoses(sim, initial_cases)  # TODO: sentinel value to indicate seeds?
    [213](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/disease.py:213) return

File [c:\users\michelleob\onedrive](file:///C:/users/michelleob/onedrive) - bill & melinda gates foundation\documents\github\starsim\starsim\diseases\sir.py:71, in SIR.set_prognoses(self, sim, uids, source_uids)
     [69](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/diseases/sir.py:69) d_rvs = p.dur_inf.rvs(dead_uids)
     [70](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/diseases/sir.py:70) r_rvs = p.dur_inf.rvs(rec_uids)
---> [71](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/diseases/sir.py:71) self.ti_dead[dead_uids] = sim.ti + d_rvs
     [72](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/diseases/sir.py:72) self.ti_recovered[rec_uids] = sim.ti + r_rvs
     [73](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/diseases/sir.py:73) return

File [c:\users\michelleob\onedrive](file:///C:/users/michelleob/onedrive) - bill & melinda gates foundation\documents\github\starsim\starsim\states.py:202, in UIDArray.__setitem__(self, key, value)
    [200](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/states.py:200) else:
    [201](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/states.py:201)     if isinstance(value, (np.ndarray, UIDArray)):
--> [202](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/states.py:202)         return self._set_vals_uids_multiple(self.values, key, self._uid_map.__array__(), value.__array__())
    [203](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/states.py:203)     else:
    [204](file:///C:/users/michelleob/onedrive%20-%20bill%20&%20melinda%20gates%20foundation/documents/github/starsim/starsim/states.py:204)         return self._set_vals_uids_single(self.values, key, self._uid_map.__array__(), value)

File [c:\Users\michelleob\Anaconda3\lib\site-packages\numba\core\dispatcher.py:480](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:480), in _DispatcherBase._compile_for_args(self, *args, **kws)
    [476](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:476)     error_rewrite(e, 'interpreter')
    [477](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:477) except errors.ConstantInferenceError as e:
    [478](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:478)     # this is from trying to infer something as constant when it isn't
    [479](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:479)     # or isn't supported as a constant
--> [480](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:480)     error_rewrite(e, 'constant_inference')
    [481](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:481) except Exception as e:
    [482](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:482)     if config.SHOW_HELP:

File [c:\Users\michelleob\Anaconda3\lib\site-packages\numba\core\dispatcher.py:409](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:409), in _DispatcherBase._compile_for_args.<locals>.error_rewrite(e, issue_type)
    [407](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:407)     raise e
    [408](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:408) else:
--> [409](file:///C:/Users/michelleob/Anaconda3/lib/site-packages/numba/core/dispatcher.py:409)     raise e.with_traceback(None)

ConstantInferenceError: Failed in nopython mode pipeline (step: nopython rewrites)
no single definition for 'errormsg'

File "..\..\starsim\states.py", line 130:
    def _set_vals_uids_multiple(vals, key, uid_map, value):
        <source elided>
                errormsg = f'Attempted to write to a non-existant index ({idx}) - this can happen if attempting to write to new entries that have not yet been allocated via grow()'
                raise IndexError(errormsg)
                ^

sc.metadata() #0. 'version': None #1. 'timestamp': '2024-Feb-27 11:47:04' #2. 'user': 'michelleob' #3. 'system': #0. 'platform': 'Windows-10-10.0.19045-SP0' #1. 'executable': 'C:\Users\michelleob\Anaconda3\python.exe' #2. 'version': '3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]' #4. 'versions': #0. 'python': '3.9.12' #1. 'sciris': '3.1.3' #2. 'numpy': '1.23.5' #3. 'pandas': '2.2.1' #4. 'matplotlib': '3.5.3' #5. 'calling_info': #0. 'filename': 'N/A' #1. 'lineno': 'N/A' #6. 'git_info': #0. 'branch': 'main' #1. 'hash': '8efde4a' #2. 'date': 'Date N/A' #7. 'pipfreeze': {'Automat': '20.2.0', 'Babel': '2.9.1', 'Bottleneck': '1.3.5', 'Cython': '0.29.32', 'Flask': '1.1.2', 'GitPython': '3.1.27', 'HeapDict': '1.0.1', 'Jinja2': '2.11.3', 'Mako': '1.2.0', 'Markdown': '3.3.4', 'MarkupSafe': '2.0.1', 'Pillow': '9.2.0', 'Protego': '0.1.16', 'PyDispatcher': '2.0.5', 'PyHamcrest': '2.0.2', 'PyJWT': '2.4.0', 'PyNaCl': '1.5.0', 'PySocks': '1.7.1', 'PyWavelets': '1.3.0', 'PyYAML': '6.0', 'Pygments': '2.11.2', 'QDarkStyle': '3.0.2', 'QtAwesome': '1.0.3', 'QtPy': '2.2.0', 'Rtree': '0.9.7', 'SQLAlchemy': '1.4.39', 'Scrapy': '2.6.2', 'Send2Trash': '1.8.0', 'Sphinx': '5.0.2', 'TBB': '0.2', 'Twisted': '22.2.0', 'Unidecode': '1.2.0', 'Werkzeug': '2.0.3', 'XlsxWriter': '3.0.3', 'alabaster': '0.7.12', 'alembic': '1.7.7', 'anaconda-client': '1.11.0', 'anaconda-navigator': '2.1.4', 'anaconda-project': '0.11.1', 'ansicolors': '1.1.8', 'anyio': '3.5.0', 'appdirs': '1.4.4', 'argon2-cffi': '21.3.0', 'argon2-cffi-bindings': '21.2.0', 'arrow': '1.2.3', 'astroid': '2.6.6', 'astropy': '5.1', 'asttokens': '2.0.5', 'atomicwrites': '1.4.0', 'attrs': '22.1.0', 'autopage': '0.5.0', 'autopep8': '1.6.0', 'backcall': '0.2.0', 'backports.functools-lru-cache': '1.6.4', 'backports.tempfile': '1.0', 'backports.weakref': '1.0.post1', 'bcrypt': '3.2.0', 'beautifulsoup4': '4.11.1', 'binaryornot': '0.4.4', 'bitarray': '2.5.1', 'bkcharts': '0.2', 'black': '22.6.0', 'bleach': '4.1.0', 'bokeh': '2.4.3', 'boto3': '1.24.28', 'botocore': '1.27.59', 'brotlipy': '0.7.0', 'certifi': '2022.9.24', 'cffi': '1.15.1', 'chardet': '4.0.0', 'charset- normalizer': '2.0.4', 'click': '8.0.4', 'cliff': '3.10.1', 'cloudpickle': '2.0.0', 'clyent': '1.2.2', 'cmaes': '0.8.2', 'cmd2': '2.4.1', 'colorama': '0.4.5', 'colorcet': '3.0.1', 'colorlog': '6.6.0', 'comtypes': '1.1.10', 'conda': '22.11.0', 'conda-build': '3.21.8', 'conda-content-trust': '0.1.3', 'conda-pack': '0.6.0', 'conda-package-handling': '1.9.0', 'conda-repo-cli': '1.0.24', 'conda-token': '0.4.0', 'conda-verify': '3.4.2', 'constantly': '15.1.0', 'cookiecutter': '1.7.3', 'cryptography': '38.0.1', 'cssselect': '1.1.0', 'cycler': '0.11.0', 'cytoolz': '0.12.0', 'daal4py': '2021.6.0', 'dask': '2022.7.0', 'datashader': '0.14.2', 'datashape': '0.5.4', 'debugpy': '1.5.1', 'decorator': '5.1.1', 'defusedxml': '0.7.1', 'descartes': '1.1.0', 'diff-match- patch': '20200713', 'dill': '0.3.5.1', 'distributed': '2022.7.0', 'docutils': '0.18.1', 'entrypoints': '0.4', 'et-xmlfile': '1.1.0', 'executing': '0.8.3', 'fastjsonschema': '2.16.2', 'filelock': '3.6.0', 'flake8': '3.9.2', 'flit_core': '3.6.0', 'fonttools': '4.25.0', 'fpsim': '0.22.0', 'fsspec': '2022.10.0', 'future': '0.18.2', 'gensim': '4.1.2', 'gitdb': '4.0.9', 'glob2': '0.7', 'greenlet': '1.1.1', 'h5py': '3.7.0', 'holoviews': '1.15.2', 'hvplot': '0.8.1', 'hyperlink': '21.0.0', 'idna': '3.4', 'imagecodecs': '2021.8.26', 'imageio': '2.19.3', 'imagesize': '1.4.1', 'importlib-metadata': '4.11.3', 'incremental': '21.3.0', 'inflection': '0.5.1', 'iniconfig': '1.1.1', 'intake': '0.6.6', 'intervaltree': '3.1.0', 'ipykernel': '6.15.2', 'ipython': '8.6.0', 'ipython- genutils': '0.2.0', 'ipywidgets': '7.6.5', 'isort': '5.9.3', 'itemadapter': '0.3.0', 'itemloaders': '1.0.4', 'itsdangerous': '2.0.1', 'jdcal': '1.4.1', 'jedi': '0.18.1', 'jellyfish': '0.9.0', 'jinja2-time': '0.2.0', 'jmespath': '0.10.0', 'joblib': '1.1.1', 'json5': '0.9.6', 'jsonpickle': '2.2.0', 'jsonschema': '4.16.0', 'jupyter': '1.0.0', 'jupyter-client': '6.1.12', 'jupyter-console': '6.4.0', 'jupyter-server': '1.18.1', 'jupyter_core': '4.11.2', 'jupyterlab': '3.5.0', 'jupyterlab-pygments': '0.1.2', 'jupyterlab- server': '2.10.3', 'jupyterlab-widgets': '1.0.0', 'keyring': '23.4.0', 'kiwisolver': '1.4.2', 'lazy-object-proxy': '1.6.0', 'libarchive-c': '2.9', 'line-profiler': '4.1.2', 'llvmlite': '0.39.1', 'locket': '1.0.0', 'lxml': '4.9.1', 'lz4': '3.1.3', 'matplotlib': '3.5.3', 'matplotlib-inline': '0.1.6', 'mccabe': '0.6.1', 'memory-profiler': '0.61.0', 'menuinst': '1.4.18', 'mistune': '0.8.4', 'mizani': '0.7.4', 'mkl-fft': '1.3.1', 'mkl-random': '1.2.2', 'mkl- service': '2.4.0', 'mock': '4.0.3', 'mpmath': '1.2.1', 'msgpack': '1.0.3', 'multipledispatch': '0.6.0', 'multiprocess': '0.70.12.2', 'munkres': '1.1.4', 'mypy-extensions': '0.4.3', 'navigator-updater': '0.2.1', 'nbclassic': '0.4.8', 'nbclient': '0.5.13', 'nbconvert': '6.4.4', 'nbformat': '5.5.0', 'nest-asyncio': '1.5.5', 'networkx': '2.8.4', 'nltk': '3.7', 'nose': '1.3.7', 'notebook': '6.5.2', 'notebook_shim': '0.2.2', 'numba': '0.56.3', 'numexpr': '2.8.4', 'numpy': '1.23.5', 'numpydoc': '1.5.0', 'olefile': '0.46', 'openpyxl': '3.0.10', 'optuna': '2.10.0', 'packaging': '21.3', 'palettable': '3.3.0', 'pandas': '2.2.1', 'pandocfilters': '1.5.0', 'panel': '0.14.1', 'param': '1.12.2', 'paramiko': '2.8.1', 'parsel': '1.6.0', 'parso': '0.8.3', 'partd': '1.2.0', 'pathlib': '1.0.1', 'pathspec': '0.9.0', 'patsy': '0.5.2', 'pbr': '5.9.0', 'pep8': '1.7.1', 'pexpect': '4.8.0', 'pickleshare': '0.7.5', 'pip': '22.2.2', 'pkginfo': '1.8.3', 'platformdirs': '2.5.2', 'plotly': '5.9.0', 'plotnine': '0.8.0', 'pluggy': '1.0.0', 'poyo': '0.5.0', 'prettytable': '3.3.0', 'prometheus-client': '0.14.1', 'prompt-toolkit': '3.0.20', 'psutil': '5.9.0', 'ptyprocess': '0.7.0', 'pure-eval': '0.2.2', 'py': '1.11.0', 'pyOpenSSL': '22.0.0', 'pyarrow': '8.0.0', 'pyasn1': '0.4.8', 'pyasn1-modules': '0.2.8', 'pycodestyle': '2.7.0', 'pycosat': '0.6.4', 'pycparser': '2.21', 'pyct': '0.4.8', 'pycurl': '7.45.1', 'pydocstyle': '6.1.1', 'pyerfa': '2.0.0', 'pyflakes': '2.3.1', 'pylint': '2.9.6', 'pyls-spyder': '0.4.0', 'pyodbc': '4.0.34', 'pyparsing': '3.0.9', 'pyperclip': '1.8.2', 'pyreadline3': '3.4.1', 'pyrsistent': '0.18.0', 'pytest': '7.1.2', 'python-dateutil': '2.8.2', 'python- lsp-black': '1.0.0', 'python-lsp-jsonrpc': '1.0.0', 'python-lsp-server': '1.2.4', 'python-slugify': '5.0.2', 'python-snappy': '0.6.0', 'pytz': '2022.1', 'pyviz-comms': '2.0.2', 'pywin32': '305.1', 'pywin32-ctypes': '0.2.0', 'pywinpty': '2.0.2', 'pyzmq': '23.2.0', 'qstylizer': '0.1.10', 'qtconsole': '5.3.2', 'queuelib': '1.5.0', 'regex': '2022.7.9', 'requests': '2.28.1', 'requests-file': '1.5.1', 'rope': '0.22.0', 'ruamel-yaml-conda': '0.17.21', 'ruamel.yaml': '0.16.12', 'ruamel.yaml.clib': '0.2.6', 's3transfer': '0.6.0', 'scikit-image': '0.19.3', 'scikit-learn': '1.0.2', 'scikit-learn-intelex': '2021.20221004.171935', 'scipy': '1.9.3', 'sciris': '3.1.3', 'seaborn': '0.12.1', 'service-identity': '18.1.0', 'setuptools': '65.5.0', 'sip': '4.19.13', 'six': '1.16.0', 'smart-open': '5.2.1', 'smmap': '5.0.0', 'sniffio': '1.2.0', 'snowballstemmer': '2.2.0', 'sortedcollections': '2.1.0', 'sortedcontainers': '2.4.0', 'soupsieve': '2.3.2.post1', 'sphinxcontrib- applehelp': '1.0.2', 'sphinxcontrib-devhelp': '1.0.2', 'sphinxcontrib-htmlhelp': '2.0.0', 'sphinxcontrib-jsmath': '1.0.1', 'sphinxcontrib-qthelp': '1.0.3', 'sphinxcontrib-serializinghtml': '1.1.5', 'spyder': '5.1.5', 'spyder-kernels': '2.1.3', 'spyder-notebook': '0.1.4', 'stack-data': '0.2.0', 'starsim': '0.2.4', 'statsmodels': '0.13.2', 'stevedore': '3.5.0', 'sympy': '1.11.1', 'tables': '3.6.1', 'tabulate': '0.8.10', 'tblib': '1.7.0', 'tenacity': '8.0.1', 'terminado': '0.13.1', 'testpath': '0.6.0', 'text-unidecode': '1.3', 'textdistance': '4.2.1', 'threadpoolctl': '2.2.0', 'three-merge': '0.1.1', 'tifffile': '2021.7.2', 'tinycss': '0.4', 'tldextract': '3.2.0', 'toml': '0.10.2', 'tomli': '2.0.1', 'toolz': '0.12.0', 'tornado': '6.1', 'tqdm': '4.64.1', 'traitlets': '5.1.1', 'twisted-iocpsupport': '1.0.2', 'typing_extensions': '4.4.0', 'tzdata': '2024.1', 'ujson': '5.4.0', 'urllib3': '1.26.12', 'w3lib': '1.21.0', 'watchdog': '2.1.6', 'wcwidth': '0.2.5', 'webencodings': '0.5.1', 'websocket-client': '0.58.0', 'wheel': '0.37.1', 'widgetsnbextension': '3.5.2', 'win-inet-pton': '1.1.0', 'win-unicode-console': '0.5', 'wincertstore': '0.2', 'wrapt': '1.12.1', 'xarray': '2022.11.0', 'xlrd': '2.0.1', 'xlwings': '0.27.15', 'yapf': '0.31.0', 'zict': '2.1.0', 'zipp': '3.8.0', 'zope.interface': '5.4.0', 'zstandard': '0.22.0'} #8. 'require': None #9. 'comments': None

RomeshA commented 7 months ago

Hi @MObrien-IDM as the SIR demo seems to run OK, this might be related to the input parameters somehow - do you have a script to reproduce, or otherwise a listing of the pars being passed in?

MObrien-IDM commented 7 months ago

Thanks, @RomeshA - I was attempting to run the tut_intro script during our starsim training, and @cliffckerr and I encountered this odd error.

cliffckerr commented 7 months ago

@RomeshA i think it's something related to the python version or library versions (or maybe windows??) -- will try to reproduce and if i can't will close, but just wanted to make this issue in case we came across it again!

RomeshA commented 7 months ago

Ah I see - I can reproduce this with numba==0.56.3 as per the sc.metadata() output, and running pip install --upgrade numbato install 0.59.0 appears to fix the problem for me

cliffckerr commented 7 months ago

Thanks for investigating @RomeshA ! Will close this since not a Starsim bug it seems.