-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[Bug] [Python] Outdated python lib used on agent startup #13030
Comments
Hi @kezhenxu94, I've seen you removed the the bug tag. Have you found any workarround on the error ? |
Python 3.12 is not in our supported list so this is basically a feature request not a bug in my opinion. We will need some time to investigate how to deal with the removal of the method in 3.12 |
I'm having issues to fill all the PR requirements due to architecture incompatibilities.
Does it make sense to continue with it ? |
Thanks for the detail. Yes can you please file a pull request with the change? |
thanks, will take a look soon |
Search before asking
Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
I tried to start the django server with sw-python, but it failed in a setup step:
2025-02-12 09:03:40 skywalking-loader [pid:28] [MainThread] [ERROR] SkyWalking Python Agent failed to start, please inspect your package installation.Report issue if you think this is a bug, along with the log produced by specifying the -d debug flag.
2025-02-12 09:03:40 Traceback (most recent call last):
2025-02-12 09:03:40 File "/src/.venv/lib/python3.13/site-packages/skywalking/bootstrap/loader/sitecustomize.py", line 168, in
2025-02-12 09:03:40 agent.start() # CHECK: Not sure what happens when supervisor + gunicorn is used? Will it even work?
2025-02-12 09:03:40 ~~~~~~~~~~~^^
2025-02-12 09:03:40 File "/src/.venv/lib/python3.13/site-packages/skywalking/agent/init.py", line 244, in start
2025-02-12 09:03:40 plugins.install()
2025-02-12 09:03:40 ~~~~~~~~~~~~~~~^^
2025-02-12 09:03:40 File "/src/.venv/lib/python3.13/site-packages/skywalking/plugins/init.py", line 44, in install
2025-02-12 09:03:40 plugin = importer.find_module(modname).load_module(modname)
2025-02-12 09:03:40 ^^^^^^^^^^^^^^^^^^^^
2025-02-12 09:03:40 AttributeError: 'FileFinder' object has no attribute 'find_module'
2025-02-12 09:03:40 Watching for file changes with StatReloader
What you expected to happen
Apparently a the find_module was removed in python 3.12.
I believe the python agent needs an updated to newer python versions
How to reproduce
https://github.com/henriquemeca/skywalking-python-agent-issue
Follow the readme for setup
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
The text was updated successfully, but these errors were encountered: