Skip to content

YAML Troubles #4

Description

@OneBiteAidan

File "C:\Users\5730d\AppData\Local\Programs\Python\Python38\lib\site-packages\yaml\scanner.py", line 291, in stale_possible_simple_keys
raise ScannerError("while scanning a simple key", key.mark,
yaml.scanner.ScannerError: while scanning a simple key
in "shopinfos/ragniarmorshop.yaml", line 9, column 11
could not find expected ':'
in "shopinfos/ragniarmorshop.yaml", line 11, column 9

This error given when trying to run the program. If I erase all of the quotation marks and make everything on a single line, it gives me this new error:

D:\GitHubDesktop\TextBasedAdeventure>py WynncraftButTextBased.py
Files in 'D:\GitHubDesktop\TextBasedAdeventure': ['.git', '.gitattributes', 'AdventureMaps.py', 'bank.py', 'character_info.py', 'classes.py', 'items.py', 'questboard.py', 'shopfunctions.py', 'shopinfo.py', 'shopinfos', 'TextBasedAdventureFunctions.py', 'townsquare.py', 'WynncraftButTextBased.py', 'init.py', 'pycache']
Traceback (most recent call last):
File "WynncraftButTextBased.py", line 14, in
import townsquare
File "D:\GitHubDesktop\TextBasedAdeventure\townsquare.py", line 3, in
import shopfunctions
File "D:\GitHubDesktop\TextBasedAdeventure\shopfunctions.py", line 9, in
with open('ragniarmorshop.yaml', 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'ragniarmorshop.yaml'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions