FTP/SSL

2007-06-06 Thread Nancy Head

I know basic Python, have basic experience using FTP... but haven't really
used the ftplib before. Am trying to read the 18.8 and 7.2 docs but
struggling.

I'm trying to figure out how to use FTP/SSL (FTPS) - just as a client. Can I
do this in Python? Is everything I need in ftplib? Where else do I look? And
- any good newbie references on using FTPS?

Thanks for any help...

Nancy
-- 
http://mail.python.org/mailman/listinfo/python-list

ceval.c no such file or dir and SIGSEGV

2006-04-05 Thread Nancy
Hi,

I'm running 2.4 Python. I have an extension program that calls C funcs.
Actually I have a C prog that calls python that calls C. In a python to
C function call I get a SIGSEGV and this stack trace. I have print
statements that show it made it into the C extension function, and
within there its crashing with this trace. gdb also puts up a popup
that says Python/ceval.c
No such file or directory.
Thanks.

 Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 7873)]
PyEval_EvalFrame (f=0x8472c8c) at ../Python-2.4/Python/ceval.c:899
in ../Python-2.4/Python/ceval.c
(gdb) where
#0  PyEval_EvalFrame (f=0x8472c8c) at
../Python-2.4/Python/ceval.c:899
#1  0x081f4611 in fast_function (func=0x0, pp_stack=0xbfffe304,
n=4, na=1, nk=0) at ../Python-2.4/Python/ceval.c:3629
#2  0x081f4174 in call_function (pp_stack=0xbfffe304, oparg=1) at
../Python-2.4/Python/ceval.c:3568
#3  0x081f26ba in PyEval_EvalFrame (f=0x847741c) at
../Python-2.4/Python/ceval.c:2163
#4  0x081f4611 in fast_function (func=0x0, pp_stack=0xbfffe434,
n=4, na=1, nk=0) at ../Python-2.4/Python/ceval.c:3629
#5  0x081f4174 in call_function (pp_stack=0xbfffe434, oparg=1) at
../Python-2.4/Python/ceval.c:3568
#6  0x081f26ba in PyEval_EvalFrame (f=0x8476b6c) at
../Python-2.4/Python/ceval.c:2163
#7  0x081f4611 in fast_function (func=0x0, pp_stack=0xbfffe564,
n=4, na=1, nk=0) at ../Python-2.4/Python/ceval.c:3629
#8  0x081f4174 in call_function (pp_stack=0xbfffe564, oparg=1) at
../Python-2.4/Python/ceval.c:3568
#9  0x081f26ba in PyEval_EvalFrame (f=0x84724bc) at
../Python-2.4/Python/ceval.c:2163
#10 0x081f4611 in fast_function (func=0x0, pp_stack=0xbfffe694,
n=4, na=1, nk=0) at ../Python-2.4/Python/ceval.c:3629
#11 0x081f4174 in call_function (pp_stack=0xbfffe694, oparg=1) at
../Python-2.4/Python/ceval.c:3568
#12 0x081f26ba in PyEval_EvalFrame (f=0x848f65c) at
../Python-2.4/Python/ceval.c:2163
#13 0x081f4611 in fast_function (func=0x0, pp_stack=0xbfffe7c4,
n=4, na=1, nk=0) at ../Python-2.4/Python/ceval.c:3629
#14 0x081f4174 in call_function (pp_stack=0xbfffe7c4, oparg=1) at
../Python-2.4/Python/ceval.c:3568
#15 0x081f26ba in PyEval_EvalFrame (f=0x846b5fc) at
../Python-2.4/Python/ceval.c:2163
#16 0x081f4611 in fast_function (func=0x0, pp_stack=0xbfffe8f4,
n=4, na=1, nk=0) at ../Python-2.4/Python/ceval.c:3629
#17 0x081f4174 in call_function (pp_stack=0xbfffe8f4, oparg=1) at
../Python-2.4/Python/ceval.c:3568
#18 0x081f26ba in PyEval_EvalFrame (f=0x848ea1c) at
../Python-2.4/Python/ceval.c:2163
#19 0x081f4611 in fast_function (func=0x0, pp_stack=0xbfffea24,
n=4, na=1, nk=0) at ../Python-2.4/Python/ceval.c:3629
#20 0x081f4174 in call_function (pp_stack=0xbfffea24, oparg=1) at
../Python-2.4/Python/ceval.c:3568
#21 0x081f26ba in PyEval_EvalFrame (f=0x848dddc) at
../Python-2.4/Python/ceval.c:2163
#22 0x081f4611 in fast_function (func=0x0, pp_stack=0xbfffeb54,
n=4, na=1, nk=0) at ../Python-2.4/Python/ceval.c:3629
#23 0x081f4174 in call_function (pp_stack=0xbfffeb54, oparg=1) at
../Python-2.4/Python/ceval.c:3568
#24 0x081f26ba in PyEval_EvalFrame (f=0x847959c) at
../Python-2.4/Python/ceval.c:2163
#25 0x081f30fe in PyEval_EvalCodeEx (co=0x402dcca0, globals=0x1,
locals=0x0, args=0x4032e970, argcount=3, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at ../Python-2.4/Python/ceval.c:2730
#26 0x0824c8e9 in function_call (func=0x4031ee2c, arg=0x4032e964,
kw=0x0) at ../Python-2.4/Objects/funcobject.c:550
#27 0x081a86c9 in PyObject_Call (func=0x8472c8c, arg=0x1, kw=0x1)
at ../Python-2.4/Objects/abstract.c:1746
#28 0x081f4005 in PyEval_CallObjectWithKeywords (func=0x1,
arg=0x4032e964, kw=0x0) at ../Python-2.4/Python/ceval.c:3419
#29 0x081a8690 in PyObject_CallObject (o=0x1, a=0x1) at
../Python-2.4/Objects/abstract.c:1737
#30 0x080ce555 in pyGraphResolvePoint (funcIndex=1, sim=0,
field_name=0x825c17c "signal", x=2.2002,
y=7.2002, point=0xbfffed38) at pygraph.c:94
#31 0x080c1058 in graphNodeResolvePoint (sim=0, fieldName=0x825c17c
"signal", x=2.2002, y=7.2002) at graph.c:57
#32 0x0807a7a6 in fibs_pointEval (sim=0, pointname=0x825c17c
"signal", pos={x = 2.2002, y = 7.2002}) at
libfibs.c:386
#33 0x0807b03f in libfibsTest (xmdlpath=0x825bd58 "xmdl.test",
x=2.2002, y=7.2002) at libfibs.c:716
#34 0x08079c01 in main () at libfibsTest.c:8
#35 0x40186507 in __libc_start_main (main=0x8079bc8 , argc=1,
ubp_av=0xbfffeeb4, init=0x80789cc <_init>, fini=0x825bd20 <_fini>,
rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbfffeeac) at
../sysdeps/generic/libc-start.c:129
(gdb) Quit
(gdb)

-- 
http://mail.python.org/mailman/listinfo/python-list


LONG_BIT PROBLEM on Sun Solaris 5.8 linking python

2006-03-22 Thread Nancy
I know there are lots of messages about this already posted but Im
seeing this on Solaris 5.8. Sunfire
I'm using the sun compiler. All the other messages blamed it on linux
red hat gcc compilers and glib.  Thanks.

"/depot/Python-2.4/include/python2.4/pyport.h", line 612: #error:
"LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).

-- 
http://mail.python.org/mailman/listinfo/python-list


python linking

2006-03-22 Thread Nancy
When i link with python2.4.a i get this error.

ld: Dwarf Error: Invalid or unhandled FORM value: 14.

I am NOT  using the gcc compiler but the linux icc compiler. Google
hits blame it on gcc compiler binutils being out of date. i dont think
thats the problem here.
thanks.

-- 
http://mail.python.org/mailman/listinfo/python-list