Open sbenthall opened 1 month ago
I was able to work around this issue by adding a configuration option to the library that points the path of the ietf-dt-cache.sqlite
file, and adding this to the Python sys.path
before trying to initialize the RFCIndex
.
As far as I know, this isn't documented, and I'm not sure when this sqlite
file is created.
Where would it be if ietfdata is pip installed
?
I should note that part of the fix was pip installing ietfdata
from git master, rather than the latest release.
I'm running the same file in two slightly different ways, and getting different results.
If I
git clone
this repository, then install it locally withpip install -e .
, and then dopython3 examples/drafts-for-rfc.py
, I get the following (expected)Oddly, if I have the same file in another directory, and try to run it, I get a different output:
I suppose this has to do with some way the cache is configured.
The broader issue I have is that I'm trying to use
ietfdata
as a dependency in another library. I would prefer not to use the optional cache in these cases. I'm getting the same error as above when trying to run this as part of a larger program.Any guidance on how to proceed?