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

TypeError: Object of type int64 is not JSON serializable #98

Closed
MikeGawi opened this issue Jan 10, 2024 · 0 comments
Closed

TypeError: Object of type int64 is not JSON serializable #98

MikeGawi opened this issue Jan 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working done Feature has been implemented, tested and released

Comments

@MikeGawi
Copy link
Owner

According to #89, there's a bug in saving index when randomization is enabled.

Traceback (most recent call last):
  File "/home/pi/epiframe10/./ePiframe.py", line 1108, in <module>
    EPiframe()
  File "/home/pi/epiframe10/./ePiframe.py", line 73, in __init__
    self.process_flow()
  File "/home/pi/epiframe10/./ePiframe.py", line 125, in process_flow
    self.process_file(
  File "/home/pi/epiframe10/./ePiframe.py", line 618, in process_file
    self.save_index()
  File "/home/pi/epiframe10/./ePiframe.py", line 625, in save_index
    self.index_manager.save()
  File "/home/pi/epiframe10/modules/indexmanager.py", line 33, in save
    json.dump({"id": self.__id, "index": self.__index}, file_data)
  File "/usr/lib/python3.9/json/__init__.py", line 179, in dump
    for chunk in iterable:
  File "/usr/lib/python3.9/json/encoder.py", line 431, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.9/json/encoder.py", line 438, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.9/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type int64 is not JSON serializable`
@MikeGawi MikeGawi self-assigned this Jan 10, 2024
@MikeGawi MikeGawi added bug Something isn't working done Feature has been implemented, tested and released labels Jan 10, 2024
MikeGawi added a commit that referenced this issue Jan 10, 2024
TypeError: Object of type int64 is not JSON serializable #98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working done Feature has been implemented, tested and released
Projects
None yet
Development

No branches or pull requests

1 participant