Repository: Giskard-AI/giskard-oss
Issue: [GSK-1248] TypeError: 'type' object is not subscriptable
Root cause: Environment Incompatibility

### Issue Type

Bug

### Source

source

### Giskard Library Version

2.0.0b3

### Giskard Server Version

2.0.0b3

### OS Platform and Distribution

Windows 11

### Python version

3.8.8

### Installed python packages

_No response_

### Current Behaviour?

```shell
I ran this code from the demo in a notebook:

from giskard import demo, Dataset

wrapped_dataset = Dataset(
    df=demo.titanic_df(),
    target="Survived",  # Ground truth variable
    cat_columns=['Pclass', 'Sex', "SibSp", "Parch", "Embarked"]
)

I expected it to create a dataset, but I received an error
```


### Standalone code OR list down the steps to reproduce the issue

```shell
from giskard import demo, Dataset

wrapped_dataset = Dataset(
    df=demo.titanic_df(),
    target="Survived",  # Ground truth variable
    cat_columns=['Pclass', 'Sex', "SibSp", "Parch", "Embarked"]
)
```


### Relevant log output

```shell
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[1], line 1
----> 1 from giskard import demo, Dataset
      3 wrapped_dataset = Dataset(
      4     df=demo.titanic_df(),
      5     target="Survived",  # Ground truth variable
      6     cat_columns=['Pclass', 'Sex', "SibSp", "Parch", "Embarked"]
      7 )

File c:\Users\xxxxxx\AppData\Local\Programs\Python\Python38\lib\site-packages\giskard\__init__.py:6
      2 """Inspect your AI models visually, find bugs, give feedback 🕵️‍♀️ 💬"""
      4 import sys
----> 6 from giskard.client.giskard_client import GiskardClient
      7 from giskard.client.project import Project
      8 from giskard.core.suite import Suite, SuiteInput

File c:\Users\xxxxxx\AppData\Local\Programs\Python\Python38\lib\site-packages\giskard\client\giskard_client.py:19
     17 import giskard
     18 from giskard.client.dtos import TestSuiteDTO
---> 19 from giskard.client.project import Project
     20 from giskard.client.python_utils import warning
     21 from giskard.core.core import ModelMeta, DatasetMeta, TestFunctionMeta, SMT

File c:\Users\xxxxxx\AppData\Local\Programs\Python\Python38\lib\site-packages\giskard\client\project.py:3
      1 from requests_toolbelt.sessions import BaseUrlSession
----> 3 from giskard.utils.analytics_collector import anonymize, analytics
      6 class Project:
      7     def __init__(
      8             self, session: BaseUrlSession, project_key: str, project_id: int
      9     ) -> None:

File c:\Users\xxxxxx\AppData\Local\Programs\Python\Python38\lib\site-packages\giskard\utils\analytics_collector.py:90
     86     properties: Any
     87     meta: Any
---> 90 class GiskardAnalyticsCollector:
     91     lock = Lock()
     92     ip: Optional[str]

File c:\Users\xxxxxx\AppData\Local\Programs\Python\Python38\lib\site-packages\giskard\utils\analytics_collector.py:99, in GiskardAnalyticsCollector()
     97 giskard_version: Optional[str]
     98 environment: str
---> 99 queue: Queue[TelemetryMessage] = Queue()
    101 def __init__(self) -> None:
    102     self.is_enabled = not settings.disable_analytics

TypeError: 'type' object is not subscriptable
```


<sub>[GSK-1248](https://linear.app/giskard/issue/GSK-1248/typeerror-type-object-is-not-subscriptable)</sub>

Hi @zivshapiraintel , thanks for reporting it. It was an issue with an early beta release, in the end this code didn't go to production, so shouldn't cause problems anymore.

We just prepared a public beta release - `2.0.0b4` that's more stable and ready to be tested. 

You can find more information on our updated website and documentation:
- http://giskard.ai/
- https://docs.giskard.ai/

Thanks!

thanks @andreybavt