Comments (16)
https://bugs.launchpad.net/lxml/+bug/2059910 it looks like there was some changes to lxml and the minimum level of hardware has changed... it is compiled with some instructions that require a more modern CPU
this fits our pattern - the problem seems to affect people with older CPUs
from changedetection.io.
Same here.
Ubuntu 22.04.4 LTS
Upgraded from 0.45.17 to 0.45.20 and docker image is stuck on "Restarting (132)"
from changedetection.io.
"The Host OS" which VM solution are you using?
from changedetection.io.
Sorry, maybe i expressed myself wrong, i'm not using a VM.
from changedetection.io.
"The Host OS" which VM solution are you using?
I'm on Server 2016 w/ HyperV hosting that ubuntu VM.
from changedetection.io.
hmm a quick google shows me other projects have the same issue, i have no solution or dont really even know where to start
so if anyone has any ideas... :)
from changedetection.io.
Hi, I have the same problem on a dedicated server (no virtualisation) with Ubuntu 22.04.4 LTS and Docker 26.0.2.
edit:
Downgrading to Docker 25 didn't change anything, so it's not a problem with new major Docker release.
from changedetection.io.
Is this relevant? https://bugs.launchpad.net/lxml/+bug/2063343
from changedetection.io.
from changedetection.io.
I have the same problem, I switched back to version 0.45.17.
from changedetection.io.
This is follow-up: https://bugs.launchpad.net/lxml/+bug/2059910/comments/16
from changedetection.io.
This is follow-up: https://bugs.launchpad.net/lxml/+bug/2059910/comments/16
Excellent, so it means lxml 5.2.2
?
what about this syntax for the requirements.txt?
# 5.2.0 and 5.2.1 had bad CPU flags set causing a crash
lxml >=4.8.0,<6, !=5.2.0, !=5.2.1
from changedetection.io.
python3.12 -m pip uninstall lxml && python3.12 -m pip install lxml==5.2.0 && python3.12 -m pip install -r req.txt
from changedetection.io.
Ah forgot this too. So works
from changedetection.io.
looks good!
@Constantin1489 since 5.2.0/5.2.1 have the extra CFLAGs for better performance on newer CPUs, any chance you can run some of your wonderful speed/benchmark tests on 5.1.9
vs 5.2.0
?
I'm curious exactly how much faster it is
other thing, would be nice if there was a lxml[modern]
pip package where this stuff was set too.. worth asking the maintainer?
from changedetection.io.
With this shell script, and let's say the file is data/reddit.html
(python3.12 -m pip uninstall lxml -y && python3.12 -m pip install lxml==5.1.1) > /dev/null 2>/dev/null
python3.12 <<EOF
import timeit
setup_code = """
from lxml import etree, html
parser = etree.HTMLParser()
with open('data/reddit.html', 'rb') as f:
html_bytes = f.read()
"""
code = """
html.fromstring(html_bytes, parser=parser)
"""
print(timeit.timeit(setup=setup_code, stmt=code, number=1000))
EOF
(python3.12 -m pip uninstall lxml -y && python3.12 -m pip install lxml==5.2.0) > /dev/null 2>/dev/null
python3.12 <<EOF
import timeit
setup_code = """
from lxml import etree, html
parser = etree.HTMLParser()
with open('data/reddit.html', 'rb') as f:
html_bytes = f.read()
"""
code = """
html.fromstring(html_bytes, parser=parser)
"""
print(timeit.timeit(setup=setup_code, stmt=code, number=1000))
EOF
result was
$python3.12 -c 'print((16.555711069027893 - 16.908115033991635)/ 16.908115033991635 * 100)'
-2.0842297574583437
the difference between 5.1.9 and 5.2.0 is so 2%? I'm not that math savvy...
For two.. I don't know..
from changedetection.io.
Related Issues (20)
- [feature] Trig notification when price changes by pre-defined % difference or goes beyond a predefined value HOT 2
- issue when sending notification to mqtt broker HOT 12
- Text taken from wrong step of browser steps HOT 2
- [feature] Password enforced by default
- Since version 0.45.18 docker container crashes with "Exec Format Error" HOT 3
- [feature] Allow "filter can no longer be found" notifications to send to a different URL
- SMTP Notification Warning: Connection error while submitting email to (server address). Reason: SMTP AUTH extension not supported by server.
- [feature] Allow ignore_status_code to be a global option HOT 3
- [feature] Trigger Backup from command line HOT 2
- [request] proxy chromedriver on windows
- [feature] 'stats' tab should show what the server-type detected is
- [feature] allow modifying jitter at a per-watch level
- Some websites do not have changes registered
- corrupting watches
- when using Xpath selectors, loses the text encoding HOT 2
- Time Between Check says its using default settings even though a different time has been selected HOT 1
- `No matching WebSocket route handler for` after updating docker images
- [feature] "Render anchor tag content" option should be at watch-level in the Filters & Triggers section HOT 1
- Max retries exceeded with url
- [feature] Request to save the entire HTML file instead of plain text HOT 4
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 changedetection.io.