TIBCO BusinessEvents Enterprise Administrator Agent (beteagent) Python command line deployment failure

TIBCO BusinessEvents Enterprise Administrator Agent (beteagent) Python command line deployment failure

book

Article ID: KB0076178

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.4 and above

Description

The below error occurs when using Python command line deployment:
++++
[tibco2@ln000xslty0002 /apps/tibco2/be/5.6/teagent/cli/python]$  python configurationMgmt.py -t https://tibanc49:8777/tea -u admin -p tibc04adm createdeployment -d FraudDetectionCache -c /apps/tibco2/be/5.6/examples/standard/FraudDetectionCache/FraudDetectionCache/fdcache.cdd -e /apps/tibco2/be/5.6/examples/standard/FraudDetectionCache/fdcache.ear

Traceback (most recent call last):

  File "configurationMgmt.py", line 10, in <module>
    from utils import *
  File "/apps/tibco2/be/5.6/teagent/cli/python/utils.py", line 4, in <module>
    import tibco.tea
  File "/apps/tibco2/be/5.6/teagent/cli/python/tibco/tea/__init__.py", line 2, in <module>
    import requests
ImportError: No module named requests
++++

 

Issue/Introduction

TIBCO BusinessEvents Enterprise Administrator Agent Python command line deployment failure.

Environment

TIBCO BusinessEvents Enterprise Edition 5.4 and above All Operating Systems

Resolution

The python command line deployment failure is a result of missing python package 'Requests'.
The python package 'Requests' is not a built in module (does not come with the default python installation), so one needs to install additional python packages to be able to use the python deployment. It requires packages 'requests' and 'jsonpickle'.

Here are steps to install these packages:

Linux/OSX:
Use $ sudo pip install requests and $ sudo pip install jsonpickle
if pip installed
or
sudo easy_install -U requests  and sudo easy_install -U jsonpickle
if easy_install installed.

Windows:

From a cmd prompt, use > Path\easy_install.exe requests, and Path\easy_install.exe jsonpickle  where Path is your Python*\Scripts folder, if it was installed. (For example: C:\Python32\Scripts\easy_install.exe)

For any missing library, the source is usually available at https://pypi.python.org/pypi/. download requests here: https://pypi.python.org/pypi/requests