gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

The cache is invalid or not created

Open carlosalvidrez opened this issue 6 years ago • 5 comments

Hi guys, I got the cache ... used it well, but after upgrading my computer's OS, I started getting this error. I know I have the cache in the same place, same permissions (everyone can read+write), and yet I get this error when invoking the get_metadata method. Any hints?

"The cache is invalid or not created"

I'd like to avoid having to recreate the cache, as it may take hours on end to download.

Thanks!

carlosalvidrez avatar Aug 25 '18 00:08 carlosalvidrez

Thanks for reaching out. I haven't experienced this issue before. Could you provide some more details on your OS version before/after the update, your Python version, which metadata store you're using (Fuseki, SleeypyCat or SQLite), etc.? Thanks in advance!

c-w avatar Aug 25 '18 20:08 c-w

Resolving since there was no activity on this issue in a while. Please feel free to re-open with the additional information requested above if you still require assistance. Thanks in advance!

c-w avatar Apr 26 '19 04:04 c-w

hi @c-w , I experience the same issue. But instead of updating the system, I tried to do something with all books in english, i.e. book_ids = get_etexts('language', target_language). After that, the cache becomes invalid and I have to re-download it for hours.

haoyudong-97 avatar Oct 03 '19 20:10 haoyudong-97

Hi I just encountered something similar. I was running my code a couple of times and this error popped up

...
MemoryError: (12, 'Cannot allocate memory -- Lock table is out of available locker entries')

During handling of the above exception, another exception occurred:
...
    raise InvalidCacheException('The cache is invalid or not created')
gutenberg._domain_model.exceptions.InvalidCacheException: The cache is invalid or not created

Searching for the memory error I found this resource: major.io

I'm going to see if this sorts out the issue and get back to you

Relavent info for my situation: only using: gutenberg.query.api.git_metadata() and I'm using it to get the author and titles only

I'm running

  • macOS: 10.15.5
  • python: 3.7.7

brendanlafferty avatar Aug 21 '20 06:08 brendanlafferty

Unfortunately I don't know too much about what I'm doing. I realize now the reference I listed just rebuilds their data base : ( . but it looks like they identified an issue with stopping the process with keyboard interrupts. Which definitely could be the reason I ran into this error. I have canceled a few scripts mid process and it happened just after making a few tweaks and restarting : (. Not sure if you can help, but I'd appreciate any advice/perspective : )

brendanlafferty avatar Aug 21 '20 06:08 brendanlafferty