pranjal-joshi / Screeni-py

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

Exception at active_bar #72

Closed avinayshah closed 2 years ago

avinayshah commented 3 years ago

Describe the bug Downloaded the latest code and did pip install -r requirements.txt and when running the screenipy.py with any individual stock or group of stock, I see an exception. While debugging I found that while executing with alive_bar there seems to be an exception.

with alive_bar(numStocks, bar=bar, spinner=spinner) as progressbar: while numStocks: result = results_queue.get() if result is not None: screenResults = screenResults.append( result[0], ignore_index=True) saveResults = saveResults.append( result[1], ignore_index=True) numStocks -= 1 progressbar.text(colorText.BOLD + colorText.GREEN + f'Found {screenResultsCounter.value} Stocks' + colorText.END) progressbar() except KeyboardInterrupt:

avinayshah commented 3 years ago

@pranjal-joshi help is appreciated. Thanks in advance.

pranjal-joshi commented 3 years ago

Describe the bug Downloaded the latest code and did pip install -r requirements.txt and when running the screenipy.py with any individual stock or group of stock, I see an exception. While debugging I found that while executing with alive_bar there seems to be an exception.

with alive_bar(numStocks, bar=bar, spinner=spinner) as progressbar: while numStocks: result = results_queue.get() if result is not None: screenResults = screenResults.append( result[0], ignore_index=True) saveResults = saveResults.append( result[1], ignore_index=True) numStocks -= 1 progressbar.text(colorText.BOLD + colorText.GREEN + f'Found {screenResultsCounter.value} Stocks' + colorText.END) progressbar() except KeyboardInterrupt:

Please post the exception thrown.

avinayshah commented 3 years ago

@pranjal-joshi image

pranjal-joshi commented 3 years ago

Make sure that you've installed it correctly. Run pip install alive-progress.

If the error persist, share the traceback of exception thrown in the terminal.

avinayshah commented 3 years ago

I believe it is installed. image

I commented the dots_recur to let it use the waves and it seem to not throw the error image

pranjal-joshi commented 3 years ago

Read the alive progress documentation. Choose the spinner animation that works with your OS. If you're planning to use it for Screening instead of modifying the features, you can download the screenipy.exe from the Release section to save the hassle of dependency installation.

github-actions[bot] commented 2 years ago

This Issue is marked as Stale due to Inactivity. This Issue will be Closed soon.