Closed n4c0n closed 7 years ago
I had this issue too. Make sure there is only one file called smartmirror.py because when you edit with nano you might save it in the wrong place.
I solved my problem. It didn't have anything to do with multiple files of the same name. It was about running the script while in another directory in the terminal. Seems I should have made my way to Code/Smart-Mirror before executing the command "python smartmirror.py" I'm guessing the script was looking for the assets in the folder in which I made the call. So, it was looking for an assets folder in the home directory, when it should have been looking for them in the assets sub-directory of Smart-Mirror.
Alternatively, and what I ended up doing was changing the code:
assets/WHATEVERWEATHER.png
to
SOMEHOMESUBDIRECTORY/SUBDIR/SUBDIR/...SUBDIR/assets/WHATEVERWEATHER.png
I hope that makes sense.
Don't forget to change it for the news asset as well.
Sometimes the program works nearly perfectly, as can be seen in my previous post. However, sometimes, I get the following output in terminal an on the screen when run "python Code/Smart-Mirror/smartmirror.py ":
Can anyone help?