Getting an error when using '--keywords' option in bulk
See original GitHub issueHello @koaning thanks for such a great library!
I am getting an error when I am using ‘–keywords’ option in the bulk. It works great, if I don’t use ‘–keywords’ option … I wonder what the cause is …
python -m bulk text ready2.csv --keywords “frozen”
About to serve bulk
over at http://localhost:5006/.
Uncaught exception GET / (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:5006’, method=‘GET’, uri=‘/’, version=‘HTTP/1.1’, remote_ip=‘::1’)
Traceback (most recent call last):
File “C:\Users\kiyi2001\Miniconda3\envs\SemanticMatching\lib\site-packages\tornado\web.py”, line 1713, in _execute
result = await result
File “C:\Users\kiyi2001\Miniconda3\envs\SemanticMatching\lib\site-packages\bokeh\server\views\doc_handler.py”, line 54, in get
session = await self.get_session()
File “C:\Users\kiyi2001\Miniconda3\envs\SemanticMatching\lib\site-packages\bokeh\server\views\session_handler.py”, line 144, in get_session
session = await self.application_context.create_session_if_needed(session_id, self.request, token)
File “C:\Users\kiyi2001\Miniconda3\envs\SemanticMatching\lib\site-packages\bokeh\server\contexts.py”, line 243, in create_session_if_needed
self._application.initialize_document(doc)
File “C:\Users\kiyi2001\Miniconda3\envs\SemanticMatching\lib\site-packages\bokeh\application\application.py”, line 194, in initialize_document
h.modify_document(doc)
File “C:\Users\kiyi2001\Miniconda3\envs\SemanticMatching\lib\site-packages\bokeh\application\handlers\function.py”, line 143, in modify_document
self._func(doc)
File “C:\Users\kiyi2001\Miniconda3\envs\SemanticMatching\lib\site-packages\bulk\text.py”, line 27, in bkapp
mapper, df = get_color_mapping(df)
File “C:\Users\kiyi2001\Miniconda3\envs\SemanticMatching\lib\site-packages\bulk\utils.py”, line 25, in get_color_mapping
palette=Category10[len(all_values)],
KeyError: 1
500 GET / (::1) 28.95ms
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
https://pypi.org/project/bulk/#history
The most recent version is v0.1.3, could you install that manually and try again?
Please share errors using the markdown blocks. Screenshots are horrible to copy/paste from and they also don’t show up in search results.
Will have a look tho! Thanks for reporting.