Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to import Array from System#2550

Unanswered
DanWBR asked this question inQ&A
Discussion options

This used to work in 2.x versions:

import clrclr.AddReference("System")findRes = clr.FindAssembly("System")print(findRes)import Systemfrom System import Array

but now it returns an error regarding not able to find Array. findRes returns

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.dll

So it is loading .NET Framework, and Array should be in System namespace. Am I forgetting something?

I've tried it with latest code in main branch and also with latest release (3.0.5).

You must be logged in to vote

Replies: 4 comments

Comment options

What doesprint(System.__file__, System) look like? Which exact version of .NET are you using?

You must be logged in to vote
0 replies
Comment options

What doesprint(System.__file__, System) look like? Which exact version of .NET are you using?

System.NullReferenceException: Object reference not set to an instance of an object.

Seems that it is not loading the file.

Image

You must be logged in to vote
0 replies
Comment options

That version could be anything from 4.6 on. We only support 4.7.2 and up as these are the only properly .NET Standard-compatible versions of .NET Framework.

You must be logged in to vote
0 replies
Comment options

I just checked the source code and Python.Runtime is compiled for netstandard2.0, which goes down to .NET Framework 4.6.2, the target for the application where I ran the test code.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@DanWBR@filmor
Converted from issue

This discussion was converted from issue #2549 on February 13, 2025 13:36.


[8]ページ先頭

©2009-2025 Movatter.jp