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: ord() expected string of length 1, but int found #38

Open
archenroot opened this issue Nov 25, 2018 · 2 comments
Open

TypeError: ord() expected string of length 1, but int found #38

archenroot opened this issue Nov 25, 2018 · 2 comments

Comments

@archenroot
Copy link

On large input file with words to train I get(the input csv file is actually just pure 1 column list):

zangetsu@venus: pts/11: 16 files 192Kb -> ./generate_compressor_model.py ~/tmp/csv-compress-string/my_events.csv -o shoco_model.h 
finding bigrams ... done.
Traceback (most recent call last):
  File "./generate_compressor_model.py", line 391, in <module>
    main()
  File "./generate_compressor_model.py", line 305, in main
    max_chr = ord(max(successors.keys())) + 1
TypeError: ord() expected string of length 1, but int found
@archenroot
Copy link
Author

Python 3 related...

@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