-
Six months ago I started with this genius of FastF1 and python, and after a few months, I already have several routines that worked perfectly until I upgraded to version 2.3. even with this code: session = fastf1.get_session(2022,6,'R') since then I have been unable to avoid the following error File "F:\F1\FastF1-COD\Untitled2.py", line 42, in AttributeError: 'session' object has no attribute 'load' Could you please tell me how to load the df laps? session.load(laps=True, telemetry=True, weather=None, messages=True, livedata=None) How do it now? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Seeing the requests of other users, I enlarge one of my specific cases, all with the same problem, which I obviously did not have before. import fastf1 as ff1 ff1.Cache.enable_cache("F:/F1/2022/GGPP/CACHE") Session.load(laps=True, telemetry=True, weather=True, messages=True, livedata=None) laps=Session.laps and this as result in console: Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] File "F:\F1\FastF1-COD\untitled0.py", line 26, in AttributeError: 'Session' object has no attribute 'load' I hope to help someone who can enlighten me thank you |
Beta Was this translation helpful? Give feedback.
-
of course 👍 Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] IPython 7.29.0 -- An enhanced Interactive Python. runfile('C:/Users/McH_JCG/.spyder-py3/temp.py', wdir='C:/Users/McH_JCG/.spyder-py3') |
Beta Was this translation helpful? Give feedback.
-
Thanks theOehrly, your indication about what version of Fastf1 I had installed, has led me to uninstall it (pip uninstall fastf1), close Anaconda, reopen the environment and reinstall fastf1 again, this time without added indications like version==2.3, ( pip install fastf1). THANK YOU VERY MUCH, especially for the interest and speed of response. (and because everything has ended well, juas). |
Beta Was this translation helpful? Give feedback.
Thanks theOehrly, your indication about what version of Fastf1 I had installed, has led me to uninstall it (pip uninstall fastf1), close Anaconda, reopen the environment and reinstall fastf1 again, this time without added indications like version==2.3, ( pip install fastf1).
After installing successfully, as the process itself indicates, I went back to my routines and... "voilá", they work perfectly (I think, hehehehe).
THANK YOU VERY MUCH, especially for the interest and speed of response. (and because everything has ended well, juas).