-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Test fails on OpenBSD at 2.2.0: At index 13 diff: b'\x00' != b'\x01'
#5527
Comments
I know that That's why in #5526 I suggested to exclude plugin tests from the sdist, since some of them depend not only on additional Python packages but also system packages, see below: [tool.poetry.extras]
# inline comments note required external / non-python dependencies
absubmit = ["requests"] # extractor binary from https://acousticbrainz.org/download
aura = ["flask", "flask-cors", "Pillow"]
autobpm = ["librosa", "resampy"]
# badfiles # mp3val and flac
beatport = ["requests-oauthlib"]
bpd = ["PyGObject"] # python-gi and GStreamer 1.0+
chroma = ["pyacoustid"] # chromaprint or fpcalc
# convert # ffmpeg
docs = ["pydata-sphinx-theme", "sphinx"]
discogs = ["python3-discogs-client"]
embedart = ["Pillow"] # ImageMagick
embyupdate = ["requests"]
fetchart = ["beautifulsoup4", "langdetect", "Pillow", "requests"]
import = ["py7zr", "rarfile"]
# ipfs # go-ipfs
# keyfinder # KeyFinder
kodiupdate = ["requests"]
lastgenre = ["pylast"]
lastimport = ["pylast"]
lyrics = ["beautifulsoup4", "langdetect", "requests"]
metasync = ["dbus-python"]
mpdstats = ["python-mpd2"]
plexupdate = ["requests"]
reflink = ["reflink"]
replaygain = [
"PyGObject",
] # python-gi and GStreamer 1.0+ or mp3gain/aacgain or Python Audio Tools or ffmpeg
scrub = ["mutagen"]
sonosupdate = ["soco"]
thumbnails = ["Pillow", "pyxdg"]
web = ["flask", "flask-cors"] |
@snejus 13th byte in jpeg header probably version, see: https://github.com/corkami/formats/blob/master/image/jpeg.md |
Hmm, I wonder why does it fail on your system? |
@snejus well, it writes very different images. I had "hacked" the test as: @require_artresizer_compare
def test_accept_similar_art(self):
self._setup_data(self.abbey_similarpath)
album = self.add_album_fixture()
item = album.items()[0]
self.run_command("embedart", "-y", "-f", self.abbey_artpath)
config["embedart"]["compare_threshold"] = 20
self.run_command("embedart", "-y", "-f", self.abbey_similarpath)
mediafile = MediaFile(syspath(item.path))
with open("/tmp/test-image_data.jpg", "wb") as f:
f.write(self.image_data)
with open("/tmp/test-mediafile.jpg", "wb") as f:
f.write(mediafile.images[0].data)
assert (
mediafile.images[0].data == self.image_data
), f"Image written is not {displayable_path(self.abbey_similarpath)}" And here an output as archive: images.tar.gz Or as images: |
Thanks so much for this! Interesting. I wonder whether that's not due to missing dependencies |
Problem
Setup
The text was updated successfully, but these errors were encountered: