JasperMC / MarktplaatsScraper

Scrapes Marktplaats based on a search query and notifies the user.
8 stars 1 forks source link

Errors: can't read /var/mail/..., unable to open X server... #4

Open Bashtastic opened 3 years ago

Bashtastic commented 3 years ago

Hi Jasper,

First of all, thanks for publishing your work! This could be really helpful. I installed the MarktplaatsScraper per your Linux disciption on my Raspberry Pi 4, but I got lots of errors: from: can't read /var/mail/NotificationService from: can't read /var/mail/Scraper from: can't read /var/mail/FileWatcher import-im6.q16: unable to open X server @ error/import.c/ImportImageCommand/360. import-im6.q16: unable to open X server @ error/import.c/ImportImageCommand/360. ./Main.py: line 6: $\r: command not found import-im6.q16: unable to open X server @ error/import.c/ImportImageCommand/360. import-im6.q16: unable to open X server @ error/import.c/ImportImageCommand/360. ./Main.py: line 9: $\r: command not found ./Main.py: line 10: syntax error near unexpected token ( '/Main.py: line 10: def main(args):

Does this error output ring any bells with you?

TommieNL commented 3 years ago

Hey @Bashtastic not sure if @JasperMC is still active here but it seems you need to start the scraper with python3 Main.py

JasperMC commented 3 years ago

Hi @Bashtastic and @TommieNL,

I am still active here but somehow missed the notification for this issue, sorry!

I just noticed that the Linux installation still contained my old username on github, so I just adjusted it. It's possible that the git clone failed because of that and that it can't find the files because they're not there. Can you run the Linux Installation again? I think it should work now :)

Is /var/mail the location where you placed all the files for the scraper? If so, you should indeed run it with python3 Main.py from that directory after installing.