Skip to content
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

Dynamo does not install Python.NET packages from the first start! #14720

Open
DurmusCesur opened this issue Dec 8, 2023 · 0 comments
Open

Dynamo does not install Python.NET packages from the first start! #14720

DurmusCesur opened this issue Dec 8, 2023 · 0 comments
Labels

Comments

@DurmusCesur
Copy link

Dynamo Version

Dynamo: 2.18.1.5096

Host

REVIT 2024.2

Operating System

OS: Microsoft Windows NT 10.0.22621.0

What did you do?

I used cpython3

What did you expect to see?

No error!

What did you see instead?

Cpython3 "import clr" error!

What packages or external references (if any) were used?

No response

Stack Trace

No response

Details

I'm using PythonLibrary with Cpython3, but from the first launch of Dynamo, unfortunately it won't load the Python.NET. I have to force Dynamo to overcome this situation.

Code:
"
import clr
import sys
import re
import System

clr.AddReference('Python.Included')
import Python.Included as pyInc
path_py3_lib = pyInc.Installer.EmbeddedPythonHome
sys.path.append(path_py3_lib + r'\Lib\site-packages')

import shapely.geometry as sg

OUT = 0
"

Cpython3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Triage
Development

No branches or pull requests

2 participants