Added information and error message for Python 3.14 users facing mark…#2
Open
havelentzas wants to merge 1 commit into
Open
Added information and error message for Python 3.14 users facing mark…#2havelentzas wants to merge 1 commit into
havelentzas wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python 3.14 compatibility warning for PDF input
Summary
.md,.markdown,.txt, and.texinput works finepyproject.tomlclassifiers to include Python 3.13pipeline.pythat surfaces when marker-pdf fails on Python 3.14, directing users to the README and suggesting they pass a.mdfile or downgrade to Python 3.12/3.13Background
Also see #1
marker-pdfdepends onsurya-ocr0.12.x, which was built againsttransformers4.43.x. On Python 3.14,tokenizers0.20.x (required to downgrade transformers) cannot be compiled from source becausepyo30.22.5 only supports up to Python 3.13. Thetransformersversion that installs in a Python 3.14 environment (4.57+) has breaking changes for surya's composition config classes that cause PDF conversion to fail. Passing a pre-converted.mdfile bypasses marker entirely and works without issue on Python 3.14.