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

[BUG] the walinuxagent is installed in ubuntu 22.04 and the python version is 3.9.13. the walinuxagent is not work. #3207

Open
DaisenC opened this issue Sep 5, 2024 · 4 comments
Assignees

Comments

@DaisenC
Copy link

DaisenC commented Sep 5, 2024

I have a ubuntu 22.04 VM in Azure. and my python is 3.9.13. whatever I install the walinuxagent by python3 setup.py or apt -y install walinuxagent, it is not work.
error info:
NameError: name 'distro' is not defined
Snipaste_2024-09-05_17-37-15

how to resolve this problem and make it work. please help me. thx.

@nagworld9
Copy link
Contributor

you need to install distro module https://github.com/Azure/WALinuxAgent/blob/master/requirements.txt#L1

@nagworld9
Copy link
Contributor

@DaisenC curious is it marketplace image from azure or different vm? In general marketplace images comes with guest agent and they should have this module

@nagworld9 nagworld9 self-assigned this Sep 11, 2024
@DaisenC
Copy link
Author

DaisenC commented Sep 12, 2024

it is marketplace image from azure. but the customer install the python3.9.13 by himself. so it display the error. I tried to the way that you offered. but it still didn't work.

@nagworld9
Copy link
Contributor

maybe this module is not in the new pythonpath. Customers need to debug if they are doing any customization.

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

No branches or pull requests

2 participants