Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yaml plugin loading on Python 3.9 #3

Merged
merged 1 commit into from
Nov 19, 2021
Merged

Conversation

sgnn7
Copy link
Contributor

@sgnn7 sgnn7 commented Nov 19, 2021

You get an error trying to run this with Python 3.9 and latest pip
install:

$ pptop <PID>                                                                                                                                                                                                               
load() missing 1 required positional argument: 'Loader' 

Since the PyYAML library API changed,
we need to use safe_load (which should be the default anyways).

You get an error trying to run this with Python 3.9 and latest pip
install:
```
$ pptop <PID>                                                                                                                                                                                                               
load() missing 1 required positional argument: 'Loader' 
```

Since the PyYAML library [API changed](yaml/pyyaml#576),
we need to use `safe_load` (which should be the default anyways).
@divi255 divi255 merged commit 3560b64 into alttch:master Nov 19, 2021
@divi255
Copy link
Member

divi255 commented Nov 19, 2021

thank you for reporting and providing the fix. yes, we still use "load" instead of "safe_load" in some projects as "load" allows to inject a code inside YAML directly. but for pptop this "feature" is not required anyway.

@sgnn7 sgnn7 deleted the patch-1 branch November 19, 2021 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants