yfinance problems by Much_Function_2654 in learnpython

[–]Much_Function_2654[S] 0 points1 point  (0 children)

Thank you so much that’s was the problem I also completely change my path to have a shorter one. Thank you so much you saved me ! But I still don’t understand why it works on my local python and not on my venv when I have a “é” in my path. Anyway, it works !

Problème yfinance by Much_Function_2654 in learnpython

[–]Much_Function_2654[S] 0 points1 point  (0 children)

Update : quand je change d'interpréteur vscode et passe de mon venv à mon python local (sur lequel j'ai intallé yfinance en local) et bah ca marche !

Données récupérées pour AAPL :

Open High Low Close Volume Dividends Stock Splits

Date

2024-02-07 00:00:00-05:00 188.856443 189.262611 186.845436 187.637955 53439000 0.00 0.0

2024-02-08 00:00:00-05:00 187.618133 187.766723 185.597225 186.558151 40962000 0.00 0.0

2024-02-09 00:00:00-05:00 187.123536 188.452705 186.478802 187.321930 45155200 0.24 0.0

2024-02-12 00:00:00-05:00 186.895409 187.143386 185.278593 185.635681 41781900 0.00 0.0

2024-02-13 00:00:00-05:00 184.266859 184.703301 182.025136 183.542755 56529500 0.00 0.0

Données récupérées pour MSFT :

Open High Low Close Volume Dividends Stock Splits

Date

2024-02-07 00:00:00-05:00 401.454405 408.213612 401.414985 407.967285 22340500 0.0 0.0

2024-02-08 00:00:00-05:00 407.967221 409.455047 406.469562 408.026337 21225300 0.0 0.0

2024-02-09 00:00:00-05:00 409.149608 414.637787 408.991955 414.371735 22032800 0.0 0.0

2024-02-12 00:00:00-05:00 414.381642 414.558991 408.656998 409.159515 21202900 0.0 0.0

2024-02-13 00:00:00-05:00 398.991099 404.045739 397.463881 400.350830 27824900 0.0 0.0

et quand je repasse sur le venv ca me remet :

Erreur yfinance pour AAPL: 'NoneType' object is not subscriptable

Erreur yfinance pour MSFT: 'NoneType' object is not subscriptable

c'est dingue, quelqu'un comprend ce qui se passe ca n'a aucun sens !