question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When trying to install on windows 7 with python 2.7.11 - I got following error trace:

Collecting gitlint
  Using cached gitlint-0.8.0-py2.py3-none-any.whl
Collecting sh==1.11 (from gitlint)
  Using cached sh-1.11.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\admin\appdata\local\temp\pip-build-q_3wmy\sh\setup.py", line 4, in <module>
        import sh
      File "sh.py", line 37, in <module>
        support." % __version__)
    ImportError: sh 1.11 is currently only supported on linux and osx. please install pbs 0.110 (http://pypi.python.org/pypi/pbs) for windows support.
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\admin\appdata\local\temp\pip-build-q_3wmy\sh\

Installation of pbs 0.110 did not help to resolve the issue - same error occurs

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jorisrooverscommented, May 24, 2017

Keeping this open, as we might still consider this in the future.

0reactions
ttwistercommented, Nov 3, 2019

edit(jorisroovers): Moved this comment to a new issue - see #107

Hello,

I tried creating user-defined rules on a Windows host (using Git-Bash) and those are not discovered. I have created a CommitRule UC1 based on one of your examples.

Do you experience the same behavior?

$ gitlint --debug --extra-path myextensions/rules.py
DEBUG: gitlint.cli To report issues, please visit https://github.com/jorisroovers/gitlint/issues
DEBUG: gitlint.cli Platform: Windows-10-10.0.17763
DEBUG: gitlint.cli Python version: 2.7.16 (v2.7.16:413a49145e, Mar  4 2019, 01:37:19) [MSC v.1500 64 bit (AMD64)]
DEBUG: gitlint.cli Git version: git version 2.18.0.windows.1
DEBUG: gitlint.cli Gitlint version: 0.12.0
DEBUG: gitlint.cli GITLINT_USE_SH_LIB: [NOT SET]
DEBUG: gitlint.cli Configuration
config-path: C:\Users\xyz\path\.gitlint
[GENERAL]
extra-path: C:\Users\xyz\path\myextensions\rules.py
contrib: [u'contrib-title-conventional-commits']
ignore:
ignore-merge-commits: True
ignore-fixup-commits: True
ignore-squash-commits: True
ignore-stdin: True
verbosity: 3
debug: True
target: C:\Users\xyz\path
[RULES]
  I1: ignore-by-title
     ignore=all
     regex=^Release(.*)
  I2: ignore-by-body
     ignore=all
     regex=None
  T1: title-max-length
     line-length=70
[...]
  CT1: contrib-title-conventional-commits
     types=build,ci,doc,feat,fix,perf,refactor,style,test
[...]
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot problems updating Windows - Microsoft Support
Have issues installing Windows updates? Start here. · Free up some drive space so you can run updates · Restart to apply installed...
Read more >
17 most common Windows 10 problems and how to fix them
1. Can't upgrade from Windows 7 or Windows 8 · 2. Can't upgrade to the latest Windows 10 version · 3. You have...
Read more >
9 Most Common Windows 10 Problems and Their Solutions
9 Most Common Windows 10 Problems and Their Solutions ; #1. Stop too much data usage in the background ; #2. Minimize notifications...
Read more >
Windows 10 Troubleshooting: The Most Common Problems ...
Issues updating to the latest version of Windows 10 · Not enough storage space to complete an update · Mouse cursor starts moving...
Read more >
100 common Windows 10 problems and how to solve them
100 common Windows 10 problems and how to solve them · 1. Having enough space to install Windows 10 · 2. Checking you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found