Skip to content

"yaml.safe_load(f) has been removed" Error at gi.vext #13

@jcmcharro

Description

@jcmcharro

Hello,
I had this error:

ERROR:root:error loading spec /home/juanca/Pi-Zero-2W-UART-BLE/venv_ble/share/vext/specs/gi.vext: 
"safe_load()" has been removed, use

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

instead of file "/home/juanca/Pi-Zero-2W-UART-BLE/venv_ble/lib/python3.11/site packages/vext/conf/__init__.py", line 22

data = yaml.safe_load(f)

On the very first program test, the one with just:

  import BLE_GATT
  my_device = BLE_GATT.Central('11:22:33:44:55:66')

I have found this possible solution at https://github.com/vext-python/vext/issues/92.
It seems to be working for me, if you see this could be the right one I hope this issue opening helps you on correcting it for all the rest of possible users.
Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions