Closed StephanSalas closed 4 years ago
In config.py, set these two lines to:
elasticsearch_host = "elasticsearch"
elasticsearch_port = 9200
I think you missed step 2 https://github.com/shirosaidev/stocksight#how-to-use
copy config.py.sample to config.py
config.py is the config file for stocksight
@shirosaidev I think I mistyped that port environment variable, but my eyes didn't catch it. Sorry for the confusion on that one.
On the flipside, any features that you're looking to fulfill in the future? I'm an experienced software engineer in Java/Python, working in the financial services sector on data infrastructure.
dm me @shirosai on the stocksight Slack workspace after you've tried out stocksight and have any new feature ideas.
System Information: OS: Windows 10 Professional Docker Version: 19.0.8 Python Version: 3.7.2
Expected Behavior:
Actual Behavior
Temporary Resolution I hard-coded the port on line 800 of sentiment.py: es = Elasticsearch(hosts=[{'host': elasticsearch_host, 'port': 9200}],
This seemed to fix the issue for my docker setup. I'm not sure why it's not pulling that port number from the config.yml on my end, but it seems to pull the other config.json imported variables just fine. I suspect is might have something to do with variables named similarly in different places, but I haven't done analysis to conclude that's exactly the problem.
I will try to do submit pull request if I get a moment to look into this and find a more permanent resolution.