Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Jan 8, 2024
1 parent a7d36a9 commit 8e9851e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/core/langchain_core/sys_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

def print_sys_info(*, additional_pkgs: Sequence[str] = tuple()) -> None:
"""Print information about the environment for debugging purposes."""
import importlib
import platform
import sys
from importlib import metadata, util

packages = [
"langchain_core",
Expand Down Expand Up @@ -34,7 +34,7 @@ def print_sys_info(*, additional_pkgs: Sequence[str] = tuple()) -> None:

for pkg in packages:
try:
found_package = importlib.util.find_spec(pkg)
found_package = util.find_spec(pkg)
except Exception:
found_package = None
if found_package is None:
Expand All @@ -43,7 +43,7 @@ def print_sys_info(*, additional_pkgs: Sequence[str] = tuple()) -> None:

# Package version
try:
package_version = importlib.metadata.version(pkg)
package_version = metadata.version(pkg)
except Exception:
package_version = None

Expand Down

0 comments on commit 8e9851e

Please sign in to comment.