{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Init the configuration GSettings" ] }, { "cell_type": "markdown", "metadata": {}, "source": [] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "lSettingsDirStr = r\"..\\..\\..\\OpenRPA_Creds\\Orchestrator\\Settings\" # Set Gsettings dir path str\n", "import sys\n", "sys.path.append(lSettingsDirStr) # Add path with settings in search dir for .py modules\n", "sys.path.insert(0,r\"..\") # Add path to sources - to import from experimental pyOpenRPA\n", "import SettingsOrchestratorExample\n", "gSettings = SettingsOrchestratorExample.Settings()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Run the orchestrator" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "2020-10-11 00:32:27,869 - Orchestrator - INFO - Link the gSettings in submodules\n", "2020-10-11 00:32:27,878 - Orchestrator - WARNING - Backward compatibility (v1.1.13 to v1.1.14): Add default 'Autocleaner' structure\n", "2020-10-11 00:32:27,880 - Orchestrator - WARNING - Backward compatibility (v1.1.13 to v1.1.14): Add default 'Client' structure\n", "2020-10-11 00:32:27,882 - Orchestrator - WARNING - Backward compatibility (v1.1.13 to v1.1.14): Add default 'Server' > 'RequestTimeoutSecFloat' property\n", "2020-10-11 00:32:27,883 - Orchestrator - WARNING - Backward compatibility (v1.1.13 to v1.1.14): Add default 'OrchestratorStart' > 'DefSettingsUpdatePathList' property list\n", "2020-10-11 00:32:27,886 - Orchestrator - WARNING - Backward compatibility (v1.1.20 to v1.2.0): Remove old structure 'Processor'\n", "2020-10-11 00:32:27,888 - Orchestrator - WARNING - Backward compatibility (v1.1.20 to v1.2.0): Create new structure 'ProcessorDict'\n", "2020-10-11 00:32:27,893 - Orchestrator - INFO - Server init. Listen URL: , Listen port: 80\n", "2020-10-11 00:32:27,893 - Orchestrator - INFO - Web server has been started\n", "2020-10-11 00:32:27,932 - Orchestrator - INFO - Robot Screen active has been started\n", "2020-10-11 00:32:27,937 - Orchestrator - INFO - Robot RDP active has been started\n", "2020-10-11 00:32:27,940 - Orchestrator - INFO - Autocleaner thread has been started\n", "2020-10-11 00:32:27,942 - Orchestrator - INFO - Orchestrator start activity run\n", "2020-10-11 00:32:27,944 - Orchestrator - INFO - Scheduler loop start\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "----------------------------------------\n", "Exception happened during processing of request from ('127.0.0.1', 57154)\n", "Traceback (most recent call last):\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\socketserver.py\", line 650, in process_request_thread\n", " self.finish_request(request, client_address)\n", " File \"..\\pyOpenRPA\\Orchestrator\\Server.py\", line 476, in finish_request\n", " HTTPServer.finish_request(self, request, client_address)\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\socketserver.py\", line 360, in finish_request\n", " self.RequestHandlerClass(request, client_address, self)\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\socketserver.py\", line 720, in __init__\n", " self.handle()\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\http\\server.py\", line 426, in handle\n", " self.handle_one_request()\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\http\\server.py\", line 414, in handle_one_request\n", " method()\n", " File \"..\\pyOpenRPA\\Orchestrator\\Server.py\", line 336, in do_GET\n", " lAuthenticateDict = AuthenticateVerify(self)\n", " File \"..\\pyOpenRPA\\Orchestrator\\Server.py\", line 73, in AuthenticateVerify\n", " \"Password\": lPassword\n", " File \"..\\pyOpenRPA\\Orchestrator\\ProcessorOld.py\", line 94, in Activity\n", " lItem[\"Result\"] = Processor.ActivityListExecute(inGSettings = gSettingsDict, inActivityList = [inActivity])\n", " File \"..\\pyOpenRPA\\Orchestrator\\Processor.py\", line 32, in ActivityListExecute\n", " if callable(lActivityItem[\"Def\"]): # CHeck if def is callable\n", "KeyError: 'Def'\n", "----------------------------------------\n", "----------------------------------------\n", "Exception happened during processing of request from ('127.0.0.1', 57158)\n", "Traceback (most recent call last):\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\socketserver.py\", line 650, in process_request_thread\n", " self.finish_request(request, client_address)\n", " File \"..\\pyOpenRPA\\Orchestrator\\Server.py\", line 476, in finish_request\n", " HTTPServer.finish_request(self, request, client_address)\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\socketserver.py\", line 360, in finish_request\n", " self.RequestHandlerClass(request, client_address, self)\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\socketserver.py\", line 720, in __init__\n", " self.handle()\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\http\\server.py\", line 426, in handle\n", " self.handle_one_request()\n", " File \"C:\\Abs\\Archive\\scopeSrcUL\\OpenRPA\\Resources\\WPy64-3720\\python-3.7.2.amd64\\lib\\http\\server.py\", line 414, in handle_one_request\n", " method()\n", " File \"..\\pyOpenRPA\\Orchestrator\\Server.py\", line 336, in do_GET\n", " lAuthenticateDict = AuthenticateVerify(self)\n", " File \"..\\pyOpenRPA\\Orchestrator\\Server.py\", line 73, in AuthenticateVerify\n", " \"Password\": lPassword\n", " File \"..\\pyOpenRPA\\Orchestrator\\ProcessorOld.py\", line 94, in Activity\n", " lItem[\"Result\"] = Processor.ActivityListExecute(inGSettings = gSettingsDict, inActivityList = [inActivity])\n", " File \"..\\pyOpenRPA\\Orchestrator\\Processor.py\", line 32, in ActivityListExecute\n", " if callable(lActivityItem[\"Def\"]): # CHeck if def is callable\n", "KeyError: 'Def'\n", "----------------------------------------\n" ] } ], "source": [ "from pyOpenRPA.Orchestrator import Orchestrator # Import orchestrator main\n", "Orchestrator.Orchestrator(inGSettings=gSettings) # Call the orchestrator" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.2" } }, "nbformat": 4, "nbformat_minor": 4 }