Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test1 does not use correct path to YAML for me #22

Open
lamachine opened this issue Nov 17, 2021 · 1 comment
Open

Test1 does not use correct path to YAML for me #22

lamachine opened this issue Nov 17, 2021 · 1 comment

Comments

@lamachine
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant