Talkaboutcybersecurity / GitMonitor

One way to continuously monitor sensitive information that could be exposed on Github
GNU Lesser General Public License v3.0
176 stars 42 forks source link

module 'yaml' has no attribute 'FullLoader' #2

Closed zglxw closed 4 years ago

zglxw commented 4 years ago

Traceback (most recent call last): File "gitmonitor.py", line 29, in queries, rule_id = build_query(rule_file) File "/root/GitMonitor-master/src/libs/rules.py", line 17, in build_query rule = get_rule(rule_file) File "/root/GitMonitor-master/src/libs/rules.py", line 6, in get_rule parsed_yaml_file = yaml.load(a_yaml_file, Loader=yaml.FullLoader) AttributeError: module 'yaml' has no attribute 'FullLoader'

crazykid95 commented 4 years ago

Halo @zglxw Which version of yaml are you using?

Please make sure you have Pyyaml version 5x or higher installed (by this command: pip3 install --ignore-installed PyYAML)

Perhaps this will fix the above error

crazykid95 commented 4 years ago

Halo @zglxw Which version of yaml are you using?

Please make sure you have Pyyaml version 5x or higher installed (by this command: pip3 install --ignore-installed PyYAML)

Perhaps this will fix the above error

Reference: https://stackoverflow.com/questions/55551191/module-yaml-has-no-attribute-fullloader

zglxw commented 4 years ago

ok