[IronPython] Building stand alone executable

2008-08-27 Thread cephire
Hi: The program that I've written works well when using the ipy command. I tried to compile it as a standalond executable using pyc.py. It produces an executable without any error. When I try to execute the executable, nothing happens; There is no error message; nothing. How can I debug? How can I

Re: [IronPython] Building stand alone executable

2008-08-27 Thread Michael Foord
cephire wrote: Hi: The program that I've written works well when using the ipy command. I tried to compile it as a standalond executable using pyc.py. It produces an executable without any error. When I try to execute the executable, nothing happens; There is no error message; nothing. How can I

Re: [IronPython] Building from source

2008-08-27 Thread hellosticky
Hi Michael, thanks. I'll be getting VS 2008 hopefully in a week or two. By the way, would you be able to build yours with a strong name? Thanks, -Original Message- From: Michael Foord [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 5:48 AM To: [EMAIL PROTECTED];

Re: [IronPython] Building from source

2008-08-27 Thread Michael Foord
hellosticky wrote: Hi Michael, thanks. I'll be getting VS 2008 hopefully in a week or two. By the way, would you be able to build yours with a strong name? No idea. :-) Can try, but not from here as I don't have VS 2008 at work. Michael Thanks, -Original Message- From:

Re: [IronPython] Building from source

2008-08-27 Thread Curt Hagenlocher
You need a certificate to sign the assembly if you want a strong name -- and of course any certificate that Michael has or generates won't have the same key signature as the certificate we use to sign here. For IronRuby, we've modified the export script so that building from source will no longer

Re: [IronPython] Building from source

2008-08-27 Thread hellosticky
I can't even run DLR/IronPython without a strong name, so that'd be nice :). I actually don't really mind signing them myself for now _ From: Curt Hagenlocher [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 10:04 AM To: [EMAIL PROTECTED]; Discussion of IronPython Subject:

Re: [IronPython] Building stand alone executable

2008-08-27 Thread cephire
Thank you. I built as console and I get an error no module named logging. I am using IPCE-r7. i'm importing logging using import logging. and as i said before it works fine when i invoke using ipy mainform.py. Joseph On Aug 27, 6:18 pm, Michael Foord [EMAIL PROTECTED] wrote: cephire wrote:

Re: [IronPython] Building from source

2008-08-27 Thread Dave Fugate
Hi, the source updates to CodePlex's TFS repository and the source zip files should not even include the ability to delay-sign assemblies. I've just verified this is still the case with the update to CodePlex yesterday. Which IronPython binaries are you trying to run and what error message

Re: [IronPython] Building from source

2008-08-27 Thread hellosticky
Hi Dave, I was using a build from last night's source by Michael Foord. They didn't have a PublicKeyToken and in VS 2005 I got the error: error CS1577: Assembly generation failed -- Referenced assembly 'Microsoft.Scripting' does not have a strong name Can I use your MSBuild (using 3.5) to

Re: [IronPython] Building from source

