hakril / PythonForWindows

A codebase aimed to make interaction with Windows and native execution easier
BSD 3-Clause "New" or "Revised" License
569 stars 114 forks source link

An error occurred from python2 to python3 #30

Closed WBGlIl closed 3 years ago

WBGlIl commented 3 years ago

image

File "D:\Python39\lib\site-packages\windows\rpc\ndr.py", line 404, in pack packed_member = member.pack(memberdata) File "D:\Python39\lib\site-packages\windows\rpc\ndr.py", line 279, in pack return struct.pack("<I", 0) + str(bytearray(data)) TypeError: can't concat str to bytes python-BaseException

hakril commented 3 years ago

Hello,

Indeed it's a bug, the fix (and tests) are present in 134bd844. Thank you for reporting it ! I am closing the issue, do not hesitate to reopen-it if you feel the issue is not fixed. Do not hesitate to open other issues if you encounter bugs or have ideas about improvements.