Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

YAMLLoadWarning when adding a invoke.yml file to the repo

Open Beginner friendly
#1,033 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
cli, tooling

Research direction

Start in /usr/lib/python3/dist-packages/invoke/config.py around line 908, where the warning shows during YAML configuration loading. Reproduce it with an invoke.yml file and the reported PyYAML environment; done means invoking the task no longer emits YAMLLoadWarning while configuration still loads correctly.

Written by the indexing model from the issue text.

Description

Hi, I'm trying to add some configurations to my invoke and I encounter this warning at each run

/usr/lib/python3/dist-packages/invoke/config.py:908: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  return yaml.load(fd)

From a quick google search it seems to be because I use a newest version of PyYML.

Pip Packages
Package                 Version
----------------------- --------------------
apturl                  0.5.2
bcrypt                  3.2.0
blinker                 1.4
Brlapi                  0.8.3
certifi                 2020.6.20
chardet                 4.0.0
charset-normalizer      3.4.2
click                   8.0.3
cloudpickle             3.1.1
colorama                0.4.4
command-not-found       0.3
cryptography            3.4.8
cupshelpers             1.0
dbus-python             1.2.18
defer                   1.0.6
distro                  1.7.0
distro-info             1.1+ubuntu0.2
docker                  7.1.0
doit                    0.36.0
duplicity               0.8.21
fasteners               0.14.1
folder-color            0.2.0
future                  0.18.2
httplib2                0.20.2
icoextract              0.1.2
idna                    3.3
importlib-metadata      4.6.4
invoke                  1.4.1
jeepney                 0.7.1
keyring                 23.5.0
language-selector       0.1
launchpadlib            1.10.16
lazr.restfulclient      0.14.4
lazr.uri                1.0.6
lockfile                0.12.2
louis                   3.20.0
macaroonbakery          1.3.1
Mako                    1.1.3
MarkupSafe              2.0.1
monotonic               1.6
more-itertools          8.10.0
netifaces               0.11.0
oauthlib                3.2.0
olefile                 0.46
packaging               21.3
paramiko                2.9.3
pefile                  2021.9.3
pexpect                 4.8.0
Pillow                  9.0.1
pip                     22.0.2
protobuf                3.12.4
psutil                  5.9.0
ptyprocess              0.7.0
pycairo                 1.20.1
pycups                  2.0.1
pyelftools              0.27
PyGObject               3.42.1
pyinotify               0.9.6
PyJWT                   2.3.0
pymacaroons             0.13.0
PyNaCl                  1.5.0
pyparsing               2.4.7
pyRFC3339               1.1
python-apt              2.4.0-ubuntu4-zorin1
python-dateutil         2.8.1
python-debian           0.1.43+ubuntu1.1
pytz                    2022.1
pyxdg                   0.27
PyYAML                  5.4.1
reportlab               3.6.8
requests                2.32.3
screen-resolution-extra 0.0.0
SecretStorage           3.3.1
setuptools              59.6.0
six                     1.16.0
ssh-import-id           5.11
ubuntu-drivers-common   0.0.0
ufw                     0.36.1
unattended-upgrades     0.1
urllib3                 1.26.5
wadllib                 1.3.6
wheel                   0.37.1
xdg                     5
xkit                    0.0.0
zipp                    1.0.0
zorin-appearance        5.3
zorin-connect           1.2
zorin-exec-guard        1.5
Dominant language
Python
Stars
4.8k
Forks
412
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pyinvoke/invoke

All issues in pyinvoke/invoke

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.