pylibftdi calling convension error

Issue #28 closed
Anonymous created an issue


My setup is a 64 bit WIN 10 PC, with Anaconda 32 bit version or a 64 bit WIN 7 PC, with Anaconda 64 bit. I have a relay board, which is based on the FtdiBitBangDUT.

The described error is not show on the WIN 7 setup!

On WIN 10 i get get an error when I try to open the device:

(sophiasystest) D:\Projects\Sophiadevtest\Test\SysTest\Sophia>python -v run setechocancelleron -N Running on: IT-02509 13:54:18.505 Using testprofile 'default' Test cases to be executed: ['sophia_tests.SophiaTests.testSetEchoCancellerOn'] ================================================================================ tests.sophia_tests.SophiaTests.testSetEchoCancellerOn 13:54:18.513 ---== Setting up ==--- 13:54:18.513 ---== Setting up ==--- 13:54:18.513 Initializing DUT power_relay ERROR Traceback (most recent call last): File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\devtest\core\", line 394, in run self.setUp() File "D:\Projects\Sophiadevtest\Test\SysTest\Sophia\tests\", line 29, in setUp super().setUp() File "D:\Projects\Sophiadevtest\Test\SysTest\Sophia\tests\", line 29, in setUp self.relay = DUTFactory.getDut('power_relay') File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\devtest\", line 66, in getDut DUTFactory._initDUT(dutId) File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\devtest\", line 179, in _initDUT File "D:\Projects\Sophiadevtest\Test\SysTest\Sophia\dut\", line 47, in open super().open(device) File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\devtestdut\ftdidut\", line 32, in open self._dev = ftdi.BitBangDevice(self._id) File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\pylibftdi\", line 60, in init File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\pylibftdi\", line 66, in open super(BitBangDevice, self).open() File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\pylibftdi\", line 163, in open self.driver._libusb.libusb_set_auto_detach_kernel_driver(dev, 1) ValueError: Procedure called with not enough arguments (8 bytes missing) or wrong calling convention

Ran 1 test in 0.150s

Comments (2)

  1. Log in to comment