pylibftdi calling convension error

Issue #28 closed
Anonymous created an issue

Hi

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 test.py -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\case.py", line 394, in run self.setUp() File "D:\Projects\Sophiadevtest\Test\SysTest\Sophia\tests\sophia_tests.py", line 29, in setUp super().setUp() File "D:\Projects\Sophiadevtest\Test\SysTest\Sophia\tests\sophia_base.py", line 29, in setUp self.relay = DUTFactory.getDut('power_relay') File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\devtest\dutfactory.py", line 66, in getDut DUTFactory._initDUT(dutId) File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\devtest\dutfactory.py", line 179, in _initDUT dutInstance.open(device) File "D:\Projects\Sophiadevtest\Test\SysTest\Sophia\dut\powerrelaydut.py", line 47, in open super().open(device) File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\devtestdut\ftdidut\ftdibitbangdut.py", line 32, in open self._dev = ftdi.BitBangDevice(self._id) File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\pylibftdi\bitbang.py", line 60, in init self.open() File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\pylibftdi\bitbang.py", line 66, in open super(BitBangDevice, self).open() File "C:\Anaconda3\envs\sophiasystest\lib\site-packages\pylibftdi\device.py", 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