Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xbrl.TaxonomyNotFound #120

Open
rainergo opened this issue Nov 6, 2023 · 2 comments
Open

xbrl.TaxonomyNotFound #120

rainergo opened this issue Nov 6, 2023 · 2 comments
Assignees

Comments

@rainergo
Copy link

rainergo commented Nov 6, 2023

Hi,
I got an error while trying to parse local xbrl package (structure is as recommended in your docs):
xbrl.TaxonomyNotFound: The taxonomy with namespace http://xbrl.ifrs.org/taxonomy/2021-03-24/ifrs-full could not be found. Please check if it is imported in the schema file

But: py-xbrl already downloaded this taxonomy into the "cache" folder. Why can't it find it?

Update: I found the answer: Because your "taxonomy.py" file does not contain the updated ifrs-taxonomy. I manually inserted it by adding: "http://xbrl.ifrs.org/taxonomy/2021-03-24/ifrs-full": "http://xbrl.ifrs.org/taxonomy/2021-03-24/full_ifrs/full_ifrs-cor_2021-03-24.xsd",.

It works now. But how can I update taxonomies without going deep into your code? Is there a function for it or do you plan to add it?

Thanks.

@Cave-Johnson
Copy link

Similar issue open here with some UK referenced taxonimies - #112.

You could create a PR to include yours, I am looking to do the same with the ones for the other thread. But this will require the author to accept and merge

@manusimidt manusimidt self-assigned this Nov 20, 2023
@manusimidt
Copy link
Owner

@rainergo Thanks for the issue, sorry for the late reply.
When all XBRL submissions would strictly follow the XBRL Specification, the manual mapping between namespaces and schema-urls would not be necessary. However, in practice, there are many XBRL submissions that use a namespace from an XBRL taxonomy without declaring the schema URL. Often these URLs are from commonly known taxonomies, in which case py-xbrl should still be able to parse them, therefore I created the manual table.

It is planned to create a functionality that py-xbrl automatically downloads the latest taxonomy namespaces and schema URLs for SEC EDGAR taxonomies (see #76). The SEC provides a file that exactly defines this mapping (edgartaxonomies.xml). However, I am not aware of a similar service by the UK company house, but please let me know if you found something!

manusimidt added a commit that referenced this issue Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants