This project has moved and is read-only. For the latest updates, please go here.


Error while using Ironpython rpyc.classic.upload_file()


I am trying to upload a .gz file from my local Windows machine (with iron python installed) to remote Linux machine.Using IronPython as python interpreter.

Python code works great with normal python (cpython) interpreter can upload .gz files. Initially I thought because of the size of my .gz it failed but I have tried uploading a large text file (45MB) that copies well with IronPython but .gz(400kb) fails. Am i missing something ?

Iron Python version 2.7


Python code
r= "10.xx.xx.130" #change this
conn = rpyc.classic.connect(r)
localfile= "C:\Drivers\ixgbe-"
remotepath= "/home/admin/Desktop/myfolder/ixgbe-"
rpyc.classic.upload_file(conn, localfile, remotepath)
Traceback (most recent call last): File
> "/usr/lib/python2.7/site-packages/rpyc-3.3.0-py2.7.egg/rpyc/core/",
> line 305, in _dispatch_request
> res = self._HANDLERShandler File "/usr/lib/python2.7/site-packages/rpyc-3.3.0-py2.7.egg/rpyc/core/",
> line 535, in _handle_call
> return self._local_objectsoid UnicodeEncodeError: 'ascii' codec can't encode character u'\x8b' in
> position 1: ordinal not in range(128)
Closed May 16, 2015 at 3:05 PM by slide_o_mix
Please use github for all issues