Ticket #136 (closed defect: fixed)

Opened 2 years ago

Last modified 10 months ago

Ipython1 chainsaw branch local import error on windows based remote server

Reported by: pep Assigned to: bgranger
Priority: normal Milestone: 0.9.0
Component: ipython1 Version:
Severity: normal Keywords:
Cc:

Description

First of all I must say what versions I'm using:

Ipython1 from chainsaw brach revision 2146 local Client (that instanciate the remote controller) is windows based remote server: 1 PC under windows2000 1PC under linux rh3.3

From the server side: Local import under linux works but under windows it doesn't works. I've attached 2 scripts: client.py that is on my local computer (that is windows based in this example) client.py open server.py and send it through the network via pushAll method (as a string). then it says to the remote servers to write the received file and tell them to import it. If remote server is linux based: it works. If remote server is windows2000 based: it fails.

1 : import ipython1.kernel.api as kernel 2 : rc = kernel.RemoteController?(('127.0.0.1',10105)) ... ... 3 : rc.executeAll('import myscript')

fails because myscript.py can't be found BUT myscript.py is present in the working directory

workaround :

4 : rc.executeAll('import os,sys') 5 : rc.executeAll('sys.path.append(os.path.abspath(os.path.curdir))') 6 : rc.executeAll('import myscript')

now works!

Change History

06/16/07 12:05:15 changed by bgranger

  • owner changed from fperez to bgranger.
  • component changed from chainsaw to saw.

This has also been seen on other platforms (Linux). Hmmmm.

06/16/07 12:05:23 changed by bgranger

  • status changed from new to assigned.

02/04/08 14:16:19 changed by bgranger

  • status changed from assigned to closed.
  • component changed from saw to ipython1.
  • resolution set to fixed.
  • milestone set to 0.9.0.