Giter Site home page Giter Site logo

ironclad's People

ironclad's Issues

Idiotic list reallocation strategy

If an extension were to start with an empty list, and repeatedly
PyList_Append to it, we would waste an awful lot of time reallocating
memory. CPython does it much better.

Original issue reported on code.google.com by [email protected] on 28 Jan 2009 at 3:33

Objects deleted with refcount 3

Whenever I look into one of these, it's due to 2 GC-eligible bridge objects, 
one of which has an 
unmanaged ref to the other, getting disposed in the wrong order*. Still, it's 
not very nice to see the 
complaint messages, and I'm paranoid enough not to want to switch them off.

* if one has an unmanaged ref to the other, at least one shouldn't actually be 
GC-eligible; however, 
this appears to be one of those serendipitous cases where my logic is clearly 
wrong but ends up 
doing the right thing anyway.

Original issue reported on code.google.com by [email protected] on 29 Jan 2009 at 11:12

Error reporting

If we were to create suitably minimal implementations of:

PyCode_New
PyFrame_New
PyThreadState_Get
PyTraceBack_Here

...we might get slightly better behaviour from Pyrex-generated extensions
when they try to complain about errors. (see __Pyx_AddTraceback)

Original issue reported on code.google.com by [email protected] on 27 Jan 2009 at 5:43

Development IronPython chokes on IronClad Import

What steps will reproduce the problem?
1. I'm running IronPython Development #66068
2. on command line ipy >> import ironclad
3. __init__.py file chokes on 
Line 24 >> _mapper = PythonMapper(os.path.join(_dirname, "python26.dll"))

What is the expected output? What do you see instead?

IronPython 2.6 DEBUG (2.6.10920.0) on .NET 2.0.50727.4927
Type "help", "copyright", "credits" or "license" for more information.
>>> import ironclad
C:\Program Files (x86)\IronPython 2.6\Lib\ironclad
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files (x86)\IronPython 2.6\Lib\ironclad\__init__.py", 
line 25
, in <module>
IOError: System.IO.FileLoadException: A strongly-named assembly is 
required. (Ex
ception from HRESULT: 0x80131044)
   at System.Signature._GetSignature(SignatureStruct& signature, Void* 
pCorSig,
Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr 
declaringTypeHand
le)
   at System.Signature.GetSignature(SignatureStruct& signature, Void* 
pCorSig, I
nt32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle 
methodHandle,
RuntimeTypeHandle declaringTypeHandle)
   at System.Signature..ctor(RuntimeMethodHandle methodHandle, 
RuntimeTypeHandle
 declaringTypeHandle)
   at System.Reflection.RuntimeConstructorInfo.get_Signature()
   at System.Reflection.RuntimeConstructorInfo.get_CallingConvention()
   at 
Microsoft.Scripting.Actions.Calls.ReflectionOverloadInfo.get_CallingConven
tion()
   at Microsoft.Scripting.Actions.Calls.OverloadResolver.IsUnsupported
(OverloadI
nfo method)
   at Microsoft.Scripting.Actions.Calls.OverloadResolver.BuildCandidateSets
(IEnu
merable`1 methods)
   at Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload
(String
methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel 
maxLevel)
   at Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload
(String
methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel 
maxLevel)
   at Microsoft.Scripting.Actions.DefaultBinder.CallMethod
(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions, String 
name, Nar
rowingLevel minLevel, NarrowingLevel maxLevel, BindingTarget& target)
   at Microsoft.Scripting.Actions.DefaultBinder.CallMethod
(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions, String 
name)
   at Microsoft.Scripting.Actions.DefaultBinder.CallMethod
(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions)
   at IronPython.Runtime.Binding.MetaPythonType.MakeStandardDotNetTypeCall
(Dynam
icMetaObjectBinder call, Expression codeContext, DynamicMetaObject[] args)
   at IronPython.Runtime.Binding.MetaPythonType.InvokeWorker
(DynamicMetaObjectBi
nder call, DynamicMetaObject[] args, Expression codeContext)
   at IronPython.Runtime.Binding.MetaPythonType.Invoke(PythonInvokeBinder 
python
Invoke, Expression codeContext, DynamicMetaObject target, DynamicMetaObject
[] ar
gs)
   at IronPython.Runtime.Binding.PythonInvokeBinder.BindWorker
(DynamicMetaObject
 context, DynamicMetaObject target, DynamicMetaObject[] args)
   at IronPython.Runtime.Binding.PythonInvokeBinder.Bind(DynamicMetaObject 
targe
t, DynamicMetaObject[] args)
   at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, 
ReadOnlyCollect
ion`1 parameters, LabelTarget returnLabel)
   at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T]
(CallSite`1 site
, Object[] args)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet]
(CallSite s
ite, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite 
site, Co
deContext context, Object func, T0 arg0)
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run
(InterpretedF
rame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame 
frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)
   at IronPython.Runtime.PythonContext.InitializeModule(String fileName, 
ModuleC
ontext moduleContext, ScriptCode scriptCode, ModuleOptions options)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName, 
String mod
uleName, SourceUnit sourceCode, ModuleOptions options, ScriptCode& 
scriptCode)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName, 
String mod
uleName, SourceUnit sourceCode, ModuleOptions options)
   at IronPython.Runtime.Importer.LoadFromSourceUnit(CodeContext context, 
Source
Unit sourceCode, String name, String path)
   at IronPython.Runtime.Importer.LoadModuleFromSource(CodeContext 
context, Stri
ng name, String path)
   at IronPython.Runtime.Importer.LoadPackageFromSource(CodeContext 
context, Str
ing name, String path)
   at IronPython.Runtime.Importer.LoadFromDisk(CodeContext context, String 
name,
 String fullName, String str)
   at IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, 
String
 name, String fullName, List path, Func`5 defaultLoader)
   at IronPython.Runtime.Importer.ImportFromPath(CodeContext context, 
String nam
e, String fullName, List path)
   at IronPython.Runtime.Importer.ImportTopAbsolute(CodeContext context, 
String
name)
   at IronPython.Runtime.Importer.ImportModule(CodeContext context, Object 
globa
ls, String modName, Boolean bottom, Int32 level)
   at IronPython.Modules.Builtin.__import__(CodeContext context, String 
name, Ob
ject globals, Object locals, Object fromlist, Int32 level)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Invoke(Object 
arg0,
Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
   at Microsoft.Scripting.Interpreter.CallInstruction.Invoke(Object[] args)
   at Microsoft.Scripting.Actions.Calls.MethodCandidate.Caller.Call(Object
[] arg
s, Boolean& shouldOptimize)
   at 
IronPython.Runtime.Types.BuiltinFunction.BuiltinFunctionCaller`5.Call4(Cal
lSite site, CodeContext context, TFuncType func, T0 arg0, T1 arg1, T2 
arg2, T3 a
rg3)
   at IronPython.Runtime.Importer.Import(CodeContext context, String 
fullName, P
ythonTuple from, Int32 level)
   at IronPython.Runtime.Operations.PythonOps.ImportTop(CodeContext 
context, Str
ing fullName, Int32 level)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run
(InterpretedFrame
 frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame 
frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 
arg0, T1 a
rg1)
   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
   at 
IronPython.Hosting.PythonCommandLine.<>c__DisplayClass1.<RunOneInteraction
>b__0()
>>>

What version of the product are you using? On what operating system?
IronClad '2.6.0RC1' Running on Windows 7 (X64)

Please provide any additional information below.
I compiled IronPython Development #66068 on 
Visual Studio 2008 Version 9.0.30729.1 SP
Microsoft .NET Framework Version 3.5 SP1

Original issue reported on code.google.com by [email protected] on 12 May 2010 at 6:25

ironclad 2.6 for .net4 experiamental running in Code error

What steps will reproduce the problem?
1. Console load ironclad is OK,but in code, it's error.
2.
3.

What is the expected output? What do you see instead?
Running in code

What version of the product are you using? On what operating system?
ironclad for .net4 experimental

Please provide any additional information below.
You can see my test project:
Visual Studio 2010 C# 4.0
ironpython 2.6.1 for .net 4
ironclad 2.6 for .net 4 experimental
python 2.6

Any question to [email protected]

Original issue reported on code.google.com by [email protected] on 28 Jul 2010 at 1:28

Attachments:

Python 2.7 Support

What steps will reproduce the problem?
--Iron Python 2.7 Beta Installed
1.import sys
2.sys.path.append("C:\\ironclad-v2.6.0rc1-bin\\ironclad")
3.import ironclad

What is the expected output? What do you see instead?
The import to work. The load fails citing a reference to IronPython 2.6.1 
assembly.

What version of the product are you using? On what operating system?
Latest. Win 32bit

Please provide any additional information below.
N/A


Original issue reported on code.google.com by [email protected] on 4 Nov 2010 at 5:23

Type 'IronPython.Runtime.Types.PythonType' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.

What steps will reproduce the problem?
1. Write this code in C#:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using IronPython.Hosting;

namespace IronPythonTalonTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var pyEngine = Python.CreateEngine();
            List<string> m_searchPaths = new List<string>();
            m_searchPaths.Add(AppDomain.CurrentDomain.BaseDirectory + @"\talon-master");
            m_searchPaths.Add(AppDomain.CurrentDomain.BaseDirectory + @"\Lib");
            m_searchPaths.Add(@"D:\Downloads\ironclad-v2.6.0rc1-bin");
            m_searchPaths.Add(@"D:\Downloads\regex-2015.05.10\");
            dynamic scope = pyEngine.CreateScope();
            pyEngine.SetSearchPaths(m_searchPaths);
            try
            {
                pyEngine.ExecuteFile(@"C:\Users\Zoneh\Documents\Visual Studio 2013\Projects\IronPythonTalonTest\IronPythonTalonTest\bin\Debug\talon-master\build\lib\test_script.py");
            }
            catch (Exception ex)
            {
                var exc = ex;
            }
        }
    }
}


2. Write this code in test_script.py:

import ironclad
import talon
from talon import quotations
talon.init()
text =  """Reply
-----Original Message-----
Quote"""
reply = quotations.extract_from(text, 'text/plain')
reply = quotations.extract_from_plain(text)

3.
Run the code in C#
What is the expected output? What do you see instead?

I expect to get a variable in my dynamic scope reply that has original message 
turned down. 

Instead i get an exception in C#:

Type 'IronPython.Runtime.Types.PythonType' cannot be marshaled as an unmanaged 
structure; no meaningful size or offset can be computed.

What version of the product are you using? On what operating system?
Latest 2.6.0rc1 IronClad. Windows 8.1 64bit

This is the stack trace:

   at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type t, Boolean throwIfNotMarshalable)
   at System.Runtime.InteropServices.Marshal.SizeOf(Object structure)
   at System.Runtime.InteropServices.Marshal.SizeOf[T](T structure)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)
   at IronPython.Runtime.PythonContext.InitializeModule(String fileName, ModuleContext moduleContext, ScriptCode scriptCode, ModuleOptions options)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName, String moduleName, SourceUnit sourceCode, ModuleOptions options, ScriptCode& scriptCode)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName, String moduleName, SourceUnit sourceCode, ModuleOptions options)
   at IronPython.Runtime.Importer.LoadFromSourceUnit(CodeContext context, SourceUnit sourceCode, String name, String path)
   at IronPython.Runtime.Importer.LoadModuleFromSource(CodeContext context, String name, String path)
   at IronPython.Runtime.Importer.LoadPackageFromSource(CodeContext context, String name, String path)
   at IronPython.Runtime.Importer.LoadFromDisk(CodeContext context, String name, String fullName, String str)
   at IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   at IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   at IronPython.Runtime.Importer.ImportTopAbsolute(CodeContext context, String name)
   at IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
   at IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run7[T0,T1,T2,T3,T4,T5,T6,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute6[T0,T1,T2,T3,T4,T5,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
   at IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   at IronPython.Runtime.Operations.PythonOps.ImportTop(CodeContext context, String fullName, Int32 level)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)
   at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)
   at Microsoft.Scripting.SourceUnit.Execute(Scope scope)
   at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
   at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteFile(String path, ScriptScope scope)
   at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteFile(String path)
   at IronPythonTalonTest.Program.Main(String[] args) in c:\Users\Zoneh\Documents\Visual Studio 2013\Projects\IronPythonTalonTest\IronPythonTalonTest\Program.cs:line 25


Original issue reported on code.google.com by [email protected] on 22 May 2015 at 11:20

Memory corruption and deadlocks with simple numpy repro

What steps will reproduce the problem?
1. ipy.exe -X:Frames perf_test.py
Run this outside of a debugger - the program hangs (this is on a 4 core 
machine).  When you attach the debugger the finalizer thread appears to 
hold the GIL but there's no code currently running on the finalizer thread.

2. Run inside of the debugger and memory corruption is reported before any 
sign of leaking the finalizer thread.  I'm seeing a report such as:

HEAP[ipy.exe]: Heap block at 061EED80 modified at 061EED94 past requested 
size of c

from a stack such as:

WARNING: Stack unwind information not available. Following frames may be 
wrong.
003bcf60 77304f92 061eed80 004d0000 061eed80 ntdll!
RtlpNtEnumerateSubKey+0x3947
003bcf78 772e26fc 00000000 061eed80 061eed80 ntdll!RtlImageRvaToVa+0x1fd
003bcf98 77320b37 004d0000 061eed80 7727b76a ntdll!
RtlUlonglongByteSwap+0x1545c
003bcfe0 772da967 004d0000 50000063 061eed88 ntdll!
RtlpNtEnumerateSubKey+0x49a2
003bd0d4 772832f2 061eed80 061eed88 003bd170 ntdll!
RtlUlonglongByteSwap+0xd6c7
003bd0f4 75323e88 004d0000 00000000 061eed88 ntdll!RtlImageNtHeader+0x30e
003bd13c 0014b62e 061eed88 9b2aa1f9 00000000 KERNELBASE!LocalFree+0x27
003bd158 72f63d1e 061eed88 00000000 02b1f280 CLRStub[StubLinkStub]
@19de0100014b62e
003bd170 7731fadc [NDirectMethodFrameStandalone: 003bd170] 
Microsoft.Win32.Win32Native.LocalFree(IntPtr)
003bd180 72f63d1e System.Runtime.InteropServices.Marshal.FreeHGlobal
(IntPtr)
003bd190 068ef0e5 Ironclad.HGlobalAllocator.Free(IntPtr)
003bd1a4 068ee8d6 Ironclad.PythonMapper.PyObject_Free(IntPtr)
003bd1b4 06380423 Ironclad.PythonMapper.IC_PyTuple_Dealloc(IntPtr)
003bd270 008f1f53 [DelegateTransitionFrame: 003bd270] 
Ironclad.PydInit_Delegate.Invoke()
003bd280 0638411a Ironclad.PydImporter.Load(System.String)
003bd2a0 06383da7 Ironclad.PythonMapper.LoadModule(System.String, 
System.String)
003bd568 738d1b6c [CustomGCFrame: 003bd568] 
003bd530 738d1b6c [GCFrame: 003bd530] 
003bd54c 738d1b6c [GCFrame: 003bd54c] 
003bd730 738d1b6c [HelperMethodFrame_1OBJ: 003bd730] 
System.RuntimeMethodHandle._InvokeMethodFast(System.Object, System.Object
[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, 
System.RuntimeTypeHandle)
003bd7a0 72f453d8 System.RuntimeMethodHandle.InvokeMethodFast
(System.Object, System.Object[], System.Signature, 
System.Reflection.MethodAttributes, System.RuntimeTypeHandle)
003bd7f0 72f45186 System.Reflection.RuntimeMethodInfo.Invoke
(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, 
System.Object[], System.Globalization.CultureInfo, Boolean)
003bd82c 72f4506e System.Reflection.RuntimeMethodInfo.Invoke
(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, 
System.Object[], System.Globalization.CultureInfo)
003bd84c 05ad1c8d 
Microsoft.Scripting.Actions.Calls.MethodCandidate+Caller.CallWithInstance
(System.Object[], Boolean ByRef)
003bd880 05bb052a 
IronPython.Runtime.Types.BuiltinFunction+BuiltinMethodCaller`3
[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, 
mscorlib]].Call2(System.Runtime.CompilerServices.CallSite, 
IronPython.Runtime.CodeContext, System.__Canon, System.__Canon, 
System.__Canon)
003bd8b4 06019db2 DynamicClass.load_module$62
(System.Runtime.CompilerServices.Closure, 
IronPython.Runtime.PythonFunction, System.Object, System.Object)
003bd9b0 05ae12a7 IronPython.Runtime.PythonFunction+FunctionCaller`2
[[System.__Canon, mscorlib],[System.__Canon, mscorlib]].Call2
(System.Runtime.CompilerServices.CallSite, IronPython.Runtime.CodeContext, 
System.Object, System.__Canon, System.__Canon)


What is the expected output? What do you see instead?
No hangs, no memory corruption.

What version of the product are you using? On what operating system?
This is IronPython 2.6.1 on Windows Server 2008 R2.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 6:04

Attachments:

module not loading

the module does not load
i used the latest version of ironpython
and the lastest version of ironclad

I get the following error:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\IronClad\ironclad\__init__.py", line 21, in <module>
SystemError: An attempt was made to load an assembly from a network location 
which would have caused the assembly to be sandboxed in previous versions of 
the .NET Framework. This release of the .NET Framework does not enable CAS 
policy by default, so this load may be dangerous. If this load is not intended 
to sandbox the assembly, please enable the loadFromRemoteSources switch. See 
http://go.microsoft.com/fwlink/?LinkId=155569 for more information.


Original issue reported on code.google.com by [email protected] on 11 Jun 2010 at 7:41

CPython representation of callables

Functions, descriptors, unbound methods...

The primary motivation for implementing these properly would be to allow us to 
set Py_OptimizeFlag to 0, which I think it should be. However, if it's 
non-zero, numpy's 
arr_add_docstring will will make some perfectly reasonable assumptions which, 
unfortunately, lead 
to segfaults under Ironclad. However, even if we made that function run without 
crashing, we'd 
need to do really horrible things to make the newly-set docstrings appear in 
IronPython.

Original issue reported on code.google.com by [email protected] on 20 Jan 2009 at 8:07

Makefiles are win32-specific

1) I'll probably have to just bite the bullet and install cygwin, just so I can 
use rm instead of del 
(which appears to insist on using \ as pathsep).

2) To build out of the box on Mac OS X 10.4, we need to use ugly conditionals 
(compatible with 
make <3.8)

Original issue reported on code.google.com by [email protected] on 3 Feb 2009 at 8:23

Ironpython 2.6.1 call numpy error

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.
Ironpython 2.6.1

>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python26\Lib\site-packages\numpy\__init__.py", line 132, in <module>
  File "D:\Python26\Lib\site-packages\numpy\add_newdocs.py", line 9, in <module>

  File "D:\Python26\Lib\site-packages\numpy\lib\__init__.py", line 4, in <module
>
  File "D:\Python26\Lib\site-packages\numpy\lib\type_check.py", line 8, in <modu
le>
  File "D:\Python26\Lib\site-packages\numpy\core\__init__.py", line 40, in <modu
le>
  File "D:\Python26\Lib\site-packages\numpy\testing\__init__.py", line 12, in <m
odule>
  File "D:\Python26\Lib\site-packages\numpy\testing\numpytest.py", line 8, in <m
odule>
AttributeError: 'module' object has no attribute '_getframe'

Original issue reported on code.google.com by [email protected] on 19 Jun 2010 at 1:36

No Unicode support

Seriously: none whatsoever. Potentially tricky, because str == unicode in 
IronPython and str != 
unicode in CPython.

Original issue reported on code.google.com by [email protected] on 20 Jan 2009 at 8:01

sqlite3.connect raises an exception

What steps will reproduce the problem?
1. run ipy -X:Frames
2. import ironclad
3. import sqlite3
4. conn = sqlite3.connect(":memory:")

What is the expected output? What do you see instead?
Expected a valid connection object (conn)
saw the exception:
Error: PyThread_get_thread_ident is not yet implemented
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 11, in connect
NotImplementedError: PyThread_get_thread_ident

What version of the product are you using? On what operating system?
Ironclad 2.6 RC1 on Windows 7 Ultimate x64 (under 32-bit ipy.exe)

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 19 Jan 2010 at 8:13

Lists not necessarily synchronised

The PyList_GETITEM macro will not work correctly on lists which map to an 
existing IronPython list.

The PyList_SETITEM macro won't work either, EXCEPT in the only context in which 
we've actually 
seen it: filling in the values in an entirely new PyListObject's data.

Accesses through API functions should work fine.

Original issue reported on code.google.com by [email protected] on 20 Jan 2009 at 7:57

Could not load library 'multiarray.pyd'. Error code: 126. Parallels

What steps will reproduce the problem?
1. After importing ironclad, import numpy throws the following error:

A Window's System Error Dialog pops up->
 ipy.exe - System Error
The program can't start because MSVCR90.dll is missing from your computer. Try 
reinstalling the program to fix this problem.

Then the following error shows in the ipy.exe console window:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> import sys
>>> sys,path.append('C:\\Python26\\DLLs')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'path' is not defined
>>> sys.path.append('C:\\Python26\\DLLs')
>>> sys.path.append('C:\\Python26\\Lib')
>>> sys.path.append('C:\\Python26\\Lib\\site-packages')
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\Lib\site-packages\numpy\__init__.py", line 138, in <module>
  File "C:\Python26\Lib\site-packages\numpy\add_newdocs.py", line 9, in <module>

  File "C:\Python26\Lib\site-packages\numpy\lib\__init__.py", line 4, in <module
>
  File "C:\Python26\Lib\site-packages\numpy\lib\type_check.py", line 8, in <modu
le>
  File "C:\Python26\Lib\site-packages\numpy\core\__init__.py", line 5, in <modul
e>
  File "<string>", line 21, in load_module
Exception: Could not load library 'multiarray.pyd' . Error code:126
>>>

I've looked around and noticed this issue:
http://bugs.python.org/issue7511

I also reinstalled the visual studio 2008 runtime library, and installed the 
visual studio 2010 service pack updates. Neither of these fixed the issue. I 
also tried placing the MSVCR90.dll in windows/system32 and the 
ironclad-v.2.6.0rc1-bin folder with its manifest.


What version of the product are you using? On what operating system?
Windows 7. I'm running Visual Studio 2010 Professional *which may be part of 
the particular bug*
IronPython 2.6.2(2.6.10920.0) on .NET 4.0.30319.488

My Cpython is :
Enthought Python Distribution -- http://www.enthought.com Version: 6.3-2 
(32-bit)
Python 2.6.6 |EPD 6.3-2 (32-bit)| (r266:84292, Sep 20 2010, 11:26:16) [MSC 
v.1500 32 bit (Intel)] on win32

Numpy works fine in CPython.

Original issue reported on code.google.com by [email protected] on 16 Dec 2011 at 7:42

Why not transfer to codeplex

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.
I heard Mircrosoft may pay for this project.
Why not transfer it to Codeplex...

In codeplex, it have more power than google code.

A litte advice.

Sorry for my english.
[email protected](MSN/Email)

Original issue reported on code.google.com by [email protected] on 26 Aug 2010 at 11:44

call numpy error

What steps will reproduce the problem?
1. import numpy
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
IronPython 2.6
Python 2.6
Numpy
Scipy

Please provide any additional information below.

import sys
sys.path.append(r'D:\ironclad-v2.6.0rc1-bin')
sys.path.append(r'D:\Python26\dll')
sys.path.append(r'D:\Python26\Lib')
sys.path.append(r'D:\Python26\Lib\site-packages')
import ironclad
from ironclad import *

» import numpy
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Python26\Lib\site-packages\numpy\__init__.py", line 132, in <module>
  File "D:\Python26\Lib\site-packages\numpy\add_newdocs.py", line 9, in <module>
  File "D:\Python26\Lib\site-packages\numpy\lib\__init__.py", line 4, in <module>
  File "D:\Python26\Lib\site-packages\numpy\lib\type_check.py", line 8, in <module>
  File "D:\Python26\Lib\site-packages\numpy\core\__init__.py", line 8, in <module>
  File "D:\Python26\Lib\site-packages\numpy\core\numerictypes.py", line 435, in <module>
  File "D:\Python26\Lib\site-packages\numpy\core\numerictypes.py", line 431, in _set_array_types
  File "<string>", line 31, in __new__
AttributeError: Method not found: 'Microsoft.Scripting.Math.BigInteger 
IronPython.Runtime.Converter.ConvertToBigInteger(System.Object)'.

Original issue reported on code.google.com by [email protected] on 18 Jun 2010 at 1:40

Win32-specific code

These functions definitely need to work, or to be mapped to equivalents:

kernel32.LoadLibrary
kernel32.FreeLibrary
kernel32.GetProcAddress
msvcr71._fdopen
msvcr71._open_osfhandle
msvcr71.fclose

These functions will be necessary if we get weird STA/MTA locking problems 
under Mono:

kernel32.CreateMutex
kernel32.WaitForSingleObject
kernel32.ReleaseMutex
kernel32.CloseHandle

These functions would be nice to have, for tests and/or convenience, even if 
they're not actually 
critical:

kernel32.GetModuleHandle
kernel32.GetlastError
kernel32.DebugBreak
msvcr71.memcpy

Original issue reported on code.google.com by [email protected] on 3 Feb 2009 at 9:50

IronPython does not want to work with ironclad

  I have CPython 2.6.4 installed.
  And, IronPython which shoots out from ipy -V:
       PythonContext 2.6.30207.0 on .NET 4.0.0.0

  So, I downloaded and unzipped ironclad-v2.6.0rc1.zip as per the
instructions.

  But, when I do the following:

cd c:\ironclad-v2.6.0rc1-bin
C:\ironclad-v2.6.0rc1-bin> ipy
>>> import ironclad

  I get a lot of errors, which are included below (the line folding is from 
cmd.exe
showing its output in a window):


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\ironclad-v2.6.0rc1-bin\ironclad\__init__.py", line 24, in 
<module>
IOError: System.IO.FileLoadException: Could not load file or assembly 
'IronPytho
n, Version=2.6.10920.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 
or one
 of its dependencies. The located assembly's manifest definition does not 
match
the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'IronPython, Version=2.6.10920.0, Culture=neutral, 
PublicKeyToken=31b
f3856ad364e35'
   at System.Signature.GetSignature(SignatureStruct& signature, Void* 
pCorSig, I
nt32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo 
methodH
andle, RuntimeType declaringType)
   at System.Signature..ctor(IRuntimeMethodInfo methodHandle, RuntimeType 
declar
ingType)
   at System.Reflection.RuntimeConstructorInfo.get_CallingConvention()
   at 
Microsoft.Scripting.Actions.Calls.OverloadResolver.IsUnsupported(MethodBas
e method)
   at 
Microsoft.Scripting.Actions.Calls.OverloadResolver.BuildCandidateSets(ILis
t`1 methods)
   at 
Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload(String
methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel 
maxLevel)
   at 
