Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Error while using Ironpython rpyc.classic.upload() #1201

Open
ArjunMurthy opened this issue May 15, 2015 · 0 comments
Open

Error while using Ironpython rpyc.classic.upload() #1201

ArjunMurthy opened this issue May 15, 2015 · 0 comments

Comments

@ArjunMurthy
Copy link

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

Thanks

Python code
r= "10.xx.xx.130" #change this
conn = rpyc.classic.connect(r)
localfile= "C:\Drivers\ixgbe-3.23.2.1.tar.gz"
remotepath= "/home/admin/Desktop/myfolder/ixgbe-3.23.2.1.tar.gz"
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/protocol.py",
> line 305, in _dispatch_request
> res = self._HANDLERS[handler](self, *args) File "/usr/lib/python2.7/site-packages/rpyc-3.3.0-py2.7.egg/rpyc/core/protocol.py",
> line 535, in _handle_call
> return self._local_objects[oid](*args, **dict%28kwargs%29) UnicodeEncodeError: 'ascii' codec can't encode character u'\x8b' in
> position 1: ordinal not in range(128)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants