-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
[BUG]: AttributeError: 'Settings' object has no attribute 'image_folder' #357
Comments
Hi there Martin, |
@Zer0great I've got a fix ready for this and would like you test it before I attempt to merge it. cd ~/Inkycal
source venv/bin/activate
git pull
git checkout hotfix/#357
python inky_run.py That should fix the issue and it does work on my end. However, as you are using a parallel display and I currently don't have access to one, I'm relying on your help to test this out. |
Hello @aceisace ,
full run log:
This seemingly runs Inkycal with no problem, the display blinks few times, but remains blank. I think the problem is there is no file "image_foldercanvas.bmp" present in Inkycal folder and subfolders.
But no run log
All in all I see two relatively simple problems now: -wrong final file name and path being generated or used in script or missing some step to copy or rename the file. Thank you |
Thanks for testing and for the detailed report @Zer0great . I've just pushed the change that should fix this too. cd ~/Inkycal
source venv/bin/activate
git pull
# I'm assuming you're still on the hotfix/#357 branch
python inky_run.py |
We are getting there, @aceisace , looks like just one final step remains :-)
However there is still problem with the BMP file location. /home/berry/Inkycal/inkycal/../image_foldercanvas.bmp but such file does not exist, so it produces just blank display. I think the correct path is $HOME/Inkycal/image_folder/canvas.bmp as this file exists and I can verify by its time stamp, it is generated during Inkycal run. Manually running this command renders the picture on display correctly for me: sudo /home/berry/Inkycal/inkycal/display/drivers/parallel_drivers/epd -2.0 0 /home/berry/Inkycal/inkycal/../image_folder/canvas.bmp Regards |
Thanks for testing, just pushed that fix too: cd ~/Inkycal
source venv/bin/activate
git pull
# Still assuming you're on the hotfix/#357 branch
python inky_run.py |
Tried it just now and looks like all problems are fixed and Inkycal runs again, as it should. Thank you |
Glad to hear that and happy to help! Thank you very much for your quick and detailed testing too Martin! |
Hello, since about last week Inkycal is not working for me. Tried deleting whole Inkycal folder and redownloading with no success. Tried some steps to fix it, but I am obviously not competent to find a solution, as each step creates another problem for me.
RPi 4 8GB
Debian GNU/Linux 12 (bookworm)
E-paper display: 10_in_3
Was working until about 27.6., but I am unable to confirm whether it was broken by os update (apt update) or Inkycal update. I have attempted to download older release of Inkycal with git and I am not sure I am doing it correctly, but it behave the same. That would point in direction of OS update, but I do not know if that can cause error "AttributeError: 'Settings' object has no attribute 'image_folder'" in main.py
main.py
should be trying to open canvas.png and canvas_colour.png , however those files do not exist in Inkycal/image_folder, there is only full-screen.pngThis is, because it is looking for the display/drivers/ folder inside /home/berry/Inkycal/inkycal/inkycal... there is one too many "inkycal" folder in the path for some reason.
So I tried to copy the display folder from /home/berry/Inkycal/inkycal/ to /home/berry/Inkycal/inkycal/inkycal/
Initialising..Updating display......sudo /home/berry/Inkycal/inkycal/inkycal/display/drivers/parallel_drivers/epd -2.0 0 /home/berry/Inkycal/inkycal/../image_foldercanvas.bmp
sudo: /home/berry/Inkycal/inkycal/inkycal/display/drivers/parallel_drivers/epd: command not found
Done
Sending E-Paper to deep sleep...Done
``
4) that seemingly make it work, but display is empty, probably because file /home/berry/Inkycal/inkycal/../image_foldercanvas.bmp does not exist
Regards
Martin
The text was updated successfully, but these errors were encountered: