Code Monkey home page Code Monkey logo

Comments (4)

johnd0e avatar johnd0e commented on June 29, 2024

It is installed as script with name ydiff (without extension).
I'd be possible to run it with python.exe ydiff, but it seems Windows is not supported atm:

Traceback (most recent call last):
  File "ydiff", line 7, in <module>
    sys.exit(ydiff.main())
  File "C:\APPs\Development\WinPython\python-3.8.0\lib\site-packages\ydiff.py", line 794, in main
    signal.signal(signal.SIGPIPE, signal.SIG_DFL)
AttributeError: module 'signal' has no attribute 'SIGPIPE'

See #81.

In short: apply this patch: https://patch-diff.githubusercontent.com/raw/ymattw/ydiff/pull/81.patch

from ydiff.

johnd0e avatar johnd0e commented on June 29, 2024

To install ydiff command into git:

  1. Make sure that python directory is in PATH
  2. In directory git\usr\bin\ create file git-ydiff:
    #!/usr/bin/env python
    
    import sys
    import ydiff
    sys.exit(ydiff.main())
  3. All is done!
    Run git ydiff

from ydiff.

sergeevabc avatar sergeevabc commented on June 29, 2024

ydiff 1.1 outputs much like you posted above. I believe the patch you advertised earlier should be applied to roll out 1.2, huh?

[18:34] C:\Python\Scripts $ py ydiff
Traceback (most recent call last):
  File "ydiff", line 7, in <module>
    sys.exit(ydiff.main())
  File "c:\python\lib\site-packages\ydiff.py", line 794, in main
    signal.signal(signal.SIGPIPE, signal.SIG_DFL)
AttributeError: module 'signal' has no attribute 'SIGPIPE'

from ydiff.

ymattw avatar ymattw commented on June 29, 2024

Ydiff is never declared supporting Windows. I see the "'ydiff' is not recognized as an internal or external command" problem is already answered, so going to close this. The SIGPIPE problem is tracked in #81.

Truly sorry for not able to answer earlier.

from ydiff.

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.