Comments (6)
This issue is caused by a name collision issue between diff_match_patch and diff_match_patch_python. This program requires diff_match_patch-python, but diff_match_patch is installed by default on many systems. I uninstalled diff_match_patch using pip uninstall diff_match_patch
and it works as intended.
I'm on MacOS using a Conda environment with Python 3.9 installed.
I'm not sure if this is an optimal solution, as diff_match_patch seems to be a frequently used library, but it works for me.
from pdf-diff.
from pdf-diff.
Hi,
I have the same problem. Is it possible that you have a typo in the script?
Maybe it is diff_match_patch.diff_main instead of just diff_match_patch.diff?
from pdf-diff.
hi, for windows there isn't anything like pdf-diff we have to install poppler and visual c++ 14.0 requirement, and then it works,
it is pip install diff_match_patch_python
from pdf-diff.
It works for me if I change line 122 into diff_match_patch.diff_match_patch().diff_main
from pdf-diff.
Use
pip uninstall diff_match_patch
and
pip install diff_match_patch_python
pip install pdf-diff
It works like a charm without any issue. readjfb your suggestions helped a lot in a pdf comparison project.
from pdf-diff.
Related Issues (20)
- changes detected where no changes are present HOT 1
- NOOB needs help installing the requirements HOT 1
- FileNotFoundError running diff command HOT 3
- fatal error: Python.h File missing during setup HOT 2
- mark_eol_hyphen: 'NoneType' object has no attribute 'endswith'
- File Not Found
- No module named pdf_diff HOT 4
- Windows support HOT 9
- fatal error: 'limits' file not found
- cannot see json output
- output pdf
- [Contrib] Dockerfile
- During `pip3 install pdf-diff`, error in "diff-match-patch-python" package. HOT 2
- OSError: cannot write mode RGBA as JPEG
- Comparision for large documents
- Can I run it on windows?
- no differences but two completely different pdf.How to solve it?
- pdf-diff prints a blank comparison document HOT 1
- Output as PDF annotations instead of images HOT 1
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 pdf-diff.