Intellicus Enterprise Reporting and Business Insights 19.1

Installing intellicuspy on Windows

0 views July 28, 2020 0

Install intellicuspy server on a Windows machine using the following commands:

  1. #Install Intellicuspy

pip install ––index-url https://test.pypi.org/simple/ ––extra-index-url https://pypi.org/simple/ intellicuspy

  1. #Navigate to below location where your intellicuspy is installed and this will be your PYTHONDIR :

C:UsersAdminAppDataLocalProgramsPythonPython37Libsite-packagesintellicuspy

Creating intellicuspy Configuration file

#intellicuspy needs a configuration file to run, read about the configurations and its properties at https://test.pypi.org/project/intellicuspy/

#Ideally the configuration file should look something like the below snippet:

{

“port”: 45460,

“log_level”: “DEBUG”,

“log_path”: “path/to/logs”,

“max_clients” : 10,

“request_timeout”: 600,

“flake8_errors_to_consider”: “E101,E112,E113,E9,F8”,

“encryption” : {

“to_encrypt”: “True”,

“key”: “”,

“iv”: “”

},

“load_models_while_startup”: “False”,

“model_load_info”: [{

“load_model_dir”: “path/to/models”,

“load_model_names”: [

“lg”,

“lg2”

],

“load_all_models”: “False”,

“module_name”: “pickle”,

“import_syntax”: “import pickle as pickle”

}]

}

# the value of key should be the value of IDEN_K property placed in ReportEngine.properties file.

# the value of iv should be the value of IDEN_V property placed in ReportEngine.properties file.

# the value of log path should the path of a directory where one wants the intellicuspy logs to be created.

# save this file and note the directory, this path will be referred as INTELLICUSPY_CONFIGURATION_PATH henceforth.

Starting intellicuspy

Start intellicuspy using the below commands:

  1. #Navigate to PYTHONDIR

cd PYTHONDIR

  1. #Edit runpyserve.py
  2. #Replace line#1 from this line “from intellicuspy.executor import Intellicuspy”
  3. #provide INTELLICUSPY_CONFIGURATION_PATH (created above) in line #2 of runpyserve.py
  4. #save runpyserve.py and exit from editor
  5. #Navigate to bin directory

cd bin

#Run startintellicuspy.bat

./startintellicuspy.dat

#You will not be notified of any message

Note: If error occurs while starting intellicuspy, replace ‘/’ in all provided paths by ‘//’.
Note: If the above command fails, navigate to the path where runpyserve.py is installed and execute the below command:
Python ./runpyserve.p