Git Product home page Git Product logo

Comments (6)

readjfb avatar readjfb commented on September 16, 2024 4

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.

JoshData avatar JoshData commented on September 16, 2024

from pdf-diff.

Grandement avatar Grandement commented on September 16, 2024

Hi,

I have the same problem. Is it possible that you have a typo in the script?

image

Maybe it is diff_match_patch.diff_main instead of just diff_match_patch.diff?

from pdf-diff.

SaiSandeepKantareddy avatar SaiSandeepKantareddy commented on September 16, 2024

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.

ErqingLi avatar ErqingLi commented on September 16, 2024

It works for me if I change line 122 into diff_match_patch.diff_match_patch().diff_main

from pdf-diff.

Vetrivel-PS avatar Vetrivel-PS commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.