← Back to Pull requests

Fixes in 2026 #203

Closed
unknown closed this pull request without merging on Nov 21, 2026 13:35 UTC
View on GitHub
unknown unknown commented on Oct 27, 2026 20:30 UTC
Author

This is an excellent project that I wanted to try, but unfortunately I wasn't
able to use it in 2026. So, I investigated why I couldn't simply pip install
...
and run the server to do the work.

Some fixes were already in the main branch, so I avoided a few issues, but
still, issues remained. I couldn't simply run the project with the main branch.

This has been due to the fact that the project suffered from 'bitrot' where
dependencies were not pinned correctly, so as time progressed, newer dependency
libraries were released (and some pulled from pypi like pypdf version 2.x.x!).
The lack of a lockfile (besides uv.lock, which was helpful in diagnosing what
dependencies would/could exist) meant that pypdf, which was a dependency in an
older version of camelot, was missed and wouldn't work out of the box - an
undeclared dependency. So on and so forth.

After I finished manually debugging, I prompted the Grok 4.6 AI agent with this:

I'm having trouble getting this project, excalibur-py, to process the PDF files

I've uploaded to it. I've opened a new AI (Cursor, this program) project within

it to help me diagnose the issues and start the local dev webserver correctly

such that I can process my PDF files that I upload.

> The usual instructions are to install it from the internet's 1.0.1 version of

excalibur-py simply by doing pip install excalibur-py , then run excalibur-py

initdb, then run excalibur-py webserver, and then use the web browser to

process the PDF through the spawned webserver.

> Unfortunately I ran into a few issues:

> A) I was able to install excalibur-py but I had to manually install the python

package pypdf which excalibur-py requires when I ran the commands to

initialize the db and run the webserver. B) Processing the PDF with the

webserver doesn't work - when I click upload files, it shows an internal error

with since-deprecated python code raising an error. This encouraged me to try to

install and run the github hosted version which had fixes since the 1.0.1

release.

> After some further research, it seems like the vast majority of development work

was done in 2020. There have been a few merge requests that have merged that

have some tentative fixes, though. In my opinion, the bitrot suffered in this

project is due to this and it, at one point, expected versions of the python

libraries to just be available or were not pinned to a specific version. With

this in mind, I would probably look at simply installing relevant libraries from

the 2020 era.

> Ideally I would like:

> A) write a wrapper or scripts that runs the server successfully

B) a docker container such that I don't need to do any fixes that runs the

server successfully

C) use the local cloned down version of excalibur-py that runs the

server successfully

> Any one of them that process a PDF successfully would be acceptable.

Broadly, this commit accomplishes several items:

1. Upgrades several libraries to the latest (camelot to 2.0, pypdfium2 to 5.14,
pypdf to 5.1) and locks them in the uv.lock file and in the pyproject.toml
file appropriately with semantic versioning in mind, i.e. camelot is
specified as 2.0+,<3.0 so that we do not get breaking changes in the future
etc.

2. Adds EXCALIBUR_WEB_PORT EXCALIBUR_WEB_HOST environment variables as an
alternative to the excalibur.cfg file configuration options - this allowed
some easier configuration than editing a file, which, ironically, the AI
agent did have a separate file of yet continued with this fix (which I agree
with in any case)

3. Removed the use of the python package six which is python 2 to 3
compatibility package. At first glance as I am writing this commit message
and reviewing this code, the package has not been removed from the excalibur
project yet, so that is a future task to do. The reason why we do not need
six is because this is a python 3 project (proudly so, it seems, as per the
README!)

4. Fix a scenario where excel exports would error if the table to export's
length is 0

5. Fix a bug where if no tables were processed we wouldn't show anything on the
page. Instead, we now show a message saying "No tables were found with this
flavor. Ruled tables use Lattice. Tables separated by whitespace use Stream."

6. Drop support for python 3.9

7. Commit a test that was created during the AI's testing process (we will be
adding testing in the next few commits, as promised... 6 years ago... haha)

8. Adds testing with pytest with 5 tests written

Diff: 574 lines (+430 / -144) across 7 files Reviewer: bosd Review duration: 35584m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 574 lines diff across 7 files
0.50
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.380
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #203"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 49.8% (MEDIUM) · Higher = larger blast radius
49.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19.7% · Safe to merge
19.7%