Comments (5)
I get the following error when parsing the submission provided by you.
File "E:\Programming\python\xbrl_parser\xbrl\taxonomy.py", line 215, in parse_taxonomy_url
return parse_taxonomy(schema_path, cache, schema_url)
File "E:\Programming\python\xbrl_parser\xbrl\taxonomy.py", line 343, in parse_taxonomy
concept: Concept = c_taxonomy.concepts[concept_id]
KeyError: 'curr_S%C3%A3oTom%C3%A9Pr%C3%ADncipeDobra'
Seems like the parser uses somewhere the wrong file encoding.
curr_S%C3%A3oTom%C3%A9Pr%C3%ADncipeDobra
should be curr_SãoToméPríncipeDobra
from py-xbrl.
do you have any idea on how to fix it please?
from py-xbrl.
I looked at the label linkbase again and found that this has nothing to do with the file encoding after all. The href attribute of the linkbase is simply url-encoded here.
<loc
xlink:href="currencies-2014-09-01.xsd#curr_S%C3%A3oTom%C3%A9Pr%C3%ADncipeDobra"
xlink:label="curr_SãoToméPríncipeDobra"
xlink:type="locator"/>
<labelArc
order="1.0"
xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label"
xlink:from="curr_SãoToméPríncipeDobra"
xlink:to="curr_SãoToméPríncipeDobra_lbl"
xlink:type="arc"/>
<label
xlink:label="curr_SãoToméPríncipeDobra_lbl"
xlink:role="http://www.xbrl.org/2003/role/label"
xlink:type="resource"
xml:lang="en">São Tomé and Príncipe Dobra</label>
https://xbrl.frc.org.uk/cd/2014-09-01/currencies/currencies-2014-09-01-label.xml
from py-xbrl.
Now I am getting the same error you described earlier...
Seems like this was a bug that was introduced in the latest versions of the package.
I will now check why the submission you provided fails with the error message KeyError: 'bus'
.
from py-xbrl.
Found the issue. There is always this one report which is structured slightly different...
The creator of this report defines the namespace "bus" for every xml-element instead of just defining it once at the top of the submission.
The parser currently only uses the namespace-prefix map defined by the xmlns attributes at the root element. This is why it can'T find the corresponding namespace for the prefix 'bus'.
I will have a look at the error in the next few days and hopefully have enough time to fix it before the weekend.
from py-xbrl.
Related Issues (20)
- Need path or reference to source file of a Linkbase HOT 2
- Standardised Financial Data HOT 5
- Equals method for all fact classes HOT 1
- Solution to frequently missing taxonomy specifications in UK submissions HOT 21
- Any way to get textual labels? HOT 9
- Missing fact from ixbrl HOT 8
- Date parsing fails
- "Explicit Member"s missing HOT 3
- Add support for Datetime in context duration. HOT 3
- KeyError: 'Unit_sqft' HOT 2
- Add support for the ixt-sec transformations. HOT 1
- unresolved schemas HOT 12
- Not well-formed (invalid token) error for ixblr. HOT 11
- parse_ixbrl should add encoding argument HOT 2
- Be nicer to submissions that do not follow the XBRL standard 100% HOT 6
- New 2022 taxonomies HOT 4
- Bug: instance.json('my-file.json') HOT 1
- Unclear +/- sign of some facts HOT 17
- Space in url creates issues when requesting a taxonomy
- Potential arg bug in transformations __init__ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-xbrl.