Skip to content

TypeError: can't concat str to bytes #39

Open
@archenroot

Description

zangetsu@venus: pts/11: 16 files 192Kb -> ./generate_compressor_model.py --split=whitespace --strip=punctuation README.md
Traceback (most recent call last):
  File "./generate_compressor_model.py", line 391, in <module>
    main()
  File "./generate_compressor_model.py", line 287, in main
    chunks = list(chunkinator(args.file, args.split, args.strip))
  File "./generate_compressor_model.py", line 245, in chunkinator
    for chunk in chunks:
  File "./generate_compressor_model.py", line 242, in <genexpr>
    chunks = itertools.chain.from_iterable(re.split(b"[" + WHITESPACE + "]", data) for data in all_in)
TypeError: can't concat str to bytes

Probably related to fact it is python2 related and I run on v3...

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