You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 with pip install -e ., and then do python3 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:
$ python3 tmp-rfc-example.py
WARNING:ietfdata:CACHE DISABLED
Traceback (most recent call last):
File "/home/sb/projects/bigbang/tmp-rfc-example.py", line 37, in <module>
ri = RFCIndex()
File "/home/sb/projects/bigbang/bigbang-env/lib/python3.9/site-packages/ietfdata/rfcindex.py", line 527, in __init__
raise NotImplementedError
NotImplementedError
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: