Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Produced_Mana #12

Closed
Wizard37 opened this issue Sep 28, 2022 · 1 comment
Closed

Crash on Produced_Mana #12

Wizard37 opened this issue Sep 28, 2022 · 1 comment

Comments

@Wizard37
Copy link

Wizard37 commented Sep 28, 2022

Hello, I'm getting a crash after a fresh install when trying to create my spreadsheet.

MacOS 12.6

Deserializing
concurrent.futures.process._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/process.py", line 243, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/process.py", line 202, in _process_chunk
    return [fn(*args) for args in chunk]
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/process.py", line 202, in <listcomp>
    return [fn(*args) for args in chunk]
  File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 2 validation errors for ScryCard
produced_mana -> 0
  value is not a valid enumeration member; permitted: 'W', 'U', 'B', 'R', 'G', 'C' (type=type_error.enum; enum_values=[<ScryColor.WHITE: 'W'>, <ScryColor.BLUE: 'U'>, <ScryColor.BLACK: 'B'>, <ScryColor.RED: 'R'>, <ScryColor.GREEN: 'G'>, <ScryColor.COLORLESS: 'C'>])
produced_mana -> 0
  value is not a valid integer (type=type_error.integer)
"""

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/Users/jared/Library/Python/3.9/bin/./mtg-ssm", line 8, in <module>
    sys.exit(main())
  File "/Users/jared/Library/Python/3.9/lib/python/site-packages/mtg_ssm/ssm.py", line 231, in main
    oracle = get_oracle(args.set_types, args.include_digital)
  File "/Users/jared/Library/Python/3.9/lib/python/site-packages/mtg_ssm/ssm.py", line 141, in get_oracle
    scrydata = fetcher.scryfetch()
  File "/Users/jared/Library/Python/3.9/lib/python/site-packages/mtg_ssm/scryfall/fetcher.py", line 124, in scryfetch
    cards_data = _deserialize_cards(cards_json)
  File "/Users/jared/Library/Python/3.9/lib/python/site-packages/mtg_ssm/scryfall/fetcher.py", line 80, in _deserialize_cards
    cards_data = list(cards_futures)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/process.py", line 559, in _chain_from_iterable_of_lists
    for element in iterable:
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 608, in result_iterator
    yield fs.pop().result()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 438, in result
    return self.__get_result()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
    raise self._exception
pydantic.error_wrappers.ValidationError: 2 validation errors for ScryCard
produced_mana -> 0
  value is not a valid enumeration member; permitted: 'W', 'U', 'B', 'R', 'G', 'C' (type=type_error.enum; enum_values=[<ScryColor.WHITE: 'W'>, <ScryColor.BLUE: 'U'>, <ScryColor.BLACK: 'B'>, <ScryColor.RED: 'R'>, <ScryColor.GREEN: 'G'>, <ScryColor.COLORLESS: 'C'>])
produced_mana -> 0
  value is not a valid integer (type=type_error.integer)
@gwax
Copy link
Owner

gwax commented Dec 14, 2022

Fixed as of the just released version 2.2.4

@gwax gwax closed this as completed Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants