Error using --x52-pro with Run ... "ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert"

Issue #270 new
Anonymous created an issue

Brand-new install, so I may have got some things wrong ... I can get Run --check to give me a nice step-by-step output for a trade run, but if I try to output this onto my X52 Pro I get the following error:

e:\trade\kfsone-tradedangerous-c9bc653382e4>trade.py run --from rakapila/stone --credits 20000 --cap 16 --ly-per 8 -vv --hops 2 --check --x52-pro
Traceback (most recent call last):
  File "E:\trade\kfsone-tradedangerous-c9bc653382e4\trade.py", line 104, in <module>
    main(sys.argv)
  File "E:\trade\kfsone-tradedangerous-c9bc653382e4\trade.py", line 77, in main
    results = cmdenv.run(tdb)
  File "E:\trade\kfsone-tradedangerous-c9bc653382e4\commands\commandenv.py", line 73, in run
    self.checkMFD()
  File "E:\trade\kfsone-tradedangerous-c9bc653382e4\commands\commandenv.py", line 97, in checkMFD
    self.mfd = X52ProMFD()
  File "E:\trade\kfsone-tradedangerous-c9bc653382e4\mfd\__init__.py", line 76, in __init__
    self.doObj = x52pro.X52Pro()
  File "E:\trade\kfsone-tradedangerous-c9bc653382e4\mfd\saitek\directoutput.py", line 376, in __init__
    result = self.direct_output.RegisterSoftButtonCallback(self.device_handle, self.onSoftButton_closure)
  File "E:\trade\kfsone-tradedangerous-c9bc653382e4\mfd\saitek\directoutput.py", line 170, in RegisterSoftButtonCallback
    return self.DirectOutputDLL.DirectOutput_RegisterSoftButtonCallback(device_handle, function, 0)
ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert

This is with version 7.0.53.6 of the Saitek driver, and Python 3.6.1 (64-bit)

Comments (0)

  1. Log in to comment