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

Installer not working as expected #26

Closed
ericwass opened this issue Apr 17, 2019 · 22 comments
Closed

Installer not working as expected #26

ericwass opened this issue Apr 17, 2019 · 22 comments
Assignees
Labels
fixed! If something's fixed, it should have this label outdated This issue is from a previous release and is most likey not relevant. (Archived)

Comments

@ericwass
Copy link

ericwass commented Apr 17, 2019

Hi,
I've followed all the installation instructions but cannot get an image on my Waveshare 7.5in three color display.

  • Version info;
    Version: 1.5
    Installer version: 1.5 (Early February 2019)
    configuration file: /home/pi/E-Paper-Calendar/Calendar/settings.py
    If the time was set correctly, you installed this software on:
    Tue Apr 16 16:11:34 PDT 2019

Error output:

Traceback (most recent call last):
  File "/home/pi/E-Paper-Calendar/Calendar/E-Paper.py", line 33, in <module>
    from icon_positions_locations import *
  File "/home/pi/E-Paper-Calendar/Calendar/icon_positions_locations.py", line 19, in <module>
    weekday = im_open(opath+'weekday.png')

  File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 2609, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Calendar/Calendar/other/weekday.png'
ne 19, in <module>
    weekday = im_open(opath+'weekday.png')
  File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 2609, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Calendar/Calendar/other/weekday.png'
Traceback (most recent call last):
  File "/home/pi/E-Paper-Calendar/Calendar/E-Paper.py", line 33, in <module>
    from icon_positions_locations import *
  File "/home/pi/E-Paper-Calendar/Calendar/icon_positions_locations.py", line 19, in <module>
    weekday = im_open(opath+'weekday.png')
  File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 2609, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Calendar/Calendar/other/weekday.png'
Traceback (most recent call last):
  File "/home/pi/E-Paper-Calendar/Calendar/E-Paper.py", line 33, in <module>
    from icon_positions_locations import *
  File "/home/pi/E-Paper-Calendar/Calendar/icon_positions_locations.py", line 19, in <module>
    weekday = im_open(opath+'weekday.png')
  File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 2609, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Calendar/Calendar/other/weekday.png'
Traceback (most recent call last):
  File "/home/pi/E-Paper-Calendar/Calendar/E-Paper.py", line 33, in <module>
    from icon_positions_locations import *
  File "/home/pi/E-Paper-Calendar/Calendar/icon_positions_locations.py", line 19, in <module>
    weekday = im_open(opath+'weekday.png')
  File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 2609, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Calendar/Calendar/other/weekday.png'
  • Changes made:
    No changes

  • Description:
    Unable to get it to work at all. This is the result from terminal:
    pi@raspberrypi:~/E-Paper-Calendar/Calendar $ sudo python3.5 E-Paper.py
    Traceback (most recent call last):
    File "E-Paper.py", line 33, in
    from icon_positions_locations import *
    File "/home/pi/E-Paper-Calendar/Calendar/icon_positions_locations.py", line 19, in
    weekday = im_open(opath+'weekday.png')
    File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 2609, in open
    fp = builtins.open(filename, "rb")
    FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Calendar/Calendar/other/weekday.png'

  • Additional Notes:
    _There may be other issues with the display and/or drivers. I'm unable to get Waveshare demo code to work. Terminal always returns "e-Paper busy"

I have checked and re-checked that I've installed all drivers/python/libraries, etc. I'm very new to this and bought it to learn, so please forgive something I might be missing. Appreciate your work on this._

@mgfcf
Copy link

mgfcf commented Apr 17, 2019

Hi @ericwass ,
it seems like there is something wrong with you path. I have no complete insight in the code, but it might work, if you change the path in icon_positions_locations.py which should be located in /home/pi/E-Paper-Calendar/Calendar/.

Change the 12th line
path = '/home/pi/Calendar/Calendar/
to
path = '/home/pi/E-Paper-Calendar/Calendar/.

@aceisace
Copy link
Collaborator

@ericwass
Hi, thanks for joining Github, your interest in this software and for notifying about the bug. I'm working on this at the moment so hopefullly it'll be fixed by today. I apologize for the inconvenience so far and will notify you as soon as it's fixed. Thanks for understanding.

@ericwass
Copy link
Author

ericwass commented Apr 17, 2019 via email

@aceisace aceisace self-assigned this Apr 17, 2019
@aceisace aceisace added bug Something isn't working in progress Something is currently being tested. labels Apr 17, 2019
@aceisace
Copy link
Collaborator

@ericwass
The bug is causing a bit of a domino-effect. All these errors are related to the incorrect path.
I can suggest these things for now:

  • Have you already done the setup from the README? (Click here to view the setup)
  • If you've done that already, check what the downloaded folder with the E-Paper software is called. It should be called 'Inky-Calendar', so if isn't, you can try changing that.
  • Please also note that the software only supports python3.x (recommended is python3.5). To wun the software with python3, please use the following command:
    python3.5 /home/pi/Inky-Calendar/Calendar/E-Paper.py

If these don't fix the errors, please use the uninstalling option in the installer to remove the software and run the installer again when it's ready.

@mgfcf
Copy link

mgfcf commented Apr 17, 2019

Hey @aceisace ,
in the given error-message it looks like the path is E-Paper-Calendar instead of Inky-Calendar, but the set path in the icon_positions_locations.py-file is actually Calendar/Calendar/, which cannot be correct.

The exception also mentions python3.5 in its path.

@ericwass
Copy link
Author

