Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Firefox script not working #1

Open
mredaelli opened this issue Jun 10, 2021 · 2 comments
Open

Firefox script not working #1

mredaelli opened this issue Jun 10, 2021 · 2 comments

Comments

@mredaelli
Copy link

I tried the Firefox script with current playwright on NixOS 21.05, and I get an error about not being able to find libstdc++.

A couple of attempted tweaks didn't help: can I ask you if it's still working for you?

@ivan
Copy link
Member

ivan commented Jul 20, 2021

It seems to be working for me right now on NixOS 20.05. Do you see something else? If so, can you post the patch log and ldd on playwright's ./firefox/firefox-bin?

at@dev:/home/at/.cache/ms-playwright/firefox-1271# nix-env -iA firefox-bin
installing 'firefox-bin-90.0'
these paths will be fetched (0.00 MiB download, 224.49 MiB unpacked):
  /nix/store/p8r7k3j9sc96f3dh22rk2mbhayyjmmpb-firefox-release-bin-unwrapped-90.0
  /nix/store/xlic8jyfz968g02y58y9dayg4y3fh9z9-firefox-bin-90.0
copying path '/nix/store/p8r7k3j9sc96f3dh22rk2mbhayyjmmpb-firefox-release-bin-unwrapped-90.0' from 'http://xssd1.wg:5000'...
copying path '/nix/store/xlic8jyfz968g02y58y9dayg4y3fh9z9-firefox-bin-90.0' from 'http://xssd1.wg:5000'...
building '/nix/store/lp51d3b2imzphi4lbmdygndacjb27cds-user-environment.drv'...
created 19 symlinks in user environment

at@dev:/home/at/.cache/ms-playwright/firefox-1271# ~/code/system/nixos-playwright/fix-playwright-firefox
/home/at/.cache/ms-playwright/firefox-1271/firefox/libnssutil3.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libssl3.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libmozsandbox.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libmozwayland.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/firefox
patchelf: not an ELF executable
patchelf: not an ELF executable
/home/at/.cache/ms-playwright/firefox-1271/firefox/libsmime3.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/updater
/home/at/.cache/ms-playwright/firefox-1271/firefox/libsoftokn3.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libnss3.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/gtk2/libmozgtk.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/pingsender
/home/at/.cache/ms-playwright/firefox-1271/firefox/liblgpllibs.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libxul.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libplds4.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/plugin-container
/home/at/.cache/ms-playwright/firefox-1271/firefox/libplc4.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/firefox-bin
/home/at/.cache/ms-playwright/firefox-1271/firefox/libfreeblpriv3.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libnssckbi.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libmozavutil.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libmozgtk.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libmozavcodec.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libmozsqlite3.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/gmp-clearkey/0.1/libclearkey.so
/home/at/.cache/ms-playwright/firefox-1271/firefox/libnspr4.so

at@dev:/home/at/.cache/ms-playwright/firefox-1271# ldd ./firefox/firefox-bin
        linux-vdso.so.1 (0x0000653710601000)
        libpthread.so.0 => /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libpthread.so.0 (0x000065371051b000)
        libdl.so.2 => /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libdl.so.2 (0x0000653710516000)
        libstdc++.so.6 => /nix/store/dzaadhn5y56da24635icafv1nrawxm4n-gcc-10.3.0-lib/lib/libstdc++.so.6 (0x000065371033f000)
        libm.so.6 => /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libm.so.6 (0x00006537101fc000)
        libgcc_s.so.1 => /nix/store/dzaadhn5y56da24635icafv1nrawxm4n-gcc-10.3.0-lib/lib/libgcc_s.so.1 (0x00006537101e2000)
        libc.so.6 => /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/libc.so.6 (0x0000653710021000)
        /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib/ld-linux-x86-64.so.2 => /nix/store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48/lib64/ld-linux-x86-64.so.2 (0x0000653710603000)

at@dev:/home/at/.cache/ms-playwright/firefox-1271# ./firefox/firefox-bin --version
Mozilla Firefox 89.0

@mredaelli
Copy link
Author

Sorry for the delay. Using the playwright python package:

spiders on 🌱 master 📝🤷 🐍 v3.8.9 via ⊢💩 (nix-shell) 
❯ playwright install firefox                                                                                                                                                                             
Downloading Playwright build of firefox v1269 - 72.7 Mb [====================] 100% 0.0s 
Playwright build of firefox v1269 downloaded to /home/xx/.cache/ms-playwright/firefox-1269

spiders on 🌱 master 📝🤷 🐍 v3.8.9 via ⊢💩 (nix-shell) 
❯ which firefox                                                                                                                                                                                           
/run/current-system/sw/bin/firefox

spiders on 🌱 master 📝🤷 🐍 v3.8.9 via ⊢💩 (nix-shell) took 1m18s 
❯ firefox --version                                                                                                                                                                                      
Mozilla Firefox 90.0

spiders on 🌱 master 📝🤷 🐍 v3.8.9 via ⊢💩 (nix-shell) 
❯ ./fix-playwright-firefox                                                                                                                                                                                
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libnssutil3.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libssl3.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libmozsandbox.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libmozwayland.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/firefox
patchelf: not an ELF executable
patchelf: not an ELF executable
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libsmime3.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/updater
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libsoftokn3.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libnss3.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/gtk2/libmozgtk.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/pingsender
/home/xx/.cache/ms-playwright/firefox-1269/firefox/liblgpllibs.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libxul.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libplds4.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/plugin-container
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libplc4.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/firefox-bin
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libfreeblpriv3.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libnssckbi.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libmozavutil.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libmozgtk.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libmozavcodec.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libmozsqlite3.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/gmp-clearkey/0.1/libclearkey.so
/home/xx/.cache/ms-playwright/firefox-1269/firefox/libnspr4.so

spiders on 🌱 master 📝🤷 🐍 v3.8.9 via ⊢💩 (nix-shell) 
❯ ~/.cache/ms-playwright/firefox-1269/firefox/firefox-bin                                                                                                                                                
/home/xx/.cache/ms-playwright/firefox-1269/firefox/firefox-bin: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants