question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: '>=' not supported between instances of 'NoneType' and 'int'

See original GitHub issue

I’m getting this:

TypeError: '>=' not supported between instances of 'NoneType' and 'int'

when doing:

stock_recommendation = TA_Handler(
                  symbol=ticker,
                  screener=screener,
                  exchange=exchange,
                  interval=interv,
              )
              d_recommendation = stock_recommendation.get_analysis().summary

with ticker as PLTR. It works for others

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brian-the-devcommented, Apr 24, 2021

I’ll release the next version with a clear error message.

0reactions
cuongitlcommented, May 31, 2021

Quick fixed: modified ‘main.py’ from site-packages\tradingview_ta: IN line 80: def calculate(indicators, screener, symbol, exchange, interval): Replace line 85,86,87 with code:

    recommend_oscillators = "NEUTRAL"
    recommend_summary = "NEUTRAL"
    recommend_moving_averages = "NEUTRAL"
    if indicators[0] is not None:
        recommend_oscillators = Compute.Recommend(indicators[0])
    if indicators[1] is not None:
        recommend_summary = Compute.Recommend(indicators[1])
    if indicators[2] is not None:
        recommend_moving_averages = Compute.Recommend(indicators[2])

Good luck.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: '<' not supported between instances of 'NoneType ...
In Python 3 such comparisons raise a TypeError : ... TypeError: '>' not supported between instances of 'NoneType' and 'int' >>> None <...
Read more >
TypeError: '>' not supported between instances of 'NoneType ...
I am trying to disable button when Click untill to finish a process then enable again like the below process: user press button...
Read more >
'>' not supported between instances of 'NoneType' and 'int'
1. print() function returns None, so if initial guess is incorrect, in the body of while loop you assign None to num.
Read more >
'' not supported between instances of 'NoneType' and 'float ...
Pandas : TypeError : '' not supported between instances of 'NoneType ' and 'float' [ Beautify Your Computer ...
Read more >
' not supported between instances of 'NoneType' and 'str ...
TypeError : '<' not supported between instances of 'NoneType' and ... Only nframes is an int , and worst case it's set to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found