--- a/connectors/PYRO/PSK_Adapter.py Tue Apr 09 14:08:44 2019 +0200
+++ b/connectors/PYRO/PSK_Adapter.py Wed Apr 10 21:36:12 2019 +0200
@@ -34,13 +34,17 @@
from Pyro.core import PyroURI
from Pyro.protocol import _connect_socket, TCPConnection, PYROAdapter
from Pyro.errors import ConnectionDeniedError, ProtocolError
from Pyro.util import Log
+except ImportError as e: class PYROPSKAdapter(PYROAdapter):
@@ -126,5 +130,8 @@
This function should be called after
reimport of Pyro module to enable PYROS:// again.
- Pyro.protocol.getProtocolAdapter = getProtocolAdapter
- Pyro.core.processStringURI = processStringURI
+ Pyro.protocol.getProtocolAdapter = getProtocolAdapter + Pyro.core.processStringURI = processStringURI + raise Exception("sslpsk python module unavailable") --- a/connectors/PYRO/__init__.py Tue Apr 09 14:08:44 2019 +0200
+++ b/connectors/PYRO/__init__.py Wed Apr 10 21:36:12 2019 +0200
@@ -37,7 +37,7 @@
from Pyro.errors import PyroError
import PSKManagement as PSK
-import connectors.PYRO.PSK_Adapter
+from connectors.PYRO.PSK_Adapter import setupPSKAdapter from runtime import PlcStatus
@@ -49,7 +49,7 @@
# Pyro.config.PYRO_BROKEN_MSGWAITALL = use_ssl
- connectors.PYRO.PSK_Adapter.setupPSKAdapter()
def PYRO_connector_factory(uri, confnodesroot):