From e7adbb336ab108d3000c42fc303bd82cd0ab2c65 Mon Sep 17 00:00:00 2001 From: Emma Date: Wed, 2 Nov 2022 22:31:28 -0400 Subject: [PATCH] Convert cache_file string to use string for os.getuid --- Python/hbayesdm/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/hbayesdm/base.py b/Python/hbayesdm/base.py index 73b342b7..26940a6f 100644 --- a/Python/hbayesdm/base.py +++ b/Python/hbayesdm/base.py @@ -645,10 +645,10 @@ def _designate_stan_model(self, model: str) -> StanModel: if getattr(os, 'getuid', None) is None: uid = 'windows' else: - uid = os.getuid() + uid = str(os.getuid()) cache_file = tempdir / ( - 'cached-hBayesDM_model-%s-pystan_%s_user-%d.pkl' % + 'cached-hBayesDM_model-%s-pystan_%s_user-%s.pkl' % (model, _pystan_version, uid) )