Skip to content
\n

Throws error:

\n
    g.execute(\"git\", \"add\", \"package.json\")\n  File \"/Users/irmantas/projects/app/venv/lib/python3.7/site-packages/git/cmd.py\", line 741, in execute\n    **subprocess_kwargs\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py\", line 753, in __init__\n    errread, errwrite) = self._get_handles(stdin, stdout, stderr)\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py\", line 1376, in _get_handles\n    p2cread = stdin.fileno()\nAttributeError: 'str' object has no attribute 'fileno'\n
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

I thinks this is what you are looking for.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1144#discussioncomment-408790"}}}

Unable to execute git add command #1144

Answered by Byron
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #975 on February 26, 2021 11:18.