hankhank10 / MSFS2020-cockpit-companion

Web wrapper for reading and writing data from Microsoft Flight Simulator 2020
https://msfs2020.cc
GNU General Public License v3.0
114 stars 26 forks source link

AttributeError: 'AircraftRequests' object has no attribute 'EnvironmentData' #12

Open douxyeti opened 2 years ago

douxyeti commented 2 years ago

I cant go past this error when running the script.

Traceback (most recent call last): File "C:\Users\mario\Desktop\Nouveau dossier\MSFS2020-cockpit-companion-master\MSFS2020-cockpit-companion-master\glass_server.py", line 14, in aq = AircraftRequests(sm, _time=10) File "C:\Users\mario\AppData\Local\Programs\Python\Python39\lib\site-packages\SimConnect\RequestList.py", line 214, in init self.list.append(self.EnvironmentData) AttributeError: 'AircraftRequests' object has no attribute 'EnvironmentData'

What do I miss? Thanks for the help

bigsby-exe commented 2 years ago

I had a similar issue with the exact same error message. For me the fix has been to install SimConnect version 0.4.24 rather than the latest version of 0.4.25

Link to my issue on the topic: Python-SimConnect/issues/115

Day0Dreamer commented 2 years ago

+1 having the same issue