You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My environment is: Windows Vista, Python 3.4 and pyclibrary-0.1.4
D:\Works\Python\pyclibrary-0.1.4>py
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
from pyclibrary import CParser, CLibrary
p = CParser(cache=r'd:\Works\Python\pyclibrary-master\pyclibrary\headers\WinDefs.cache', check_cache_validity=False)
lib0 = CLibrary(r'c:\Windows\System32\Kernel32.dll', p, convention='windll')
lib0['functions']['GetModuleHandleW']
Type((Type(('HMODULE', 'stdcall'), type_quals=(('',), None)), (('lpModuleName', Type(('LPCWSTR',), type_quals=(('__',),)), None),)))
ret = lib0.GetModuleHandleW('user32.dll')
Traceback (most recent call last):
File "", line 1, in
File "D:\Works\Python\pyclibrary-0.1.4\pyclibrary\c_library.py", line 230, in getattr
obj = self(k, n)
File "D:\Works\Python\pyclibrary-0.1.4\pyclibrary\c_library.py", line 210, in call
self.objs[typ][name] = self.make_obj(typ, name)
File "D:\Works\Python\pyclibrary-0.1.4\pyclibrary\c_library.py", line 272, in make_obj
return self._get_function(n)
File "D:\Works\Python\pyclibrary-0.1.4\pyclibrary\c_library.py", line 338, in _get_function
func_name, self.lock_calls)
File "D:\Works\Python\pyclibrary-0.1.4\pyclibrary\c_library.py", line 413, in init
self.sig[1] = [s for s in sig[1] if s[1] != ('void',)]
IndexError: tuple index out of range
Best Regards,
Jach Fong
The text was updated successfully, but these errors were encountered:
Thanks for the report. I don't have access to a windows box currently. I will try to investigate when I do, hopefully before the end of August. Do not hesitate to ping me.
My environment is: Windows Vista, Python 3.4 and pyclibrary-0.1.4
D:\Works\Python\pyclibrary-0.1.4>py
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Best Regards,
Jach Fong
The text was updated successfully, but these errors were encountered: