ironlanguages / ironclad Goto Github PK
View Code? Open in Web Editor NEWCPython API compatibility layer for IronPython
License: Other
CPython API compatibility layer for IronPython
License: Other
Hi all, i'm trying to build Ironclad 2.7 but the scons.bat fails to build with a missing "data\api_stubmain.generated.xml".
Any idea?
The 5 tests which are throwing errors in tests.cpymarshaltest
:
testWriteDouble
,testWriteDoubleField
,testWriteIntField
,testWritePtrField
,testWriteUIntField
have in common that they call Marshal.PtrToStructure()
.
For example:
>>> data = Marshal.AllocHGlobal(CPyMarshal.DoubleSize)
>>> doubleStruct = Marshal.PtrToStructure(data, DoubleStruct)
Traceback (most recent call last):
ValueError: The specified structure must be blittable or have layout information.
Parameter name: structure
However, CPyMarshal.cs
does provide layout information:
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct DoubleStruct
{
public double value;
public DoubleStruct(double inValue)
{
this.value = inValue;
}
}
This is related to Exceptions in Windows PowerShell, other dynamic languages, and dynamically executed C# code when code that targets the .NET Framework calls some methods
C# unit tests pass (see CPyMarshalTest.cs)
When creating a Docker image using command
docker build -t ironclad-build:v3.4wip -m 2GB .
the following error occurs:
Step 6/8 : RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); choco install -y python3
---> Running in 2265418ff3d2
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.2.2.
Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.2.2 to C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip
Not using proxy.
Extracting C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\chocoInstall
Installing Chocolatey on the local machine
The registry key for .Net 4.8 was not found or this is forced
Downloading 'https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe' to 'C:\Users\ContainerAdministrator\AppData\Local\Temp\ndp48-x86-x64-allos-enu.exe' - the installer is 100+ MBs, so this could take a while on a slow connection.
Installing 'C:\Users\ContainerAdministrator\AppData\Local\Temp\ndp48-x86-x64-allos-enu.exe' - this may take awhile with no output.
.NET Framework 4.8 was installed, but a reboot is required.
Please reboot the system and try to install/upgrade Chocolatey again.
At C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\chocoInstall\t
ools\chocolateysetup.psm1:815 char:11
+ throw ".NET Framework 4.8 was installed, but a reboot is re ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (.NET Framework ...ocolatey ag
ain.:String) [], RuntimeException
+ FullyQualifiedErrorId : .NET Framework 4.8 was installed, but a reboot i
s required.
Please reboot the system and try to install/upgrade Chocolatey again.
The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); choco install -y python3' returned a non-zero code: 1
I am using branch ipy3-wip, but a similar error happens on branch Docker (for ipy 2.7).
Is this project alive or migrited?I want use it with IronPython 3.4,is this possible with some work?
Placeholder issue for buffer protocol related changes.
What is the current state of the Ironclad project?
Placeholder issue for all things related to the str/unicode changes.
With Python 3 most of the str
related stuff goes to bytes
so we probably need to add support for unicode related structs (e.g. PyUnicode_Type
, PyUnicodeObject
).
Placeholder issue for all the things related to the int/long changes.
With Python 3 most of the int related stuff goes away and is replaced by the long structs (e.g. PyLong_Type, PyLongObject).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.