Install intellicuspy server on a Windows machine using the following commands:
- #Install Intellicuspy
pip install –index-url https://test.pypi.org/simple/ –extra-index-url https://pypi.org/simple/ intellicuspy
- #Navigate to below location where your intellicuspy is installed and this will be your PYTHONDIR :
C:\Users\Admin\AppData\Local\Programs\Python\Python37\Lib\site-packages\intellicuspy
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:
- #Navigate to PYTHONDIR
cd PYTHONDIR
- #Edit runpyserve.py
- #Replace line#1 from this line “from intellicuspy.executor import Intellicuspy”
- #provide INTELLICUSPY_CONFIGURATION_PATH (created above) in line #2 of runpyserve.py
- #save runpyserve.py and exit from editor
- #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 ‘//’.