Microsoft.Scripting.Actions.DefaultBinder.CallMethod(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions, String 
name, Nar
rowingLevel minLevel, NarrowingLevel maxLevel, BindingTarget& target)
   at 
Microsoft.Scripting.Actions.DefaultBinder.CallMethod(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions, String 
name)
   at 
Microsoft.Scripting.Actions.DefaultBinder.CallMethod(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions)
   at 
IronPython.Runtime.Binding.MetaPythonType.MakeStandardDotNetTypeCall(Dynam
icMetaObjectBinder call, Expression codeContext, DynamicMetaObject[] args)
   at 
IronPython.Runtime.Binding.MetaPythonType.InvokeWorker(DynamicMetaObjectBi
nder call, DynamicMetaObject[] args, Expression codeContext)
   at IronPython.Runtime.Binding.MetaPythonType.Invoke(PythonInvokeBinder 
python
Invoke, Expression codeContext, DynamicMetaObject target, 
DynamicMetaObject[] ar
gs)
   at 
IronPython.Runtime.Binding.PythonInvokeBinder.BindWorker(DynamicMetaObject
 context, DynamicMetaObject target, DynamicMetaObject[] args)
   at IronPython.Runtime.Binding.PythonInvokeBinder.Bind(DynamicMetaObject 
targe
t, DynamicMetaObject[] args)
   at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, 
