I followed the installation as described in the documentation, copy pasted the example yaml content into an example.yaml file and I get the following error
$ flashcards example.yaml
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\JEPL\dev\swedish-flash-cards\venv\Scripts\flashcards.exe\__main__.py", line 7, in <module>
File "C:\JEPL\dev\swedish-flash-cards\venv\Lib\site-packages\flashcards\cli.py", line 55, in main
start(args)
File "C:\JEPL\dev\swedish-flash-cards\venv\Lib\site-packages\flashcards\flashcards.py", line 204, in start
parsed_file = yaml.load(stream)
^^^^^^^^^^^^^^^^^
File "C:\JEPL\dev\swedish-flash-cards\venv\Lib\site-packages\yaml\__init__.py", line 72, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\JEPL\dev\swedish-flash-cards\venv\Lib\site-packages\yaml\constructor.py", line 37, in get_single_data
return self.construct_document(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\JEPL\dev\swedish-flash-cards\venv\Lib\site-packages\yaml\constructor.py", line 46, in construct_document
for dummy in generator:
File "C:\JEPL\dev\swedish-flash-cards\venv\Lib\site-packages\yaml\constructor.py", line 398, in construct_yaml_map
value = self.construct_mapping(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\JEPL\dev\swedish-flash-cards\venv\Lib\site-packages\yaml\constructor.py", line 204, in construct_mapping
return super().construct_mapping(node, deep=deep)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\JEPL\dev\swedish-flash-cards\venv\Lib\site-packages\yaml\constructor.py", line 126, in construct_mapping
if not isinstance(key, collections.Hashable):
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Hashable'
These are the mosules I have installed
future==0.16.0python-flashcards==0.3.0PyYAML==3.12
Hi!
I followed the installation as described in the documentation, copy pasted the example yaml content into an
example.yaml
file and I get the following errorThese are the mosules I have installed
future==0.16.0
python-flashcards==0.3.0
PyYAML==3.12