diff --git a/tuplex/adapters/cpython/src/PythonHelpers.cc b/tuplex/adapters/cpython/src/PythonHelpers.cc index 46b3cd0d1..7f37dd615 100644 --- a/tuplex/adapters/cpython/src/PythonHelpers.cc +++ b/tuplex/adapters/cpython/src/PythonHelpers.cc @@ -178,9 +178,6 @@ namespace python { // PyRun_SimpleString("gc.set_debug(gc.DEBUG_LEAK)"); // PyRun_SimpleString("gc.disable()"); - PyRun_SimpleString("import pickle"); - PyRun_SimpleString("import cloudpickle; print(cloudpickle.__version__)"); - // import cloudpickle for serialized functions PyObject *cloudpickleModule = PyImport_ImportModule("cloudpickle"); diff --git a/tuplex/python/tuplex/context.py b/tuplex/python/tuplex/context.py index 4267a2b1a..70ff3d8e6 100644 --- a/tuplex/python/tuplex/context.py +++ b/tuplex/python/tuplex/context.py @@ -190,9 +190,6 @@ def __init__(self, conf=None, name="", **kwargs): if options['tuplex.webui.enable']: ensure_webui(options) - # last arg are the options as json string serialized b.c. of boost python problems - logging.debug('Creating C++ context object') - # because webui=False/True is convenient, pass it as well to tuplex options if 'tuplex.webui' in options.keys(): options['tuplex.webui.enable'] = options['tuplex.webui'] @@ -201,8 +198,8 @@ def __init__(self, conf=None, name="", **kwargs): options['tuplex.webui.enable'] = options['webui'] del options['webui'] + # last arg are the options as json string serialized b.c. of boost python problems self._context = _Context(name, runtime_path, json.dumps(options)) - logging.debug('C++ object created.') python_metrics = self._context.getMetrics() assert python_metrics, 'internal error: metrics object should be valid' self.metrics = Metrics(python_metrics)