Code Monkey home page Code Monkey logo

Comments (6)

chiptopher avatar chiptopher commented on June 15, 2024

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.

dspainte avatar dspainte commented on June 15, 2024

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.

chiptopher avatar chiptopher commented on June 15, 2024

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.

chiptopher avatar chiptopher commented on June 15, 2024

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.

meganmajewski avatar meganmajewski commented on June 15, 2024

Your most recent change works, thanks! Maybe there should be a READMe note as well documenting this option?

from guet.

chiptopher avatar chiptopher commented on June 15, 2024

Done!

from guet.

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.