Environment error while accessing z/OS SMFdata from jupyterlab interface

Hi,

We are facing and issue while trying to access z/OS data from Jupyterlab interface.

Please find below the host and workstation environment details

z/OS:
z/OS version 2.5
z/OSMF and z/OS Datagather

In workstation we had setup the below:

Python in Workstation : 3:10:9
IBM SMFexplorer
Jupyterlab interace

After the above setup, we have verified the z/OS DataGatherer SMF REST services via the SwaggerUI URL hostname:32201/zosmf/zosdg/smf/

Then we invoked jupyterlab interface via the below method


.\start.bat
Activating environment…
What is your connection string?: https://hostname:32201/zosmf/zosdg/smf/
Enter your username: xxxx
Enter your password:
Starting Jupyter Lab…


Then in jupyterlab interface when we try to access the z/OS data, we are getting below error.


EnvironmentError Traceback (most recent call last)
Cell In[3], line 1
----> 1 print(smfexplorer.check_dataset(DATASET))

File ~\AppData\Local\Programs\SMF Explore\IBM-SMF-Explorer-main.setup_venv\lib\site-packages\smfexplorer_init_.py:258, in check_dataset(dataset_name)
249 def check_dataset(dataset_name: str) → bool:
250 “”“Check if dataset_name is accessible from the default Environment
251
252 Args:
(…)
256 EnvironmentError: If no default Environment is set
257 “””
→ 258 env = __EnvironmentFactory.get_default_environment()
259 if not env:
260 _LOG.debug(“Default environment not set”)

File ~\AppData\Local\Programs\SMF Explore\IBM-SMF-Explorer-main.setup_venv\lib\site-packages\smfexplorer\core\environment\factory.py:117, in EnvironmentFactory.get_default_environment(cls)
110 “”“Return the default environment or try to initialize one.
111
112 If the the default environment was not yet created this calls
113 init_default_environment().
114 The default environment might be None if the factory was unable to create one.
115 “””
116 if cls.__default_environment is None:
→ 117 cls.init_default_environment()
118 return cls.__default_environment

File ~\AppData\Local\Programs\SMF Explore\IBM-SMF-Explorer-main.setup_venv\lib\site-packages\smfexplorer\core\environment\factory.py:70, in EnvironmentFactory.init_default_environment(cls)
64 elif “SMFPY_CONNECTION_STRING” in os.environ:
65 _LOG.debug(
66 “Connection string was found in environment variable: ‘%s’”,
67 os.environ[“SMFPY_CONNECTION_STRING”],
68 )
—> 70 cls.__default_environment = cls.create_environment(
71 os.environ[“SMFPY_CONNECTION_STRING”]
72 )
74 if cls.__default_environment is not None:
75 return

File ~\AppData\Local\Programs\SMF Explore\IBM-SMF-Explorer-main.setup_venv\lib\site-packages\smfexplorer\core\environment\factory.py:162, in EnvironmentFactory.create_environment(cls, connection_string)
160 environment = cls.environment_classesmode
161 if not environment.check():
→ 162 raise error.EnvironmentError(
163 “Basic check with the provided connection string failed. Make sure that the provided connection string is correct and there are no connectivity issues”,
164 mode=mode,
165 )
167 return environment

EnvironmentError: Basic check with the provided connection string failed. Make sure that the provided connection string is correct and there are no connectivity issues


Could someone please let us know if we are missing anything from our side.