Hello there, i am trying to run the code from lesson 1 locally. I am running into an issue when i run the following code:
from langkit import llm_metrics. The error seems more so with the tensorflow import. I have not encountered this error before. That said, the tensorflow import and code seems to run fine on the jupyterhub. I seem to have a problem only when i connect to the jupyterhub server from my vscode.
i get the following error:
—> 14 from langkit import themes
15 from langkit import toxicity
16 from langkit import input_output
File /opt/conda/lib/python3.10/site-packages/langkit/themes.py:10
7 from torch import Tensor
8 from whylogs.experimental.core.udf_schema import register_dataset_udf
—> 10 from langkit.transformer import Encoder
12 from langkit import LangKitConfig, lang_config, prompt_column, response_column
14 diagnostic_logger = getLogger(name)
File /opt/conda/lib/python3.10/site-packages/langkit/transformer.py:16
12 _device = “cuda” if _USE_CUDA else “cpu”
15 try:
—> 16 import tensorflow as tf
17 except ImportError:
18 tf = None
File /opt/conda/lib/python3.10/site-packages/tensorflow/init.py:426
424 if _site.ENABLE_USER_SITE and _site.USER_SITE is not None:
425 _site_packages_dirs += [_site.USER_SITE]
→ 426 _site_packages_dirs += [p for p in _sys.path if “site-packages” in p]
427 if “getsitepackages” in dir(_site):
428 _site_packages_dirs += _site.getsitepackages()
File /opt/conda/lib/python3.10/site-packages/tensorflow/init.py:426, in (.0)
424 if _site.ENABLE_USER_SITE and _site.USER_SITE is not None:
425 _site_packages_dirs += [_site.USER_SITE]
→ 426 _site_packages_dirs += [p for p in _sys.path if “site-packages” in p]
427 if “getsitepackages” in dir(_site):
428 _site_packages_dirs += _site.getsitepackages()
TypeError: argument of type ‘PosixPath’ is not iterable