Ungraded Lab - Hyperparameter Tuning and Model Training with TFX

Hi,
I am trying to run "Ungraded Lab - Hyperparameter Tuning and Model Training with TFX C3W1 notebook on my windows local machine.
at below code getting

# Ignore TF warning messages
tf.get_logger().setLevel('ERROR')

# Setup the Transform component
transform = Transform(
    examples=example_gen.outputs['examples'],
    schema=schema_gen.outputs['schema'],
    module_file=os.path.abspath(_transform_module_file))

# Run the component
context.run(transform)

CalledProcessError Traceback (most recent call last)
~\AppData\Local\Temp\1\ipykernel_29372\732702845.py in <cell line: 11>()
9
10 # Run the component
—> 11 context.run(transform)

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\orchestration\experimental\interactive\interactive_context.py in run_if_ipython(*args, **kwargs)
61 # IPYTHON variable is set by IPython, see
62 # IPython reference — IPython 0.10.2 documentation.
—> 63 return fn(*args, **kwargs)
64 else:
65 absl.logging.warning(

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\orchestration\experimental\interactive\interactive_context.py in run(self, component, enable_cache, beam_pipeline_args)
181 telemetry_utils.LABEL_TFX_RUNNER: runner_label,
182 }):
→ 183 execution_id = launcher.launch().execution_id
184
185 return execution_result.ExecutionResult(

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\orchestration\launcher\base_component_launcher.py in launch(self)
198 # be immutable in this context.
199 # output_dict can still be changed, specifically properties.
→ 200 self._run_executor(execution_decision.execution_id,
201 copy.deepcopy(execution_decision.input_dict),
202 execution_decision.output_dict,

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\orchestration\launcher\in_process_component_launcher.py in _run_executor(self, execution_id, input_dict, output_dict, exec_properties)
71 # be immutable in this context.
72 # output_dict can still be changed, specifically properties.
—> 73 executor.Do(
74 copy.deepcopy(input_dict), output_dict, copy.deepcopy(exec_properties))

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\components\transform\executor.py in Do(self, input_dict, output_dict, exec_properties)
528 label_outputs[labels.CACHE_OUTPUT_PATH_LABEL] = cache_output
529 status_file = ‘status_file’ # Unused
→ 530 self.Transform(label_inputs, label_outputs, status_file)
531 logging.debug(‘Cleaning up temp path %s on executor success’, temp_path)
532 io_utils.delete_dir(temp_path)
~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\components\transform\executor.py in Transform(failed resolving arguments)
1014 materialize_output_paths = value_utils.GetValues(
1015 outputs, labels.TRANSFORM_MATERIALIZE_OUTPUT_PATHS_LABEL)
→ 1016 preprocessing_fn = self._GetPreprocessingFn(inputs, outputs)
1017 stats_options_updater_fn = self._GetStatsOptionsUpdaterFn(inputs)
1018 per_set_stats_output_paths = value_utils.GetValues(

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\components\transform\executor.py in _GetPreprocessingFn(self, inputs, unused_outputs)
875 ‘be supplied in inputs.’)
876
→ 877 fn = udf_utils.get_fn(
878 {
879 standard_component_specs.MODULE_FILE_KEY:

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\components\util\udf_utils.py in get_fn(exec_properties, fn_name)
54 if has_module_path:
55 module_path = exec_properties[_MODULE_PATH_KEY]
—> 56 return import_utils.import_func_from_module(module_path, fn_name)
57 elif has_module_file:
58 if has_fn:
~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\utils\import_utils.py in import_func_from_module(module_path, fn_name)
53 wheel_context_manager = udf_utils.TempPipInstallContext([wheel_path])
54 with _imported_modules_from_source_lock:
—> 55 wheel_context_manager.enter()
56 if module_path in sys.modules:
57 importlib.reload(sys.modules[module_path])

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\components\util\udf_utils.py in enter(self)
305 self.temp_directory = tempfile.mkdtemp()
306 for dependency in self.pip_dependencies:
→ 307 install_to_temp_directory(dependency, temp_dir=self.temp_directory)
308 sys.path = sys.path + [self.temp_directory]
309 os.environ[‘PYTHONPATH’] = ‘:’.join(sys.path)

~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tfx\components\util\udf_utils.py in install_to_temp_directory(pip_dependency, temp_dir)
337 ]
338 logging.info(‘Executing: %s’, install_command)
→ 339 subprocess.check_call(install_command)
340 logging.info(‘Successfully installed %r.’, pip_dependency)
341 return temp_dir

C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\subprocess.py in check_call(*popenargs, **kwargs)
362 if cmd is None:
363 cmd = popenargs[0]
→ 364 raise CalledProcessError(retcode, cmd)
365 return 0
366

i am getting above error , can not proceed further .
could anyone debug what is issue?

type or paste code here

Can you please try the lab on linux? Google colab runs on linux.

on colab it runs fine without any error ,but same notebook on gcp notebook instance not running

Please share the stacktrace of the error you are observing in reply to this message.