Christophe - 2009-01-04

Hello,

I try to use pysmb with python 2.5.
Everything work all right, i cant connect to my SMB share, i can read file, ...
But when i try to write file on share the following error message occur :

----------------
......
File "/home/data-heonium/developpement/git/epco-edi/bin/addons/hnm_epco/hnm_epco_edi/wizard/wizard_hnm_epco_edi.py", line 184, in _export_data
    if not tf_obj.dispatch(cfg,'upload'):
  File "/home/data-heonium/developpement/git/epco-edi/bin/addons/bifrost/bifrost_lib.py", line 225, in dispatch
    return method(data)
  File "/home/data-heonium/developpement/git/epco-edi/bin/addons/bifrost/bifrost_lib.py", line 177, in uploadSMB
    remote_netbios.stor_file(r_share, r_directory + '\\' + filename, fh.read, password = data['password'])
  File "/home/data-heonium/developpement/git/epco-edi/bin/addons/bifrost/smb.py", line 861, in stor_file
    self.__nonraw_stor_file(tid, fid, offset, datasize, callback, timeout)
  File "/home/data-heonium/developpement/git/epco-edi/bin/addons/bifrost/smb.py", line 578, in __nonraw_stor_file
    #print "** offset:",offset,"**:",unpack('<H', params[4+offset:6+offset])[0]
  File "/usr/lib/python2.5/struct.py", line 87, in unpack
    return o.unpack(s)
error: unpack requires a string argument of length 2
----------------

Is there anybody to help me

Regard