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

[Bug] Throws an error when selecting "All Stocks" (default) option for index screening #109

Closed dummifiedme closed 2 years ago

dummifiedme commented 2 years ago

Throws this error when going with default option image

Note: If we select anything other than that, the code seems to work fine :)

pranjal-joshi commented 2 years ago

Please try to run the code after 3.30 PM and let me know if it shows the same error. Your Network/ISP may have restricted access to Yahoo finance API which is used between 9.15 AM to 3.30 PM. Running script after 3.30/4 PM uses EoD data generated by Screenipy cloud.

pranjal-joshi commented 2 years ago

Also, Are you working behind any network proxy? It may restrict the software to reach the servers. It's the usual cause of this error because if you're using it on the computer provided by the organization, they might have configured it as a measure of cyber security. So, suggest using it on a personal PC without any proxy.

dummifiedme commented 2 years ago

Also, Are you working behind any network proxy?

I am on home network without any proxy.

Please try to run the code after 3.30 PM and let me know if it shows the same error.

Last time when I had tried it, it was deep into the night. And then too it had the same error. I will try again today, and let you know.

But why would it not look for "All stocks" while easily work for "Nifty 500"? All other options are working fine, except the "All stock" option.

dummifiedme commented 2 years ago

I checked just now, and still the same error.

Is there a diagnostic check that I can do to pin point the problem?

pranjal-joshi commented 2 years ago

I checked just now, and still the same error.

Is there a diagnostic check that I can do to pin point the problem?

For the time being, you have to clone the repo, set up the dependency requirements, and modified the code to check what's wrong. However, I will try to add a debug logging feature in the next feature.

As a workaround, you can wine on Linux to run screenipy.exe rather than bin file. Give it a try and keep me posted.

github-actions[bot] commented 2 years ago

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

dummifiedme commented 2 years ago

@pranjal-joshi any update on the issue?

pranjal-joshi commented 2 years ago

@pranjal-joshi any update on the issue?

Please try this and let me know. Because the same version is working on my end on Windows and Linux.

github-actions[bot] commented 2 years ago

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

pranjal-joshi commented 2 years ago

@dummifiedme

Have you got it working? Otherwise try downloading the latest release from the homepage.