Skip to content

Not support async put_metrics #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
daniel2643 opened this issue Jul 4, 2024 · 2 comments
Closed

Not support async put_metrics #115

daniel2643 opened this issue Jul 4, 2024 · 2 comments

Comments

@daniel2643
Copy link

Hi,

Does anyone encounter this issue? I've attempted many solutions but none of them works.

Traceback (most recent call last):
File "/src/executor/executor_local_test.py", line 137, in
test_mkt_knowledge_entry_langgraph(llm_model['yi'])
File "/src/executor/executor_local_test.py", line 107, in test_mkt_knowledge_entry_langgraph
response = generate_answer(
File "/src/executor/executor_local_test.py", line 87, in generate_answer
response = main.lambda_handler(event, context)
File "/Users/wngao/Library/Python/3.9/lib/python/site-packages/aws_embedded_metrics/metric_scope/init.py", line 49, in wrapper
loop = asyncio.get_event_loop()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/events.py", line 642, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'MainThread'.

@fernandoaguilar
Copy link

@daniel2643 pr #113 fixes it, we ended up forking the repo temporarily while this is merged in.

@gordonpn
Copy link
Member

gordonpn commented Oct 5, 2024

#113 has merged. Just pending a release.

@gordonpn gordonpn closed this as completed Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants