I have made a Trie data structure in Python and stored it as a Pickle object but when I trie to load it using R studio which I am using for developing my user interface in Shiny, I get the error: Error in py_call_impl(callable, dots$args, dots$keywords) : AttributeError: Can't get attribute 'Trie' on
My R code is as follows: library(reticulate) library(XRPython) source_python("pickle_reader.py") pickle_data <- pickle_reader("query_trie_harshil.pkl")
And pickle_reader() is a Python function which I am calling from my R script which loads the pickle object. If you guys have any idea of how to resolve this problem, it would be much appreciated.