You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am packaging botright for NixOS, which places the resulting package below the read-only /nix/store. This led to multiple issues in hcaptcha_challenger and botright by throwing permission errors.
Describe the solution you'd like
Modify the code to not depend being able to write alongside the python code. That'd ease packaging.
The offending place here is this line. Changing it to tmp_dir = Path("./hcaptcha-challenger/tmp_dir") fixes this problem.
I'm open to another path to store this data. Maybe as it is temporary, /tmp or /var/tmp are useful places? (by just using a mktempdir function). Alternatively, a configurable place for this data is also fine by me.
Describe alternatives you've considered
Continue needing to patch the source while packaging. This is unpleasant and makes updates harder.
Additional context
FYI two other patches are in place in my packaging script:
Removing all undetected_playwright imports because it is not available, I was unable to package it and just use playwright anyways. Without it, python errors out because it cannot find the module.
The chrome browser is not found (code). I know this is a problem of the browsers library you use.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I am packaging botright for NixOS, which places the resulting package below the read-only
/nix/store
. This led to multiple issues in hcaptcha_challenger and botright by throwing permission errors.Describe the solution you'd like
Modify the code to not depend being able to write alongside the python code. That'd ease packaging.
The offending place here is this line. Changing it to
tmp_dir = Path("./hcaptcha-challenger/tmp_dir")
fixes this problem.I'm open to another path to store this data. Maybe as it is temporary,
/tmp
or/var/tmp
are useful places? (by just using a mktempdir function). Alternatively, a configurable place for this data is also fine by me.Describe alternatives you've considered
Continue needing to patch the source while packaging. This is unpleasant and makes updates harder.
Additional context
FYI two other patches are in place in my packaging script:
undetected_playwright
imports because it is not available, I was unable to package it and just use playwright anyways. Without it, python errors out because it cannot find the module.browsers
library you use.The text was updated successfully, but these errors were encountered: