agentops icon indicating copy to clipboard operation
agentops copied to clipboard

Can't start/end session

Open alvins82 opened this issue 1 year ago • 2 comments

🐛 Bug Report

🔎 Describe the Bug When trying to init agentops - it should start session if I set auto_start_session=True. It doesn't seem to or may do but if I try end_session - it fails with error saying no current session. I also don't get anything logged in the dashboard.

🔄 Reproduction Steps See below in screenshot.

🙁 Expected Behavior Expect to have data logged in dashboard.

📸 Screenshots Screenshot 2024-07-09 at 1 52 21 pm

🔍 Additional Context If I try start a session manually says configuration not setup. See screenshot.

Screenshot 2024-07-09 at 1 53 50 pm Screenshot 2024-07-09 at 1 54 54 pm

Thank you for helping us improve Agentops!

alvins82 avatar Jul 09 '24 03:07 alvins82

I suspect it's related to the re-intiailising of these variables. It seems to work if i restart the kernel and run it the first time. But I cannot run it again successfully without restarting the kernel (I am using it in a jupyter notebook).

alvins82 avatar Jul 09 '24 05:07 alvins82

I suspect it's related to the re-intiailising of these variables. It seems to work if i restart the kernel and run it the first time. But I cannot run it again successfully without restarting the kernel (I am using it in a jupyter notebook).

Yep-- that would be the reason. We just launched version 0.3.0 which allows for multiple sessions in a process. This should resolve the issue, but potentially it may lead to some other issue depending on how you're using it.

Can you upgrade your version and try again?

areibman avatar Jul 18 '24 08:07 areibman

Closing due to inactivity. This issue was resolved in version 0.3 as well. See more info here

bboynton97 avatar Aug 21 '24 00:08 bboynton97