Nefunkční save #2

Closed
opened 2022-05-16 21:09:48 +02:00 by RichardPavlikan · 1 comment
RichardPavlikan commented 2022-05-16 21:09:48 +02:00 (Migrated from github.com)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File ".\__main__.py", line 61, in <module>
    main()
  File ".\__main__.py", line 57, in main
    games[m.selected].main_menu()
  File ".\lib\game.py", line 50, in main_menu
    l = self.save.load()
  File ".\lib\save.py", line 18, in load
    data = yaml.load(f,Loader=yaml.SafeLoader) # Načteme z YAMLu
  File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\__init__.py", line 81, in load
    return loader.get_single_data()
  File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 51, in get_single_data
    return self.construct_document(node)
  File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 60, in construct_document
    for dummy in generator:
  File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 408, in construct_yaml_seq
    data.extend(self.construct_sequence(node))
  File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 130, in construct_sequence
    for child in node.value]
  File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 130, in <listcomp>
    for child in node.value]
  File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 100, in construct_object
    data = constructor(self, node)
  File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 429, in construct_undefined
    node.start_mark)
yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object:lib.item.Item'
  in "./saves/examplegame.yml", line 4, column 3
``` File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File ".\__main__.py", line 61, in <module> main() File ".\__main__.py", line 57, in main games[m.selected].main_menu() File ".\lib\game.py", line 50, in main_menu l = self.save.load() File ".\lib\save.py", line 18, in load data = yaml.load(f,Loader=yaml.SafeLoader) # Načteme z YAMLu File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\__init__.py", line 81, in load return loader.get_single_data() File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 51, in get_single_data return self.construct_document(node) File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 60, in construct_document for dummy in generator: File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 408, in construct_yaml_seq data.extend(self.construct_sequence(node)) File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 130, in construct_sequence for child in node.value] File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 130, in <listcomp> for child in node.value] File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 100, in construct_object data = constructor(self, node) File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 429, in construct_undefined node.start_mark) yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object:lib.item.Item' in "./saves/examplegame.yml", line 4, column 3 ```
hernikplays commented 2022-05-17 08:38:08 +02:00 (Migrated from github.com)

Chybný převod uložených itemu

    1. 2022 21:10:07 RichardPavlikan @.***>:
  • File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)

File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)

File "._main_.py", line 61, in

main()

File "._main_.py", line 57, in main

games[m.selected].main_menu()

File ".\lib\game.py", line 50, in main_menu

l = self.save.load()

File ".\lib\save.py", line 18, in load

data = yaml.load(f,Loader=yaml.SafeLoader) # Načteme z YAMLu

File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml_init_.py", line 81, in load

return loader.get_single_data()

File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 51, in get_single_data

return self.construct_document(node)

File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 60, in construct_document

for dummy in generator:

File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 408, in construct_yaml_seq

data.extend(self.construct_sequence(node))

File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 130, in construct_sequence

for child in node.value]

File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 130, in

for child in node.value]

File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 100, in construct_object

data = constructor(self, node)

File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 429, in construct_undefined

node.start_mark)

yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object:lib.item.Item'

in "./saves/examplegame.yml", line 4, column 3


Reply to this email directly, view it on GitHub[https://github.com/hernikplays/texty/issues/2], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AF7T7QBH73WQAHOA5WWI2PLVKKMQTANCNFSM5WCO57IA].
You are receiving this because you are subscribed to this thread.[Sledovací obrázek][https://github.com/notifications/beacon/AF7T7QBBHXDNVY6O4LAYWSTVKKMQTA5CNFSM5WCO57IKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4SOEEKGQ.gif]

Chybný převod uložených itemu 16. 5. 2022 21:10:07 RichardPavlikan ***@***.***>: > * File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 193, in _run_module_as_main > "__main__", mod_spec) > File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 85, in _run_code > exec(code, run_globals) > File ".\__main__.py", line 61, in <module> > main() > File ".\__main__.py", line 57, in main > games[m.selected].main_menu() > File ".\lib\game.py", line 50, in main_menu > l = self.save.load() > File ".\lib\save.py", line 18, in load > data = yaml.load(f,Loader=yaml.SafeLoader) # Načteme z YAMLu > File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\__init__.py", line 81, in load > return loader.get_single_data() > File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 51, in get_single_data > return self.construct_document(node) > File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 60, in construct_document > for dummy in generator: > File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 408, in construct_yaml_seq > data.extend(self.construct_sequence(node)) > File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 130, in construct_sequence > for child in node.value] > File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 130, in <listcomp> > for child in node.value] > File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 100, in construct_object > data = constructor(self, node) > File "C:\Users\risha\AppData\Roaming\Python\Python37\site-packages\yaml\constructor.py", line 429, in construct_undefined > node.start_mark) > yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object:lib.item.Item' > in "./saves/examplegame.yml", line 4, column 3 > * > — > Reply to this email directly, view it on GitHub[https://github.com/hernikplays/texty/issues/2], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AF7T7QBH73WQAHOA5WWI2PLVKKMQTANCNFSM5WCO57IA]. > You are receiving this because you are subscribed to this thread.[Sledovací obrázek][https://github.com/notifications/beacon/AF7T7QBBHXDNVY6O4LAYWSTVKKMQTA5CNFSM5WCO57IKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4SOEEKGQ.gif] >
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hernik/texty#2
No description provided.