I am trying to run concurrent threads which each do their own TMDB lookups, however it appears that the python module is not thread safe and I can't find a way of creating a new instance of the import without actually copying the entire package or using multiprocessing which dupes the entire process space.
Has anyone else run into this problem/knows how to solve it?
Thanks!
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ فبراير 8, 2017 في 6:58 مساءا
Hi @quietearth We don't maintain the libraries so you'll probably have better luck contacting the developer directly.
Unless someone else comes along who has experience with it of course...
رد بواسطة quietearth
بتاريخ فبراير 12, 2017 في 4:31 صباحا
For those searching from the future:
I cut out the tmdb3 caching backend (as it used a single file) and directly cached every entry by modifying put() and get() which is where all lookups are fed through (cache.py). Also, all tmdb3 lookups, eg searchMovie, require locks. This includes instance shortcuts such as title.imdb and title.alternative_titles which also performed additional lookups when accessed.