python old typing library?
I'm trying to get langtrace (https://github.com/Scale3-Labs/langtrace-python-sdk) running and whenever I import it I get this error. It's been 5 hours of debugging. I don't understand how to update the typing lib to > 3.8 (I think that's the issue?) Any ideas?
GitHub
GitHub - Scale3-Labs/langtrace-python-sdk: Langtrace SDK for Python...
Langtrace SDK for Python Applications. Contribute to Scale3-Labs/langtrace-python-sdk development by creating an account on GitHub.
10 Replies
I will give it a try tomorrow
so, one of the dependency here is requiring dependency 'typings' which we then install
and it overrides the stdlib which it shouldn't
it sounds to me like there is a faulty dependency there that should not try to declare typings as a dependency for python > 3.7
but there may be ways of catching that in windmill
awesome, that's what i was thinking as well and communicated my suspicion to the langtrace team yesterday.
They are planning to update their lib to support windmill and get some stuff in the hub.
oh that's pretty nice
but I think the dependency is not coming from them though
right, but it's being brought in by one of their dependencies because as soon as I include it in a script it fails.
yes
it's one of those:
so if you can find which one, you may be able to fix it upstream
btw we use pip-compile
so you might be able to trace it there where it's coming from
I believe it can show the full tree
perfect, thanks
found it
so it's one of those: https://github.com/Scale3-Labs/langtrace-trace-attributes/blob/main/requirements.txt
GitHub
langtrace-trace-attributes/requirements.txt at main · Scale3-Labs/l...
Trace Attributes for Langtrace. Contribute to Scale3-Labs/langtrace-trace-attributes development by creating an account on GitHub.
which seems wrong
so I would say, they probably need to fix it from source
agreed - that is one monster requirements file for a project that only uses these imports:
working with them to get this fixed. @rubenf Thanks for your help!