Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

strip_headers(load_etext(id)).strip() not working #148

Open
nikosRp opened this issue May 10, 2022 · 2 comments
Open

strip_headers(load_etext(id)).strip() not working #148

nikosRp opened this issue May 10, 2022 · 2 comments

Comments

@nikosRp
Copy link

nikosRp commented May 10, 2022

Hello!

I am trying to use the gutenberg package but there are issues: I use the code which is demonstrated in github but I get the following message:

raise ValueError('download URI for {} not supported'.format(etextno))
ValueError: download URI for 2701 not supported.

A couple of months ago this worked fine(used to test with book id 2542).
Also if i try book 254 the

text = strip_headers(load_etext(id)).strip()
print(text)

works fine

but the following functions:

print(get_metadata('title', 254))

and

print(get_etexts('title', 'Moby Dick; Or, The Whale'))

show this:

raise PluginException("No plugin registered for (%s, %s)" % (name, kind))
rdflib.plugin.PluginException: No plugin registered for (Sleepycat, <class 'rdflib.store.Store'>).

Is there any solution/workaround?

Thank you in advance for your time!

@c-w
Copy link
Owner

c-w commented May 10, 2022

To be honest, I haven't done anything on this repo in years so I don't know off the top of my head. @hugovk @sethwoodworth @MasterOdin any ideas?

@hugovk
Copy link
Collaborator

hugovk commented May 11, 2022

Same, and I used to use this with Windows but I'm now using Mac.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants