pranjal-joshi / Screeni-py

A Python-based stock screener to find stocks with potential breakout probability from NSE India.
MIT License
552 stars 195 forks source link

Getting below error while finding the similar stock #214

Closed hitendra123 closed 9 months ago

hitendra123 commented 10 months ago

2023-11-10 17:37:32 self.run() 2023-11-10 17:37:32 File "/usr/local/lib/python3.10/threading.py", line 953, in run 2023-11-10 17:37:32 self._target(*self._args, **self._kwargs) 2023-11-10 17:37:32 File "/opt/program/src/streamlit_app.py", line 93, in dummy_call 2023-11-10 17:37:32 screenipy_main(execute_inputs=execute_inputs) 2023-11-10 17:37:32 File "/opt/program/src/screenipy.py", line 375, in main 2023-11-10 17:37:32 for stock in listStockCodes] 2023-11-10 17:37:32 UnboundLocalError: local variable 'listStockCodes' referenced before assignment

pranjal-joshi commented 9 months ago

Fixed this in 78a27eafd3a6bde2d82785d30ef087c39ba0ab09 It was happening because of the lower version of sqlite3 was causing failure to init chromadb, thus skipping the piece of code that caused this variable referenced before the assignment Thanks for reporting the bug @hitendra123