VMware Cloud Community
legioon
Enthusiast
Enthusiast
Jump to solution

Python "requests module" error on vRA 8.1

Hi,

I'm developing ABX action scripties. But, when I use this command I'm getting an error like this "ModuleNotFoundError: No module named 'requests'"

import requests

import json

def handler(context, inputs):

...

...

...

...

What's wrong ?

1 Solution

Accepted Solutions
maverix7
VMware Employee
VMware Employee
Jump to solution

At some point I think the requests module was included, but I could be mistaken. Anyway for any 3rd party module you need to define it in the dependency section, I would try it with the requests as well, as shown in this post https://vnuggets.com/2019/08/19/cloud-assembly-extensibility-with-abx-faas-part3/

View solution in original post

0 Kudos
4 Replies
maverix7
VMware Employee
VMware Employee
Jump to solution

At some point I think the requests module was included, but I could be mistaken. Anyway for any 3rd party module you need to define it in the dependency section, I would try it with the requests as well, as shown in this post https://vnuggets.com/2019/08/19/cloud-assembly-extensibility-with-abx-faas-part3/

0 Kudos
dbis7575
Enthusiast
Enthusiast
Jump to solution

You do indeed have to specify the requests module as a dependency in your ABX action

dbis7575
Enthusiast
Enthusiast
Jump to solution

You do indeed have to specify the requests module as a dependency in your ABX action

0 Kudos
legioon
Enthusiast
Enthusiast
Jump to solution

Thanks guys, I was wondering what was the dependency section.Smiley Happy

0 Kudos