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

[FIX] import_documents - replace lxml xml parser with ElementTree #973

Merged
merged 1 commit into from
May 11, 2023

Conversation

PrimozGodec
Copy link
Collaborator

@PrimozGodec PrimozGodec commented May 10, 2023

Issue

Fixes #974
lxml library is used only in importing documents to read XML files. They still didn't provide MacOS ARM wheels (Apple silicon), so installing text add-ons for users with Apple Silicon without certain compilers fails.

Description of changes

Since there exists an ElemntTree alternative to read XML, I propose replacing lxml. ElementTree is considered fast since it uses fast c implementation and it comes with python. I see a situation as a good way to eliminate one dependency.

Includes
  • Code changes
  • Tests
  • Documentation

@PrimozGodec PrimozGodec changed the title [FIX] import_documents - replace lxml xml parser with ElementTree from Python [FIX] import_documents - replace lxml xml parser with ElementTree May 10, 2023
@PrimozGodec PrimozGodec force-pushed the replace-lxml branch 4 times, most recently from 02f3fdb to b173adc Compare May 11, 2023 05:59
@codecov-commenter
Copy link

codecov-commenter commented May 11, 2023

Codecov Report

Merging #973 (5becc50) into master (c18873c) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #973      +/-   ##
==========================================
- Coverage   78.16%   78.13%   -0.03%     
==========================================
  Files          87       87              
  Lines       12321    12319       -2     
  Branches     1613     1614       +1     
==========================================
- Hits         9631     9626       -5     
- Misses       2405     2406       +1     
- Partials      285      287       +2     

@PrimozGodec PrimozGodec merged commit 58c7568 into biolab:master May 11, 2023
@PrimozGodec PrimozGodec deleted the replace-lxml branch May 11, 2023 06:50
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

Successfully merging this pull request may close these issues.

Error : Orange3-text addon cannot be installed on Apple Silicon
2 participants