joweich / chat-miner

Parsers and visualizations for chats
MIT License
567 stars 56 forks source link

Can't run the parser #103

Closed miguelgazela closed 1 year ago

miguelgazela commented 1 year ago

Is there a specific Python version that should be used to run this parser? I can't run this, every time I solve an issue I have another one. I'm currently using Python 3.10.0.

joweich commented 1 year ago

@miguelgazela that's unfortunate. We have tests for Python 3.8, 3.9, and 3.10. The version pulled for 3.10 is 3.10.12. What are the specific issues you are facing and which parser are you using?

miguelgazela commented 1 year ago

So, the current one is this one:

Screenshot 2023-08-31 at 16 59 43

I also have this one, which I think I solved it by turning pd.Series[str] into pd.Series(str) and pd.Series[int] into pd.Series(int), but I'm not sure that is equivalent.

Screenshot 2023-08-31 at 17 01 12
joweich commented 1 year ago

I see you're using Python 3.11. I will try to reproduce your issue.

joweich commented 1 year ago

@miguelgazela I was able to find the root cause in the typing we added in #98. For now, I removed all typing from the visualizations module as covering several python versions would add lots of boilerplate code. This fixed the issue for you!

miguelgazela commented 1 year ago

Yep, it solved it! No more errors now, thanks!

KianKhadempour commented 1 year ago

Oops.