Imperva Cyber Community

 View Only
  • 1.  SDK Installation basic question

    Posted 08-04-2022 13:19
      |   view attached

    I installed the SDK from Github and installed it. Manually and via PIP.

    But when I try to create a simple script in Python I get

     ModuleNotFoundError: No module named 'imperva_sdk'

    During installation I get this message (snippet, full log attached):

    D:\Python-Projekte\imperva-sdk-0.2.1>python install

    running build_py

    file (for module imperva_sdk) not found

    file (for module imperva_sdk) not found

    creating build\\egg

    I tried it under Windows and Ubuntu... I searched for a file "imperva_sdk" on my machine - no luck

    What am I doing wrong? Any help welcome!




    Martin Schmitz
    Martin Schmitz IT Security Consulting


    Imperva SDK.txt   11 KB 1 version

  • 2.  RE: SDK Installation basic question

    Posted 08-09-2022 10:10
    Edited by Brian Anderson 08-09-2022 10:34

    While I'm not sure on the errors with the SDK, I use a simpler approach and has worked really well for all of the integrations I have developed. Please see a few links below. I use the generic ss.makeCall() function when including the following library where you can make any call you want.  Also, below please find a link to the composer which allows you to interactively test each call first before putting into your code. Please let me know if you would like to set up a session to talk through development, happy to assist. 



    Example usage:

    Testing individual APIs interactively:

    Brian Anderson
    Director, Technology, Office of the CTO
    Redwood Shores CA