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: can't concat str to bytes #39

Open
archenroot opened this issue Nov 25, 2018 · 1 comment
Open

TypeError: can't concat str to bytes #39

archenroot opened this issue Nov 25, 2018 · 1 comment

Comments

@archenroot
Copy link

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...

@charmander
Copy link
Contributor

See #18

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