pysmb is an experimental SMB/CIFS library written in Python. It implements the client-side SMB/CIFS protocol (SMB1 and SMB2) which allows your Python application to access and transfer files to/from SMB/CIFS shared folders like your Windows file sharing and Samba folders.
I meet this problem, too. This is the code:
director = urllib.request.build_opener(SMBHandler)
fh = director.open('smb://{user}:{pwd}@192.168.1.25/Share/RCAPub.key'.format(user='administrator', pwd='xxx'))
I use pysmb 1.1.8 and python 2.7.9, 3.4.3 In python 2.7.9, it can connect to the smb server. but in python3.4.3, can't access smb server.
code andtrace back as follows:
I feel like a problem due to the conversion of the character code.