ericwass commented Apr 17, 2019 via email

@ericwass
Copy link
Author

ericwass commented Apr 17, 2019 via email

@aceisace aceisace changed the title Can't get started Installer not working as expected Apr 17, 2019
@aceisace
Copy link
Collaborator

@ericwass
Hi again, sorry it took so long but the installer has been updated and tested now.

I'd recommend you use a fresh install of Raspbain (Lite or Desktop) and use the installer again. If that is too difficult, you can try using the update function of the installer. If something doesn't work right, you can try uninstalling the software (using the installer) and re-installing it after that.

Please let me know if it works. I've done some thorough checks, but there is always a chance for bugs. Thanks in advance.

@ericwass
Copy link
Author

ericwass commented Apr 18, 2019 via email

@aceisace
Copy link
Collaborator

@ericwass
Hi, thanks for your kind words :).

About the waveshare files, please do not install anything from waveshare as it will cause some collisions with this library as they are not compatible in the same environment. One of the reasons is that the waveshare files only support python2.x, while this library uses only python3.x. What's more is that there are differences in how the image data is processed so it will cause issues with displaying the image correctly. So, for this software, you don't need to install anything form waveshare at all.

I made the installer so that there would be no need to follow the somewhat difficult-to-follow instructions from waveshare. It will install the required libraries, driver files (which are different form waveshare) and additional details so you only need to insert your details.

I've also fixed the web-ui for the settings.py file. You can use that to easily generate the settings.py file :)

@ericwass
Copy link
Author

ericwass commented Apr 18, 2019 via email

@ericwass
Copy link
Author

ericwass commented Apr 18, 2019 via email

@ericwass
Copy link
Author

ericwass commented Apr 18, 2019 via email

@aceisace
Copy link
Collaborator

@ericwass
Hi, I'm been using the software from today and so far there haven't been any errors. From that, I'd say the problem is not software-related, but rather hardware related. I'm just taking a wild guess, but I'd say it might be a problem with the connections.

Just in case, could you please attach the following:

  • An image of the E-Paper display from the front side (to see if the E-Paper is in tact)
  • An image of the connector (extension) of the E-Paper display. This is to see if they're plugged in the right way)
  • An image of the driver-board that is plugged in to the GPIO-headers of the Raspberry Pi.
  • An image showing the gpio headers from the bottom and the side. (To check if the connections are working)
    If you can provide these images, I'd be able to help you more specifically.

You don't need to thank me for helping you with the issue. There was indeed a problem with the installer and I'm responsible for fixing that. Thank you as well for pointing out the errors :)

I'm sorry but I don't drink. But if you want to, you can send a small donation via Paypal (link in the README) to express your thanks :)

@aceisace aceisace added fixed! If something's fixed, it should have this label and removed in progress Something is currently being tested. labels Apr 18, 2019
@ericwass
Copy link
Author

ericwass commented Apr 18, 2019 via email

@aceisace
Copy link
Collaborator

@ericwass
I think the power supply is most likely not the issue. It hardly makes a difference powering the E-Paper display since they consume almost no power (only when updating, and at most a few milliamps).

I'm sorry to tell you this, but the images you uploaded can't be seen in the comment. I can only see the image-filenames but not the actual images themselves. Could you try uploading them directly on github? Thanks in advance.

If you want to donate, you can do so with this link: Donate. I forgot to mention that the link was inside a button on the README page, just like this one.

@ericwass
Copy link
Author

Donation sent!

unnamed 2
unnamed
unnamed-1
unnamed-2
unnamed 1
unnamed-3

@aceisace
Copy link
Collaborator

@ericwass
Thank you very much for your donation :) You're awesome 💯 🥇!

From the images, it seems as though all cables are connected correctly. Your GPIO headers are also firm and the driver hat configuration is also correct. That only leaves the E-Paper. It was a bit strange that you could manage to access the E-Paper (via SPI) but not receive a signal from the E-Paper telling the Raspberry it's ready to accept data. This would mean that only some of the connections are working fine.

The third image in your comment shows a crack at the front side of the E-Paper and unfortunately, at a very delicate spot (logic board inside the E-Paper). It would be very difficult to fix such a problem without special equipment so if you've just recently bought the E-Paper, I'd suggest you ask for a replacement.

I'm sorry I couldn't be of more help, but this is the best advice I can give you.

@ericwass
Copy link
Author

ericwass commented Apr 18, 2019 via email

@aceisace aceisace removed the bug Something isn't working label Apr 18, 2019
@aceisace
Copy link
Collaborator

@ericwass
Hi Eric, I'm glad to hear that the cause of this problem could be found.
You're most welcome to ask for any more help regarding the Inky-Calendar. I hope you can get your E-Paper replaced easily form waveshare. They do indeed offer very slow technical support, but replacements are normally handled much faster than that.
Best Regards, Ace

Since the purpose of this issue has been fulfilled (fixing the installer and certain parts of the software), I'll be closing this issue now. Should you feel a need to re-open the issue, please don't hesitate to do so.

@hapklaar
Copy link

@ericwass Curious, did you ever get a replacement and did it work afterwards? I'm having similar issues with always getting 'e-Paper busy' repsonses.

@ericwass
Copy link
Author

ericwass commented Sep 28, 2019 via email

@aceisace aceisace added the outdated This issue is from a previous release and is most likey not relevant. (Archived) label Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed! If something's fixed, it should have this label outdated This issue is from a previous release and is most likey not relevant. (Archived)
Projects
None yet
Development

No branches or pull requests

4 participants