-
Notifications
You must be signed in to change notification settings - Fork 751
pip install pythonnet fails on Win7 32 bit #1611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It tells you the error explicitly, something is off with your .NET installation.
|
Hi @filmor. It's a fresh install of .NET 5.0.11:
|
|
Apologies @filmor - I thought that just having only the .NET runtime was needed. I've now installed the SDK:
I now get the following error:
I don't know if this is relevant to this issue, but I noticed that in def find_dotnet_root() -> str:
dotnet_root = os.environ.get("DOTNET_ROOT", None)
if dotnet_root is not None:
return dotnet_root
if sys.platform == "win32":
# On Windows, the host library is stored separately from dotnet.exe for x86
if sys.maxsize > 2 ** 32:
prog_files = os.environ.get("ProgramFiles")
else:
prog_files = os.environ.get("ProgramFiles(x86)") <--- doesn't exist on Win32 |
Your git installation seems to be messed up, maybe check it out manually and install from the checkout ( |
It worked using manual check out followed by
About the posted, code: As suspected, when running on 32 bit Windows, when my code calls: config_path = get_coreclr(r'C:\MyApp.runtimeconfig.json') It throws exception:
This is because clr_loader/util/find.py tries to read environment variable "ProgramFiles(x86)" but it doesn't exist on 32 bit Windows. As you suggested, I've raised the issue in clr_loader: pythonnet/clr-loader#14 Has Python.Net 3.0 been tested on 32 bit Windows? |
@DareDevilDenis Regarding the initial problems building from git, this is fixed now on master after people found the problem in #1613. |
Question before getting into the details: Does Python.Net 3.0 support 32 bit Windows OS? If so, please see details below.
Environment
pip install git+https://github.com/pythonnet/pythonnet
Details
Trying to install Python.Net
The text was updated successfully, but these errors were encountered: