Open marcinczeczko opened 3 years ago
Check what the default and preferred encodings are.
Run a python repl and the following lines
import sys
import locale
print(sys.getdefaultencoding())
print(locale.getpreferredencoding())
Compare your MacOS to Docker. I still haven't figured out why, but it doesn't give me the error when I manually set the encoding using this:
with open(filename, 'r', encoding='encoding_name') as f:
You'll have to modify helpers.py and maybe one other file.
I'd try something else because this repo looks abandoned
Hi, I tried to run both elastic & nboost as docker containers as follows
docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.4.2
docker run -d -p 8000:8000 koursaros/nboost:latest-pt --uhost host.docker.internal --uport 9200
However, when I tried to index
travel.csv
within the container it fails with the errordocker exec -it <nboost-container-nameorid> nboost-index --host=host.docker.internal --file /opt/conda/lib/python3.6/site-packages/nboost/resources/travel.csv --index_name travel --delim ,
But, If I run nboost on my macos the indexer for the same file works just fine.
Any ideas, what might went wrong ?