Skip to content

TypeError: the JSON object must be str, bytes or bytearray, not float #17

@jorgheymans

Description

@jorgheymans

For my repository i do
gilot hotgraph -i app.csv

and i get this stacktrace:

Traceback (most recent call last):
  File "/home/user/.local/bin/gilot", line 8, in <module>
    sys.exit(main())
  File "/home/user/.local/lib/python3.10/site-packages/gilot/app.py", line 418, in main
    args.handler(args)
  File "/home/user/.local/lib/python3.10/site-packages/gilot/app.py", line 127, in handle_hotgraph
    epanded_df = df.expand_files(is_match)
  File "/home/user/.local/lib/python3.10/site-packages/gilot/core.py", line 214, in expand_files
    dics = [e for c in self.to_records()
  File "/home/user/.local/lib/python3.10/site-packages/gilot/core.py", line 215, in <listcomp>
    for e in c.expand()]
  File "/home/user/.local/lib/python3.10/site-packages/gilot/core.py", line 139, in expand
    file_info = json.loads(self.files_json)
  File "/usr/lib/python3.10/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not float

Can i troubleshoot this somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions