JuliaPy / JuliaPy/PyCall.jl

follow up question to issue #1017 how to run shell commands with activated env

Aperta
#1,018 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Julia
Stelle
1.5k
Fork
186
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

once I successfully install the `playwright` package with PyCall.jl

```
pyimport_conda("playwright", "playwright", "microsoft")
```

I need to run this shell command in that conda env to install web drivers for playwright python package. I don't know know how to call this from `Playwright.jl` package which is let's say

```
module Playwright
#...
#...
#...

function __init__()
copy!(playwright, pyimport(.....)
# here I need to run `playwright install` in that env
end

#...
#...

end
```

This is how the python output looks like in `pytest-playwright` conda env

```
┬─[abhi@Abhimanyus-MacBook-Air:~/m/e/p/l/p/s/playwright]─[19:58:57]
╰─>$ playwright install (pytest-playwright)
Downloading Chromium 107.0.5304.18 (playwright build v1028) - 119.8 Mb [====================] 100% 0.0s
Chromium 107.0.5304.18 (playwright build v1028) downloaded to /Users/abhi/Library/Caches/ms-playwright/chromium-1028
Downloading FFMPEG playwright build v1007 - 1 Mb [====================] 100% 0.0s
FFMPEG playwright build v1007 downloaded to /Users/abhi/Library/Caches/ms-playwright/ffmpeg-1007
Downloading Firefox 105.0.1 (playwright build v1357) - 68.5 Mb [====================] 100% 0.0s
Firefox 105.0.1 (playwright build v1357) downloaded to /Users/abhi/Library/Caches/ms-playwright/firefox-1357
Downloading Webkit 16.0 (playwright build v1724) - 53.9 Mb [====================] 100% 0.0s
Webkit 16.0 (playwright build v1724) downloaded to /Users/abhi/Library/Caches/ms-playwright/webkit-1724
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start with PyCall.jl's pyimport_conda entry point and the __init__ example in the issue, then read the context from issue #1017. Determine how a command such as `playwright install` could run in the selected conda environment; done means the supported approach is documented or the requested package behavior is clearly scoped.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
julia, playwright, python
Ambito
cli, tooling
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.