Giter Club home page Giter Club logo

Comments (4)

vaab avatar vaab commented on May 9, 2024

Yes, I've never tested under windows. I just did. It seems it'll need more love to work. The first issue with the code is that we are using subprocess.call and redirecting stdout and that fails. There might be numerous other incompatibilities. Sorry about that, but any PR going towards a full compatibility is welcome of course.
The documentation was misleading on this topic as I never tested before. But as a matter of fact, gitchangelog doesn' t work on Windows yet.

Here' s the first windows traceback a developper will have to overcome:

Traceback (most recent call last):
  File "C:\Python27\Scripts\gitchangelog-script.py", line 9, in <module>
    load_entry_point('gitchangelog==2.2.0', 'console_scripts', 'gitchangelog')()
  File "C:\Python27\lib\site-packages\gitchangelog.py", line 971, in main
    repository = GitRepos(".")
  File "C:\Python27\lib\site-packages\gitchangelog.py", line 560, in __init__
    self._git_version = self.swrap("git version")
  File "C:\Python27\lib\site-packages\gitchangelog.py", line 591, in swrap
    return swrap(command, **kwargs)
  File "C:\Python27\lib\site-packages\gitchangelog.py", line 362, in swrap
    return wrap(command, **kwargs).strip()
  File "C:\Python27\lib\site-packages\gitchangelog.py", line 338, in wrap
    out, err, errlvl = cmd(command, env=env)
  File "C:\Python27\lib\site-packages\gitchangelog.py", line 316, in cmd
    universal_newlines=False)
  File "C:\Python27\lib\subprocess.py", line 667, in __init__
    raise ValueError("close_fds is not supported on Windows "
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr


from gitchangelog.

FlYnN91 avatar FlYnN91 commented on May 9, 2024

Vaab, thanks for the reply. I really like the features of this tool. Shame Windows does not work. I tihink it may just give me a reason to delve into Python and see if I can help get it going on Windows.

from gitchangelog.

vaab avatar vaab commented on May 9, 2024

You might want to join force with @Shirkit on issue #6, he seems to have gone through the first exceptions. I closed this issue, but I think having a version for windows is important, and I might join effort if you need help. Let's say that #6 is the main issue for windows compatibility. I shamelessly used your issue as a reminder that the documentation was misleading into thinking that there was an actual support under windows and I fixed it by only making it clear that wasn't the case.

I really have no experience in Windows, and I had even (small) troubles to install python, pip, gitchangelog and git on it, but this doesn't mean I won't be able to help, as there will probably be some change to be done on how some subpart of gitchangelog works (as it seems from the first exception).

So feel free to jump in, I'll be keeping track, and I'll help if you have specific issues (and I'm ready now for windows testing).

If you don't do it, I'll probably try to tackle the issue myself, but I have no idea when. It could be in one year or in 3 months.

from gitchangelog.

vaab avatar vaab commented on May 9, 2024

I'm happy to announce that version 3.0.0 that was just released is full compatible with windows (full tests, packaging)

from gitchangelog.

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.