Installing pure Python modules - Latest

Data360 Analyze Server Help

Product type
Software
Portfolio
Verify
Product family
Data360
Product
Data360 Analyze
Version
Latest
ft:locale
en-US
Product name
Data360 Analyze
ft:title
Data360 Analyze Server Help
Copyright
2025
First publish date
2016
ft:lastEdition
2025-08-05
ft:lastPublication
2025-08-05T06:05:01.564000

This topic describes how to install pure Python modules for general python scripting use in the Python 2.7-based Data360 Analyze nodes, such as the Transform node and the Generate Data node.

Note: Only pure Python modules can be installed, other third-party libraries are not supported for use in the Python 2.7 based nodes. Python node which runs on Python 3 can be used for this purpose.
Adding a pure Python module on Windows server
  1. Run Windows Command Prompt as an administrator.
  2. Set the environment variables to those appropriate for your Data360 Analyze installation: <Data360AnalyzeInstallDirectory>\bin\laeEnv.bat
  3. With Python 2 support deprecated, use jython to install pure Python modules. Run the following command, replacing <Data360AnalyzeSiteDirectory> with the location of the site configuration directory and <module> with the name of the Python module that you want to install:
    jython -m pip install httplib2 --target <Data360AnalyzeSiteDirectory>\lib\jython2
    For example,
    jython -m pip install httplib2 --target C:\Users\ExampleUser\Data360Analyze\site-7731\lib\jython2

    You can also use python if you still have Python 2 installed. However, since support for Python 2 is being phased out, it is recommended to use jython.

Adding a pure Python module on Linux
  1. Change to the Data360 Analyze installation directory: cd <Data360AnalyzeInstallDirectory>
  2. Set the environment variables to those appropriate for your Data360 Analyze installation: source .profile.lavastorm
  3. With Python 2 support deprecated, use jython to install pure Python modules. Run the following command, replacing <Data360AnalyzeSiteDirectory> with the location of the site configuration directory and <module> with the name of the Python module that you want to install:
    jython -m pip install httplib2 --target Data360Analyze/lib/jython2

    For example,

    jython -m pip install httplib2 --target C:/Users/ExampleUser/Data360Analyze/site-7731/lib/jython2

    You can also use python if you still have Python 2 installed. However, since support for Python 2 is being phased out, it is recommended to use jython.

Configure and run the Python-based node, for example the Generate Data or Transform node. The following example shows how to import the httplib2 module:
  1. In the ConfigureFields property, enter the following:
    from httplib2 import Http
    out1.responseName = unicode
    out1.responseValue = unicode
  2. In the CreateRecords property, enter the following:
    h = Http()
    resp, content = h.request("http://www.google.com")
    out1.responseName = 'status'
    out1.responseValue = resp['status']
    node.write(0,out1)
    out1.responseName = 'content-type'
    out1.responseValue = resp['content-type']
    node.write(0,out1)