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

the python script to download python module for v 3.8 to azure automation account is not working any more and need to add below part. #110

Open
anranwuyan opened this issue May 10, 2024 · 3 comments

Comments

@anranwuyan
Copy link

anranwuyan commented May 10, 2024

Per test in my lab, need to add below to the code so the script could still work .

  1. the runbook will fail with error
    image

solution:

add --user to the below three lines.

image

  1. once that is done, a new error will be hit as below.

image

add below to the code will fix the issue

image

Now the runbook could work.

image
image

Please update the code accordingly.

@Ledge2494
Copy link

I got the same issue, but I can't follow your solution's step because It misses a screen :
image
Can you put the code please ?

@anranwuyan
Copy link
Author

I got the same issue, but I can't follow your solution's step because It misses a screen : image Can you put the code please ?

add below.

image

try:
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'pip'])
except subprocess.CalledProcessError as e:
print("Error upgrading pip:", e)

@ChrisTav424
Copy link

I had this issue today, thank you for the above @anranwuyan, that fixed it 👍

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

3 participants