from hcuppy.sflag import SFlagEngine
sfe = SFlagEngine()
Traceback (most recent call last):
File "", line 1, in
File "/Users/psuedofinnish/git_repo/hcuppy/hcuppy/sflag.py", line 7, in init
self.cpt2flag = utils.read_surgeryflag(fn)
File "/Users/psuedofinnish/git_repo/hcuppy/hcuppy/utils.py", line 207, in read_surgeryflag
with open(fn, "r") as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/psuedofinnish/git_repo/hcuppy/hcuppy/data/cpt2sflag.json'
for non interactive eula acceptance.
$python3 -m venv venv $source venv/bin/activate $pip install wheel requests $pip install . $python3 -c 'from hcuppy.cpt import CPT; cpt = CPT(); cpt.download_data(accept_eula=True)' $python3 -c 'from hcuppy.sflag import SFlagEngine; sfe = SFlagEngine()'
Affects SFlagEngine
$python3 -m venv venv $source venv/bin/activate $pip install wheel $pip install requests python3