Open Jeayea opened 1 year ago
I have the same error because my default python is version 3.11.4 (and the raised error based on documentation of Dataclasses is related with new controls included on 3.11)
To avoid this, instead to create venv as proposed, I've created it with conda:
conda create --name logai python=3.9
After environment creation you must activate it using:
conda activate logai
Into it, the installed python version (on my case at least) is 3.9.18
Go to your downloaded logai directory and as requested from there execute pip:
pip install logai (and [all]
I have this same error also, any way to resolve this withoug conda?
I fixed this! In data_model.py, the LogRecordObject properties should look like this:
Original
pd.DataFrame = pd.DataFrame()
Fixed:
timestamp: pd.DataFrame = field(default_factory=pd.DataFrame)
I fixed this! In data_model.py, the LogRecordObject properties should look like this: Original pd.DataFrame = pd.DataFrame() Fixed: timestamp: pd.DataFrame = field(default_factory=pd.DataFrame)
@markman623 Many thanks for advising.
I just tried and executed python3 gui/application.py
, but it still doesn't work.
What else should I do ?
Did you do that for all properties? Should look like this: timestamp: pd.DataFrame = field(default_factory=pd.DataFrame) attributes: pd.DataFrame = field(default_factory=pd.DataFrame) resource: pd.DataFrame = field(default_factory=pd.DataFrame) trace_id: pd.DataFrame = field(default_factory=pd.DataFrame) span_id: pd.DataFrame = field(default_factory=pd.DataFrame) severity_text: pd.DataFrame = field(default_factory=pd.DataFrame) severity_number: pd.DataFrame = field(default_factory=pd.DataFrame) body: pd.DataFrame = field(default_factory=pd.DataFrame) labels: pd.DataFrame = field(default_factory=pd.DataFrame)
What error exactly are you getting?
Did you do that for all properties? Should look like this: timestamp: pd.DataFrame = field(default_factory=pd.DataFrame) attributes: pd.DataFrame = field(default_factory=pd.DataFrame) resource: pd.DataFrame = field(default_factory=pd.DataFrame) trace_id: pd.DataFrame = field(default_factory=pd.DataFrame) span_id: pd.DataFrame = field(default_factory=pd.DataFrame) severity_text: pd.DataFrame = field(default_factory=pd.DataFrame) severity_number: pd.DataFrame = field(default_factory=pd.DataFrame) body: pd.DataFrame = field(default_factory=pd.DataFrame) labels: pd.DataFrame = field(default_factory=pd.DataFrame)
What error exactly are you getting?
@markman623 Sorry, Im a python noob, It worked after tried this. Thank You!
Great! Glad I could help :-) I'm also a noob so was excited when I actually fixed something :-)
when running
python ./gui/application.py
in the directory~/logai
, an error occurred.