2008-08-27 Thread Dave Fugate
Yes, .NET 3.5's msbuild can be used to generate IronPython (2.x) binaries that will run under .NET 2.0 SP1 in the manner I showed below. This is what we use for generating IronPython Alpha/Beta/etc releases. Please note that you won't be able to run IronPython 2.x without SP1 of .NET 2.0 (or

Re: [IronPython] Building from source

2008-08-27 Thread hellosticky
Thanks Dave, I have SP1 and I'll figure out how to build 2.x binaries with 3.5. Do you have any idea about: error CS1577: Assembly generation failed -- Referenced assembly 'Microsoft.Scripting' does not have a strong name Thanks, _ From: Dave Fugate [mailto:[EMAIL PROTECTED]

[IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Vernon Cole
I've hit my next sticking point in porting adodbapi. code snippit try: import win32com.client def Dispatch(dispatch): return win32com.client.Dispatch(dispatch) win32 = True except ImportError: # implies running on IronPython from System import Activator, Type def

Re: [IronPython] Building stand alone executable

2008-08-27 Thread Michael Foord
cephire wrote: Thank you. I built as console and I get an error no module named logging. I am using IPCE-r7. i'm importing logging using import logging. and as i said before it works fine when i invoke using ipy mainform.py. logging is a Python standard library module. IPCE includes the

Re: [IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Curt Hagenlocher
On Wed, Aug 27, 2008 at 12:17 PM, Vernon Cole [EMAIL PROTECTED] wrote: We can't pass the ra parameter in python, so pywin32 returns a tuple with the recordset and the number of records. How do I retrieve the number of records (for a non-row-returning query) in Iron? Presumably, Execute

[IronPython] creatiing .exe file with ipy.exe v. 1.1

2008-08-27 Thread Vadim Khaskel
Here is the command line output: C:\Pycipy.exe pyc.py /main:Program.py Form1.py help.py routineM.py /target:winexe /r:System.Drawing /r:System.Windows.FormsInput Files: Program.pyForm1.pyhelp.pyroutineM.pyResource Files:Output:Program.exeTarget:

Re: [IronPython] creatiing .exe file with ipy.exe v. 1.1

2008-08-27 Thread Michael Foord
Vadim Khaskel wrote: Here is the command line output: C:\Pycipy.exe pyc.py /main:Program.py Form1.py help.py routineM.py /target:winexe /r:System.Drawing /r:System.Windows.F orms Input Files: Program.py Form1.py help.py routineM.py Resource Files: Output:

Re: [IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Shri Borde
Using clr.Reference[int] should work if ra is an in-out (VT_BYREF) parameter. Note that not many OleAut APIs use VT_BYREF. Jscript does not support in-out parameters and the API would not be usable form Jscript. We do have the option of returning a tuple with the recordset and the number of

Re: [IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Vernon Cole
code if win32: adoRetVal=self.cmd.Execute() else: #Iron Python ra = clr.Reference[int]() adoRetVal=[self.cmd.Execute(ra)] # return a list like win32 adoRetVal.append(ra.Value) /code Works great! Unit tests passed. Thank you! -- Vernon

[IronPython] What is .AppendChunk expecting?

2008-08-27 Thread Vernon Cole
Dear miracle workers: This may actually be the last failed unittest for adodbapai. Progress has been remarkable. Can you help with one more? Situation: filling in the parameter list for an ADO execute. The second parameter (parameter 1) is a python buffer to be loaded into a binary(4) column.

Re: [IronPython] What is .AppendChunk expecting?

2008-08-27 Thread Curt Hagenlocher
This will probably need to be a string. I don't think we do any automatic conversions of buffer objects for CLR or COM calls. On Wed, Aug 27, 2008 at 6:28 PM, Vernon Cole [EMAIL PROTECTED] wrote: Dear miracle workers: This may actually be the last failed unittest for adodbapai. Progress has

Re: [IronPython] What is .AppendChunk expecting?

2008-08-27 Thread Vernon Cole
I tried both p.AppendChunk(str(elem)) and p.AppendChunk(unicode(elem)) both of which work, but then the execution fails with: console output File C:\Program Files\IronPython 2.0 Beta4\lib\site-packages\adodbapi\adodbapi.py, line 675, in _executeHelper rs = self.cmd.Execute(ra)

Re: [IronPython] What is .AppendChunk expecting?

2008-08-27 Thread Curt Hagenlocher
Two more ideas: 1) Try passing a list of numbers. You can trivially get this from the buffer by saying a = map(lambda c: ord(c), buf) 2) Try passing a BCL array of bytes. This is almost as easy: import System a = System.Array[System.Byte](map(lambda c: ord(c), b)) On Wed, Aug 27, 2008 at 7:36

Re: [IronPython] What is .AppendChunk expecting?

2008-08-27 Thread Vernon Cole
On Wed, Aug 27, 2008 at 9:50 PM, Curt Hagenlocher [EMAIL PROTECTED]wrote: Two more ideas: 1) Try passing a list of numbers. You can trivially get this from the buffer by saying a = map(lambda c: ord(c), buf) 2) Try passing a BCL array of bytes. This is almost as easy: import System a =