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
Hi, I have a problem with Netbios function on Python 3.8
Expected behavior and actual behavior
I'm trying to get MAC-address using Netbios function from win32wnet module. But I get an error from library function:
Traceback (most recent call last):
File "D:/Dev/PyCharmProjects/mac_address.py", line 33, in <module>
print_mac_address()
File "D:/Dev/PyCharmProjects/mac_address.py", line 14, in print_mac_address
Netbios(ncb)
File "C:\Users\Casper\AppData\Local\Programs\Python\Python38\lib\site-packages\win32\lib\netbios.py", line 187, in Netbios
ob._pack()
File "C:\Users\Casper\AppData\Local\Programs\Python\Python38\lib\site-packages\win32\lib\netbios.py", line 219, in _pack
self._buffer_[:] = struct.pack(*(self._format,) + tuple(vals))
struct.error: argument for 's' must be a bytes object
Hi, I have a problem with Netbios function on Python 3.8
Expected behavior and actual behavior
I'm trying to get MAC-address using Netbios function from win32wnet module. But I get an error from library function:
Steps to reproduce the problem
I'm using this code:
Version of Python and pywin32
Python:
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
pywin32:
pywin32 v227
The text was updated successfully, but these errors were encountered: