Comments (6)
My guess is that something is wrong with the shebang in the hooks. They look like #! /usr/bin/env python
, and I think switching them to #! /usr/bin/env python3
will do the trick. However, even if that solves the problem on Linux, I'm not sure how it'll behave on other systems.
from guet.
I ran into this on Mac OSX as well where Python2 was the default installation. Python 3 is installed via homebrew at /usr/local/bin/python3.
At first, when trying to commit, I saw the module error and the commit didn't go through. After making the change you recommended above, I still see the module error, but the commit does go through.
Any thoughts?
from guet.
It's probably the post-commit hook throwing that error. The post-commit hook rotates who is considered the "author" of the commit, but nothing else. It won't stop you from development, you'll just lose out of that piece.
I'm working on a fix that'll let you initialize the commit hooks to explicitly use python3 rather than whatever the system default python is with a --python3
flag.
from guet.
This should be addressed in ec09fd2. If you pull down the most recent version from pypi and delete the current git hooks, you should be able to remake them with the --python3
flag.
from guet.
Your most recent change works, thanks! Maybe there should be a READMe note as well documenting this option?
from guet.
Done!
from guet.
Related Issues (20)
- Introduce pre-commit to project
- Update documentation to reflect recent changes.
- Create template for bug report / feature request HOT 1
- Add Support for Husky v6 HOT 2
- Update documentation to include committer add format
- Guet get outputs nothing
- Print helpful common error messages out to terminal HOT 3
- Better warning message for when guet set is called in a non-git folder
- Include comment explaining guet in local config
- Guet errors out when hooks directory isn't present in .git folder HOT 1
- Not started error message edit HOT 1
- Call unexpected errors unexpected
- Don't change committers if --no-edit supplied to commit
- Warn user when set committers and commit committers differ
- Don't show "guet successfully started" message after cancelling the request HOT 1
- Alphebatize committers list
- Gracefully fail when no committers are set in post commit hook
- Add uninstall documentation, please 🙂 HOT 2
- Add way to remove guet from initialized repo HOT 4
- Husky v5 support
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 guet.