Tag: python

Error when downloading package using git+ssh

I am working on creating a private package repository for my company and am trying to download the package from Github. I believe the package should compile, as I have uploaded this as a test function to PyPI. The error I get is: FileNotFoundError: [Errno 2] No such file or directory: setup.py I am cloning […]

App Engine Flexible – requirements.txt include GCP repository

I am trying to set up an application running in a python 3 App Engine Flexible environment. I have an app.yaml file: runtime: python env: flex entrypoint: gunicorn -b :$PORT application:app runtime_config: python_version: 3 I have a requirements.txt listing some packages my app needs: Flask==0.12 gunicorn==19.7.1 … I also have a common functions package that […]

Use Git commands within Python code

I have been asked to write a script that pulls the latest code from Git, makes a build, and performs some automated unit tests. I found that there are two built-in Python modules for interacting with Git that are readily available: GitPython and libgit2. What approach/module should I use?

gh-pages will not refresh after CircleCI build

I have a python package with documentation built by sphinx, and a gh-pages branch setup for github pages. I have a script that when run locally will publish my changes without issue. At the end of a CircleCI test cycle the script runs without errors but the changes will not show in the actual page. […]

Volttron – refusing to run as root to prevent potential damage

I am running Ubuntu Desktop 16.04 on a VM and am trying to run Volttron using the standard install instructions, however I keep getting an error after the following steps: sudo apt-get update sudo apt-get install build-essential python-dev openssl libssl-dev libevent-dev git git clone https://github.com/VOLTTRON/volttron cd volttron python bootstrap.py My problem is with the last […]

git error: cannot spawn .git/hooks/post-commit: No such file or directory

I’m trying to write a post-commit hook, I have a Git repository on a mapped drive (V:), msysgit installed in C:\Git, and Python in C:\Python26. I’m running TortoiseGit on Windows 7 64 Bit. The script is: #!C:/Python26/python import sys from subprocess import Popen, PIPE, call GIT_PATH = ‘C:\Git\bin\git.exe’ BRANCHES = [‘master’] TRAC_ENV = ‘C:\TRAC_ENV’ REPO_NAME […]

Using un-managed file in Jenkins build step

I’ve just started using Jenkins today, so it’s entirely possible that I’ve missed something in the docs. I currently have Jenkins set up to run unit tests from a local Git repo (via plugin). I have set up the environment correctly (at least, in a seemingly working condition), but have run into a small snag. […]

commit & push to remote git repo via webhook?

I want to commit to a git repo from app-engine via webhooks. I cannot install git on appengine. Possible? I think it should be on GitHub, because they have a browser based text editor which can commit via the browser. E.g. go here and click the edit button. GitHub api docs imply read-only operations which […]

error: cannot run ssh: No such file or directory

I am running into an issue when trying to do a git push on a Popen() function where I get an ssh error error: cannot run ssh: No such file or directory fatal: unable to fork I believe this error is due to the fact that ssh is not in my python scripts path? If […]

Properly specifying path for git pull from my local development machine

I’m trying to setup Fabric so that I can automatically deploy my Django app to my web server. What I want to do is to pull the data from my Development machine (os X) to the server. How do I correctly specify my path in the git url? This is the error I’m getting: $ […]

Git Baby is a git and github fan, let's start git clone.