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

browser set up [BUG] #294

Open
1 task done
laeaexxx opened this issue Apr 13, 2024 · 10 comments
Open
1 task done

browser set up [BUG] #294

laeaexxx opened this issue Apr 13, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@laeaexxx
Copy link

✔️ Expected Behaviour

bot downloads ads

🐞 Actual Behaviour

when using the command "pdm app run dowanload" there is a weird error message

📋 Steps to Reproduce

idk how its just on my linux rpi

📺 What browsers are you seeing the problem on? (if applicable)

No response

💻 What operating systems are you seeing the problem on? (if applicable)

Linux

📃 Relevant log output (if applicable)

pdm run app download


| | | | () __ __ _ _ __ () __ _ ___ _ __ | | ___ | |
| |/ / |/ _ \ | '
\ / | '_ \|_ / _ \ |/ _ |/ _ \ ' \ | ' \ / _ | __|
| <| | __/ | | | | (
| | | | |/ / __/ | (
| | __/ | | |
| |
) | () | |
||__|___||| ||_,|| |/_||_, |___|| || |./ _/ _|
|
__/
https://github.com/Second-Hand-Friends/kleinanzeigen-bot

[INFO] Logging to [/home/laeaexx/kleinanzeigen-bot/kleinanzeigen_bot.log]...
[INFO] App version: 2024+1297428
[INFO] Python version: 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
[WARNING] You provided no ads selector. Defaulting to "new".
[INFO] Loading config from [/home/laeaexx/kleinanzeigen-bot/config.yaml]...
[INFO] -> found 145 categories
[INFO] Creating Browser session...
[INFO] -> Chrome binary location: /usr/bin/chromium-browser
[INFO] -> Setting chrome prefs [/tmp/uc_k4jndpv2/Default/Preferences]...
[ERROR] Exception:
---------------------
Failed to connect to browser
---------------------
One of the causes could be when you are running as root.
In that case you need to pass no_sandbox=True

successfully removed temp profile /tmp/uc_k4jndpv2

Code of Conduct

  • I agree to follow this project's Code of Conduct
@laeaexxx laeaexxx added the bug Something isn't working label Apr 13, 2024
@apeltzer
Copy link
Contributor

Agree, same error here.

@laeaexxx
Copy link
Author

So how do I fix it?

@apeltzer
Copy link
Contributor

The nodriver package got an update to 0.27.4, maybe that helps. Though its not on pypi yet ultrafunkamsterdam/nodriver@bb0fcaf

@laeaexxx
Copy link
Author

still cant fix that shit pls help

@apeltzer
Copy link
Contributor

Upgrading to 0.27.4 didnt help either, no luck for me.

@apeltzer
Copy link
Contributor

Using the latest version as automatically build from releases works for me again 👍🏻

@laeaexxx
Copy link
Author

Using the latest version as automatically build from releases works for me again 👍🏻

What exactly did u do

@apeltzer
Copy link
Contributor

Use the binary, not the pdm version.

@laeaexxx
Copy link
Author

Use the binary, not the pdm version.

So what exactly does that mean sorry for being such a newbie I just don't know

@provinzio
Copy link
Contributor

provinzio commented May 30, 2024

@laeaexxx apeltzer refers to the binary executables which are automatically build on every new update to the main branch. You can find them under "Releases" which is on the right side of the repo home page or here. Please select the executable file according to your machine.

The usage is similar to the pdm version. In a terminal you can call the executable like C:\myexecutable.exe download --force.


Does your problem still exists? It might be a problem that the RaspberyPi-architecture is arm based.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants