Closed jspraul closed 1 year ago
Thanks for your feedback.
The missing PyYAML is a bug that could have easily been spotted if I would have had github running tests for every commit. I will set it up at some point in the not-too-far future.
The code referencing HOME has been sort of fixed:
-@click.option('-c', '--config-file', default=f"{os.environ['HOME']}/.config/calendar.conf")
+@click.option('-c', '--config-file', default=f"{os.environ.get('HOME')}/.config/calendar.conf")
... obviously the new default also won't work on "exotic OS distributions" (even asserting the presence of $HOME/.config may break on Linux). Suggestions for a more robust default value here is welcome. Anyway, file/directory not found is an expected exception so it should not break with a traceback anymore. (I hope. Did not test. I really should write up lots of test code on this one - but currently I'm prioritizing to hack up something that is useful for me).
Re-ran the steps provided and it's all clear.
Re-ran the steps provided and it's all clear.
thanks
Should be reproducible in Windows Sandbox:
powershell -executionpolicy remotesigned
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"; scoop install git; scoop install python@3.11.1
cd \ ; git clone https://github.com/tobixen/plann.git ; cd \plann ; python setup.py install
Running plann indicates a dependency on PyYaml:
pip install pyyaml
Running plann indicates a dependency on a HOME environment variable:
$Env:HOME="c:\plann"
With those two missing pieces things seem to work.
Windows Sandbox seems to indicate Windows does have the combinable HOMEDRIVE + HOMEPATH environment variables.