[IronPython] Running IP Beta 7

Dino Viehland dinov at exchange.microsoft.com
Wed May 24 03:25:13 CEST 2006


Can you do:

print pASI.Z_Fm_Asig_Get.__doc__ ?

It's hard to tell what's going on w/o knowing the siganture of that method.  We did fix some bugs around calling params methods - so maybe this is a params method?

________________________________________
From: users-bounces at lists.ironpython.com On Behalf Of Paparipote .
Sent: Tuesday, May 23, 2006 6:04 PM
To: users at lists.ironpython.com
Subject: [IronPython] Running IP Beta 7

Hello:

Using IP 1.0 beta 6 I run the next program without problems:
.ironpythonconsole AsigPresupSAP.py
08:56:18 2006. Conectando con SAP......
08:56:19 2006. Ejecutando la funci?n.....
09:00:11 2006. Bajando los datos .....
09:00:11 2006. Paso 1.....
09:00:11 2006. Paso 2.....
09:00:11 2006. Regs.recogidos: 42769
.
.
.

After installing and running the same program under IP 1.0 beta 7 I get next
error:
.ironpythonconsole AsigPresupSAP.py
09:45:28 2006. Conectando con SAP......
09:45:28 2006. Ejecutando la funci?n.....
Traceback (most recent call last):
  File C:\IP\src\AsigPresupSAP.py, line 18, in Initialize
TypeError: Z_Fm_Asig_Get() takes exactly 6 arguments (5 given)

What do you suspect is happening?

The code is:
import time
import System
from System.IO import StreamWriter
import clr
print time.asctime()[10:] + ". Conectando con SAP......"
clr.AddReferenceToFile("SAPProxyE.dll")
#aso = System.Reflection.Assembly.LoadFrom('SAPProxyE.dll')
#System.Reflection.Assembly.LoadFrom('SAPProxyE.dll')
#clr.AddReference(aso)
#clr.AddReference("SAPProxyE.dll")
from SAPProxyE import *
#cs = 'ASHOST=.......'
cs = 'ASHOST=111.1.11.11 SYSNR=00 CLIENT=900 USER=xxx PASSWD=yyy
LANGUAGE=EN'
pASI = SAPProxy1(cs)
tASI = ZASIGTABTable()
print time.asctime()[10:] + u". Ejecutando la función....."
#exit
res = pASI.Z_Fm_Asig_Get("2006", "XXXX", "YYYY", "", tASI)  <- the error is
here!!!
.
.
.
.
etc


I never made changes to the .dlls invoked.

Many, many thanks for your attention.

_________________________________________________________________
Consigue aquí las mejores y mas recientes ofertas de trabajo en América
Latina y USA: http://latam.msn.com/empleos/

_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list