vext-python / vext

Use system python packages in virtualenv.
MIT License
71 stars 7 forks source link

"safe_load()" has been removed #95

Open montythepython opened 6 months ago

montythepython commented 6 months ago

Hello, I ran into this issue

"safe_load()" has been removed, use

yaml = YAML(typ='safe', pure=True) yaml.load(...)

instead of file "/home/xxx/Documents/xxx/venv/lib/python3.11/site-packages/vext/conf/init.py", line 22

data = yaml.safe_load(f)

I went to the file and modified it but the file has already:

import ruamel.yaml as yaml

So there is no recognition of "YAML"

If I change the import to:

import ruamel.yaml as YAML

I get

yaml = YAML(typ='safe', pure=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'module' object is not callable

Thanks in advance for any inputs

FriedrichFroebel commented 2 months ago

Most likely a duplicate of #92.

stuaxo commented 2 months ago

Cheers - I really need to do a release, in the meantime installing from the master branch should help.