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

Could not initialize Python when run the agent [BUG] #27560

Open
kriswell opened this issue Jul 13, 2024 · 0 comments
Open

Could not initialize Python when run the agent [BUG] #27560

kriswell opened this issue Jul 13, 2024 · 0 comments

Comments

@kriswell
Copy link

kriswell commented Jul 13, 2024

Agent Environment
Windows 10
Python 3.12.4
Go 1.22.5
CMAKE 3.30.0
GCC 13.2.0
MAKE 4.4.1
build the agent refer to README

Describe what happened:
./agent run -c .\dist\datadog.yaml
2024-07-13 23:28:18 CST | CORE | INFO | (pkg/aggregator/time_sampler.go:53 in NewTimeSampler) | Creating TimeSampler #0
2024-07-13 23:28:18 CST | CORE | INFO | (comp/logs/agent/agentimpl/agent.go:161 in newLogsAgent) | logs-agent disabled
2024-07-13 23:28:18 CST | CORE | WARN | (pkg/config/model/viper.go:221 in checkKnownKey) | config key network_devices.netflow.reverse_dns_enrichment_enabled is unknown
2024-07-13 23:28:18 CST | CORE | WARN | (pkg/collector/python/init.go:323 in resolvePythonExecPath) | Relative embedded directory not found for Python 2. Using default:
2024-07-13 23:28:18 CST | CORE | WARN | (pkg/collector/python/init.go:328 in resolvePythonExecPath) | Relative embedded directory not found for Python 3. Using default:
2024-07-13 23:28:18 CST | CORE | INFO | (pkg/collector/python/init.go:340 in resolvePythonExecPath) | Using '' as Python home
2024-07-13 23:28:18 CST | CORE | WARN | (pkg/collector/python/init.go:348 in resolvePythonExecPath) | Python home is empty. Inferring interpreter path from binary in path.
2024-07-13 23:28:18 CST | CORE | INFO | (pkg/collector/python/init.go:409 in Initialize) | Initializing rtloader with Python 3
2024-07-13 23:28:18 CST | CORE | ERROR | (pkg/collector/embed_python.go:35 in pySetup) | Could not initialize Python: could not load runtime python for version 3: Unable
to open library libdatadog-agent-three.dll, error code: 126

Describe what you expected:
pythoh check works,thank you

Steps to reproduce the issue:

Additional environment details (Operating System, Cloud provider, etc):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants