pysftp connection not sending files, hanging on 'put'

2015-01-24 Thread Jules Stevenson
Hi List, I'm trying to send some files via pysftp, authentication seems fine, but actually putting the file results in it hanging, doing nothing. The files are small (200kb) so I don't believe it's an upload issue (internet access is fine). Eventually the connection times out. Code: if

Pickle error, vista 64, 2.61b

2009-03-20 Thread Jules Stevenson
Hi List, I'm getting the following error from the pickle module: F = os.path.join(render_map_path,'sizes.pkl') Pickle_mat = pickle.load(f) # ERROR : Traceback (most recent call last): # File Script Block , line 398, in unity_bake_Execute # pickle_mat = pickle.load(f) # File

RE: Pickle error, vista 64, 2.61b

2009-03-20 Thread Jules Stevenson
F = os.path.join(render_map_path,'sizes.pkl') Pickle_mat = pickle.load(f) Quickly realised I'm passing a string, not a file object. Apologies for the noise. -- http://mail.python.org/mailman/listinfo/python-list

reading stdout from a running win32 process

2009-01-06 Thread Jules Stevenson
Hi list, I'm launching a process from windows using the demo 'winprocess' from the win32 extensions. I want to be able to record the output of the process as it runs and display it elsewhere. If I use the following [very bad] code: import winprocess import tempfile import time

read pipe information on a running (popen) process

2009-01-06 Thread Jules Stevenson
Hi, I'm really struggling with how to read the stdout on a running process. All the examples I've seen tend to rely on waiting for the process to finish. The process I'm running takes a while and I need to get stdout [and stderr] and be able to pipe them into a string for displaying in a web app.

RE: read pipe information on a running (popen) process

2009-01-06 Thread Jules Stevenson
Which results in it printing (i think) the last line written to the pipe file. I'm thinking there must be a simpler way to access this information. Ideally I'd like to dump the whole lot to a string at periodic intervals but am completely stumped as to how to do this as readlines() and many

for loop specifying the amount of vars

2008-11-24 Thread Jules Stevenson
Hi, I have a list which contains a folder structure, for instance: dirs=['c:\', 'temp', 'foo', 'bar'] The length of the list can vary. I'd like to be able to construct a os.path.join on the list, but as the list can vary in length I'm unsure how to do this neatly. I figured I could use a for

RE: for loop specifying the amount of vars

2008-11-24 Thread Jules Stevenson
Sorry for the noise, I found the * unpack operator. Perfect for what I need. Hi, I have a list which contains a folder structure, for instance: dirs=['c:\', 'temp', 'foo', 'bar'] The length of the list can vary. I'd like to be able to construct a os.path.join on the list, but as the

paster 64bit windows compile

2008-10-23 Thread Jules Stevenson
Hello all, I've been tearing my hair out trying to get pylon installed most of the day, and it seems that both setup tools and paster.exe have some serious issues with 64bit on windows. Unfortunately I'm stuck with 2.6 64bit. I think I've got it nearly all up and running, the biggest problem

dynamically created names / simple problem

2008-03-25 Thread Jules Stevenson
Hello all, I'm fairly green to python and programming, so please go gently. The following code for display in secondary: self.(so_active_+display) = wx.CheckBox(self.so_panel, -1, checkbox_2) Errors, because of the apparent nastyness at the beginning. What I'm trying to do is

RE: dynamically created names / simple problem

2008-03-25 Thread Jules Stevenson
Brilliant. Thanks -- http://mail.python.org/mailman/listinfo/python-list

setattr what is the parent object?

2008-03-25 Thread Jules Stevenson
I'm trying to use setattr to dynamically name and layout gui wx widgets, this is all fine and dandy until I've run up against something where I simply don't know what the object is, please see the amended **don't know** in the following code. class MyFrame2(wx.Frame): def __init__(self,

FW: Escaping a triple quoted string' newbie question

2008-03-02 Thread Jules Stevenson
Hello, Apologies if the terminology in this email is a little incorrect, I'm still finding my feet. I'm using python to generate some script for another language (MEL, in maya, specifically expressions). Maya runs python too, but unfortunately its expression language still has to use the maya

RE: Escaping a triple quoted string' newbie question

2008-03-02 Thread Jules Stevenson
Sorry, original post got a bit mangled, which didn't help the explanation at all, reposted stuff: Apologies if the terminology in this email is a little incorrect, I'm still finding my feet. I'm using python to generate some script for another language (MEL, in maya, specifically expressions).

RE: Escaping a triple quoted string' newbie question

2008-03-02 Thread Jules Stevenson
float $pos[]=particleShape1.worldPosition; setAttr (heartPP_1_+particleShape1.particleId+.tx) $pos[0]; setAttr (heartPP_1_+particleShape1.particleId+.ty) $pos[1]; setAttr (heartPP_1_+particleShape1.particleId+.tz) $pos[2]; dynExpression (p, s=expRuntime, rad=1) #generate