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 os.listd
> 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
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 "
> 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() an
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.
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
some_condition=Tru
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
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 loo
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 is
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, *a
Brilliant. Thanks
--
http://mail.python.org/mailman/listinfo/python-list
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
> > 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=expR
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). Ma
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 sy
15 matches
Mail list logo