ReadOnlyCollect
ion`1 parameters, LabelTarget returnLabel)
   at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 
site
, Object[] args)
   at 
System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite s
ite, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite 
site, Co
deContext context, Object func, T0 arg0)
   at 
IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedF
rame frame)
   at 
Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFra
me frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame 
frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)
   at IronPython.Runtime.PythonContext.InitializeModule(String fileName, 
ModuleC
ontext moduleContext, ScriptCode scriptCode, ModuleOptions options)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName, 
String mod
uleName, SourceUnit sourceCode, ModuleOptions options, ScriptCode& 
scriptCode)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName, 
String mod
uleName, SourceUnit sourceCode, ModuleOptions options)
   at IronPython.Runtime.Importer.LoadFromSourceUnit(CodeContext context, 
Source
Unit sourceCode, String name, String path)
   at IronPython.Runtime.Importer.LoadModuleFromSource(CodeContext context, 
Stri
ng name, String path)
   at IronPython.Runtime.Importer.LoadPackageFromSource(CodeContext 
context, Str
ing name, String path)
   at IronPython.Runtime.Importer.LoadFromDisk(CodeContext context, String 
name,
 String fullName, String str)
   at IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, 
String
 name, String fullName, List path, Func`5 defaultLoader)
   at IronPython.Runtime.Importer.ImportFromPath(CodeContext context, 
String nam
e, String fullName, List path)
   at IronPython.Runtime.Importer.ImportTopAbsolute(CodeContext context, 
String
name)
   at IronPython.Runtime.Importer.ImportModule(CodeContext context, Object 
globa
ls, String modName, Boolean bottom, Int32 level)
   at IronPython.Modules.Builtin.__import__(CodeContext context, String 
name, Ob
ject globals, Object locals, Object fromlist, Int32 level)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Invoke(Object 
arg0,
Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
   at Microsoft.Scripting.Interpreter.CallInstruction.Invoke(Object[] args)
   at 
Microsoft.Scripting.Actions.Calls.MethodCandidate.Caller.Call(Object[] arg
s, Boolean& shouldOptimize)
   at 
IronPython.Runtime.Types.BuiltinFunction.BuiltinFunctionCaller`5.Call4(Cal
lSite site, CodeContext context, TFuncType func, T0 arg0, T1 arg1, T2 arg2, 
T3 a
rg3)
   at IronPython.Runtime.Importer.Import(CodeContext context, String 
fullName, P
ythonTuple from, Int32 level)
   at IronPython.Runtime.Operations.PythonOps.ImportTop(CodeContext 
context, Str
ing fullName, Int32 level)
   at 
Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame
 frame)
   at 
Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFra
me frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame 
frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, 
T1 a
rg1)
   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
   at 
IronPython.Hosting.PythonCommandLine.<>c__DisplayClass1.<RunOneInteraction
>b__0()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value 
[HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind 
failure lo
gging.
To turn this feature off, remove the registry value 
[HKLM\Software\Microsoft\Fus
ion!EnableLog].

>>>

===============================================

  My email address is [email protected], and using email is
probably the best way to communicate with me on this.

  Thanks very much.

Original issue reported on code.google.com by [email protected] on 28 Feb 2010 at 2:06

import ironclad cannot load type 'IronPython.Runtime.CodeContext'

What steps will reproduce the problem?
debrand@B88SCHWS5113 /c/ironclad-v2.6.0rc1
$ ipy
IronPython 2.0.3 (2.0.0.0) on .NET 2.0.50727.3603
Type "help", "copyright", "credits" or "license" for more information.
>>> import ironclad

What is the expected output? What do you see instead?
Expected output is nothing. Instead this traceback appears:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\ironclad-v2.6.0rc1\ironclad\__init__.py", line 24, in
C:\ironclad-v2.6.0rc1\ironclad\__init__.py
  File "mscorlib", line unknown, in .ctor
  File "mscorlib", line unknown, in GetSignature
  File "mscorlib", line unknown, in _GetSignature
SystemError: Could not load type 'IronPython.Runtime.CodeContext' from assembly
'IronPython, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.


What version of the product are you using? On what operating system?
ironclad-v2.6.0rc1 on IronPython 2.0.3 (2.0.0.0) on .NET 2.0.50727.3603. OS
is Windows Server 2003.

Please provide any additional information below.
This is a 64-bit version of Windows, however I've set
HKLM\Software\Microsoft.NETFramework\Enable_64Bit to 0 to force 32 bit mode
for all .NET apps. I tried using CorFlags.exe to set just ipy.exe to 32 bit
mode, but got warnings about breaking a strongly named assembly and assumed
that might cause problems.

Original issue reported on code.google.com by [email protected] on 3 Jun 2010 at 11:52

How to build it for ironpython for .net4

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.
Some post said shuold build it for ironpython for .net4.

Original issue reported on code.google.com by [email protected] on 19 Jun 2010 at 1:26

Potentially inaccurate dispatch

If a class C has a method named M, and its [metaclass or any of its base 
classes] BM has both the 
same name as C and a method named M, then calls to C.M may go to the wrong 
implementation.

This is just silly.

Original issue reported on code.google.com by [email protected] on 20 Jan 2009 at 8:35

Cannot reload numpy

Running the attached file will cause a crash at some point, probably after
1-6 iterations (changes which should preserve behaviour -- like, say,
logging -- don't). This is clearly a defect, but I don't consider it to be
especially important -- it's well outside the original use case, and IMO we
should focus on API completeness and performance before we waste any more
time on this.

Original issue reported on code.google.com by [email protected] on 12 Jan 2009 at 5:14

Attachments:

Ironclad with IronPython 2.7 not able to import

What steps will reproduce the problem?
1. import sys
2. sys.path.append("C:\ironclad-v2.6.0rc1-bin")
3. import ironclad

What is the expected output? What do you see instead?
IOError: SYstem.IO.FileLoadException: could not load file or assembly 
'IronPython, Version=2.6.10920.0 ..............

What version of the product are you using? On what operating system?
I am using IronPython 2.7 and ironclad-v2.6.0 binaries

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 11 Sep 2012 at 12:06

import numpy fails with IronPython 2.6.1 for .NET 4.0

What steps will reproduce the problem?
debrand@B88SCHWS5113 /cygdrive/c/ironclad-v2.6.0rc1
$ ipy
IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30319.1
Type "help", "copyright", "credits" or "license" for more information.
>>> import ironclad
>>> import sys
>>> sys.path.append('C:\\Python26\\Dlls')
>>> sys.path.append('C:\\Python26\\Lib')
>>> sys.path.append('C:\\Python26\\Lib\\site-packages')
>>> import numpy

What is the expected output? 
No output with numpy available for use.

What do you see instead?
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\Lib\site-packages\numpy\__init__.py", line 130, in <module>
  File "C:\Python26\Lib\site-packages\numpy\add_newdocs.py", line 9, in
<module>
  File "C:\Python26\Lib\site-packages\numpy\lib\__init__.py", line 4, in
<module>
  File "C:\Python26\Lib\site-packages\numpy\lib\type_check.py", line 8, in
<module>
  File "C:\Python26\Lib\site-packages\numpy\core\__init__.py", line 8, in
<module>
  File "C:\Python26\Lib\site-packages\numpy\core\numerictypes.py", line 430, in
<module>
  File "C:\Python26\Lib\site-packages\numpy\core\numerictypes.py", line 426, in
_set_array_types
  File "<string>", line 31, in __new__
AttributeError: Method not found: 'Microsoft.Scripting.Math.BigInteger
IronPython.Runtime.Converter.ConvertToBigInteger(System.Object)'.

What version of the product are you using? On what operating system?
ironclad-v2.6.0rc1 on Windows Server 2003 with IronPython 2.6.1
(2.6.10920.0) on .NET 4.0.30319.1 and numpy 1.3.0

Original issue reported on code.google.com by [email protected] on 3 Jun 2010 at 8:54

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.