Closed Titaniumtown closed 1 month ago
works for me, because cdp-socket
is in propagatedBuildInputs
in pkgs/python3/pkgs/selenium-driverless/selenium-driverless.nix
$ NIXPKGS_ALLOW_UNFREE=1 nix-shell -p nur.repos.milahu.python3.pkgs.selenium-driverless
$ python -m asyncio
>>> import selenium_driverless.webdriver
>>> opt = selenium_driverless.webdriver.ChromeOptions()
>>> drv = selenium_driverless.webdriver.Chrome(opt)
>>> ctx = await drv.__aenter__()
>>> await ctx.get("https://github.com/")
seems like you did
PYTHONPATH=$(NIXPKGS_ALLOW_UNFREE=1 nix-build '<nixpkgs>' -A nur.repos.milahu.python3.pkgs.selenium-driverless)/lib/python3.11/site-packages python
which only adds selenium_driverless
to sys.path
note that this is an older version of selenium_driverless works for me ; )
huh- ok. I'll just use a distrobox of archlinux in it to do my python stuff. ty for your hard work!
It seems that your build of
selenium_driverless
does not work because it fails to accesscdp_socket
.