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
I am packaging this program for NixOS. It places all packages at /nix/store, which is read-only. At first launch I got a permission error because this program tried to write alongside the python code, which is read-only.
Patching the above linked offending line from at_dir = Path(__file__).parent to at_dir = Path('./hcaptcha-challenger') fixes the error. If you have a better directory, you can also use that or even make it configurable.
Additionally, multiple places (example) try to access a models/ directory alongside the python code. For now I fixed this by symlinking this directory to somewhere else, but again it would be nice to not have to patch the packaging process and removing flexibility by setting the target at package build time.
Those two fixes make this program fully runnable in my setup.
The text was updated successfully, but these errors were encountered:
Brief description
Change the storage path to another location.
I am packaging this program for NixOS. It places all packages at /nix/store, which is read-only. At first launch I got a permission error because this program tried to write alongside the python code, which is read-only.
Patching the above linked offending line from
at_dir = Path(__file__).parent
toat_dir = Path('./hcaptcha-challenger')
fixes the error. If you have a better directory, you can also use that or even make it configurable.Additionally, multiple places (example) try to access a
models/
directory alongside the python code. For now I fixed this by symlinking this directory to somewhere else, but again it would be nice to not have to patch the packaging process and removing flexibility by setting the target at package build time.Those two fixes make this program fully runnable in my setup.
The text was updated successfully, but these errors were encountered: