Hi, We are trying to call a SaaS API call with Python. and I installed Python 3.9 as well as the requests module. but I met some runpy.py error- saying no requests module found.
Can you please suggest what are needed?
Thank you!
Rachel
Z:>pip show requests
Name: requests
Version: 2.26.0
Summary: Python HTTP for Humans.
Home-page: https://requests.readthedocs.io
Author: Kenneth Reitz
Author-email: me@kennethreitz.org
License: Apache 2.0
Location: c:\users\racheldo-admin\appdata\roaming\python\python39\site-packages
Requires: certifi, idna, charset-normalizer, urllib3
Required-by:
Z:>python -c “import requests;print(requests.version)”
2.26.0
The step failed: Activity Request to put avoka into Maintenance mode on the Octopus Server failed with error ‘The remote script failed with exit code 1’.
Octopus Server
Ran for 5 seconds
December 3rd 2021 13:53:01
Error
Traceback (most recent call last):
December 3rd 2021 13:53:01
Error
File “E:\Octopus\Work\20211203215255-101299-336\Bootstrap.76a-491c-b70d-579a0eaad875.Script.py”, line 3, in
December 3rd 2021 13:53:01
Error
run_path(“E:\Octopus\Work\20211203215255-101299-336\Script.py”, configuration)
December 3rd 2021 13:53:01
Error
File “C:\Program Files (x86)\Python39-32\lib\runpy.py”, line 268, in run_path
December 3rd 2021 13:53:01
Error
return _run_module_code(code, init_globals, run_name,
December 3rd 2021 13:53:01
Error
File “C:\Program Files (x86)\Python39-32\lib\runpy.py”, line 97, in _run_module_code
December 3rd 2021 13:53:01
Error
_run_code(code, mod_globals, init_globals,
December 3rd 2021 13:53:01
Error
File “C:\Program Files (x86)\Python39-32\lib\runpy.py”, line 87, in _run_code
December 3rd 2021 13:53:01
Error
exec(code, run_globals)
December 3rd 2021 13:53:01
Error
File “E:\Octopus\Work\20211203215255-101299-336\Script.py”, line 3, in
December 3rd 2021 13:53:01
Error
import requests
December 3rd 2021 13:53:01
Error
ModuleNotFoundError: No module named ‘requests’
December 3rd 2021 13:53:01
Fatal
The remote script failed with exit code 1
December 3rd 2021 13:53:01
Fatal
The action Request to put avoka into Maintenance mode on the Octopus Server failed