odwdinc / Python-SimConnect

Python interface for MSFS2020 SimConnect.dll
GNU Affero General Public License v3.0
277 stars 105 forks source link

TypeError RequestList.py #47

Closed Helpi90 closed 4 years ago

Helpi90 commented 4 years ago

Hey guys,

i have a problem with the RequestList.py. I cloned this repo and tried to execute local_example.py and glass_server.py.

Could someone help me?

Python version: 3.8.6 64Bit

Log:

python glass_server.py
Traceback (most recent call last):
  File "glass_server.py", line 14, in <module>
    aq = AircraftRequests(sm, _time=10)
  File "C:\Users\Michael\Desktop\Python-SimConnect\SimConnect\RequestList.py", line 192, in __init__
    self.EngineData = self.__AircraftEngineData(_sm, _time, _attemps)
TypeError: __init__() takes from 2 to 3 positional arguments but 4 were given

python local_example.py
INFO:__main__:START
DEBUG:SimConnect.SimConnect:Connected to Flight Simulator!
INFO:SimConnect.SimConnect:SIM OPEN
Traceback (most recent call last):
  File "local_example.py", line 15, in <module>
    aq = AircraftRequests(sm)
  File "C:\Users\Michael\Desktop\Python-SimConnect\SimConnect\RequestList.py", line 192, in __init__
    self.EngineData = self.__AircraftEngineData(_sm, _time, _attemps)
TypeError: __init__() takes from 2 to 3 positional arguments but 4 were given
odwdinc commented 4 years ago

There’s a bug, give me a few hours and all push a fix. Sorry for that, miss a line on the last update.

On Thu, Oct 1, 2020 at 4:55 AM Marc Helpenstein notifications@github.com wrote:

Hey guys,

i have a problem with the RequestList.py. I cloned this repo and tried to execute local_example.py and glass_server.py.

Could someone help me?

Python version: 3.8.6 64Bit

Log:

python glass_server.py

Traceback (most recent call last):

File "glass_server.py", line 14, in

aq = AircraftRequests(sm, _time=10)

File "C:\Users\Michael\Desktop\Python-SimConnect\SimConnect\RequestList.py", line 192, in init

self.EngineData = self.__AircraftEngineData(_sm, _time, _attemps)

TypeError: init() takes from 2 to 3 positional arguments but 4 were given

python local_example.py

INFO:main:START

DEBUG:SimConnect.SimConnect:Connected to Flight Simulator!

INFO:SimConnect.SimConnect:SIM OPEN

Traceback (most recent call last):

File "local_example.py", line 15, in

aq = AircraftRequests(sm)

File "C:\Users\Michael\Desktop\Python-SimConnect\SimConnect\RequestList.py", line 192, in init

self.EngineData = self.__AircraftEngineData(_sm, _time, _attemps)

TypeError: init() takes from 2 to 3 positional arguments but 4 were given

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/odwdinc/Python-SimConnect/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADU73T7U6AQUNNQA7DUU2TSIRU4VANCNFSM4SAKNENQ .

odwdinc commented 4 years ago

@Helpi90 Fixed in 0.4.13 The updated took a bit to download.