imagenode icon indicating copy to clipboard operation
imagenode copied to clipboard

Test1 does not use correct path to YAML for me

Open lamachine opened this issue 4 years ago • 1 comments

Jeff, I am following your instructions (hopefully to the letter). I did the git install and checked all dependancies. I am running in the venv py3cv3 (from pyimagesearch). When I try running imagenode with test1, I get an error that it cannot find the imagenode.yaml file. I tried just loading python, import OS, and print(os.path.expanduser("~")) it returns /home/pi and obviously does not find the yaml file there. I figured I could just tweak to fix it, but this usually solves one problem and causes several more.

This happens both in VSCode as well as from the terminal. receivetest.py is running in the background in the same environment with no errors.

2021-11-16 20:22:08,886 ~ Unanticipated error with no Exception handler. Traceback (most recent call last): File "imagenode.py", line 29, in main settings = Settings() # get settings for node cameras, ROIs, GPIO File "/home/pi/imagenode/imagenode/tools/imaging.py", line 1337, in __init__ with open(os.path.join(userdir, "imagenode.yaml")) as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/imagenode.yaml' 2021-11-16 20:22:08,890 ~ Exiting imagenode.py

lamachine avatar Nov 17 '21 01:11 lamachine

Apparently git clone created a directory called imagenode and put one of the same name inside. Will test my fix tomorrow.

lamachine avatar Nov 17 '21 03:11 lamachine