3lLobo / 3lLobo/determinedMalwareBuster

Which version of PyYaml needed/how to install?

Aperta
#5 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm getting this error when following instructions in the GitHub repo you provided to run your project via `poetry run python run.py`

Traceback (most recent call last):
File "/home/ighodgao/determinedMalwareBuster/run.py", line 41, in
context = yaml.load(open("experiments/const.yml", "r"))
TypeError: load() missing 1 required positional argument: 'Loader'

PyYaml was missing in the .toml file, so I added in version 6.0 which is the latest version and then re-ran with the updated poetry installation. Can you let me know which version of PyYaml (or other yaml handler) you may have used ASAP?

Thanks!
Isha

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Check the poetry.toml or pyproject.toml for PyYAML version constraints. Look at the run.py line 41 to see the yaml.load call and determine the correct Loader argument (e.g., yaml.SafeLoader). Update the dependency version or the code to be compatible. Test by running poetry run python run.py again.

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

Valutazione

Stack tecnologico
python, yaml
Ambito
build-system, tooling
Tipo di issue
Bug
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.