I need to install master branch of django-activity-stream. Therefore I put
the following line to my requirements.txt
-e git+git#github.com:justquick/django-activity-stream.git#master#egg=django-activity-stream
I used to work before, but it broke
Python 3.9.1
pip 21.2.4
Attempts:
pip install -e git+git#github.com:justquick/django-activity-stream.git#master#egg=django-activity-stream
ERROR: git+git#github.com:justquick/django-activity-stream.git#master#egg=django-activity-stream is not a valid editable
requirement. It should either be a path to a local project or a VCS URL
(beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp,
bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http,
hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
pip install -e git+ssh://github.com:justquick/django-activity-stream.git#master#egg=django-activity-stream
Obtaining django-activity-stream from git+ssh://github.com:justquick/django-activity-stream.git#master#egg=django-activity-stream
Cloning ssh://github.com:justquick/django-activity-stream.git (to revision master) to /Users/sarit/.pyenv/versions/3.9.1/envs/multy_herr/src/django-activity-stream
Running command git clone -q ssh://github.com:justquick/django-activity-stream.git /Users/sarit/.pyenv/versions/3.9.1/envs/multy_herr/src/django-activity-stream
ssh: Could not resolve hostname github.com:justquick: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
WARNING: Discarding git+ssh://github.com:justquick/django-activity-stream.git#master#egg=django-activity-stream. Command errored out with exit status 128: git clone -q ssh://github.com:justquick/django-activity-stream.git /Users/sarit/.pyenv/versions/3.9.1/envs/multy_herr/src/django-activity-stream Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement django-activity-stream (unavailable) (from versions: 0.2, 0.2.1, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.4.0b1, 0.4.0b2, 0.4.0b3, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5b1, 0.4.5, 0.5.0b1, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.0, 0.8.0, 0.9.0, 0.10.0)
ERROR: No matching distribution found for django-activity-stream (unavailable)
References:
pip install via requirements.txt specify a direct GitHub private repo + branch name erroring with exit status 128
https://het.as.utexas.edu/HET/Software/Pip/reference/pip_install.html
Question:
What is the correct editable of installing master branch of django-activity-stream?
These URLs work for me:
pip install -e 'git+ssh://git#github.com/justquick/django-activity-stream.git#master#egg=django-activity-stream'
and
pip install -e 'git+https://github.com/justquick/django-activity-stream.git#master#egg=django-activity-stream'
It seems pip doesn't understand scp-like Git URLs.
I'm having trouble with brew install <PackageName>
I had macOS BigSur and could use commands like brew easily but in recent downgrade (Mojave) I can't do it anymore
it freeze about 60 second and reply with (If I getting it right) that can't update the main repository
CODE :
Updating Homebrew...
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: Could not resolve HEAD to a revision
==> Homebrew has enabled anonymous aggregate formula and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics have been recorded yet (nor will be during this `brew` run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> New Casks
8x8-work disk-expert guilded odbc-manager ubports-installer
diagnostics duplicate-file-finder hush pktriot
==> Updated Casks
Updated 352 casks.
==> Deleted Casks
adafruit-arduino beautune caramba-switcher
adobe-lens-profile-creator blue-jeans-browser-plugin
Warning: No available formula or cask with the name "htop".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Homebrew is managed by git repos. From the output, homebrew is detached and homebrew-core repo is missing.
Let's try following commands to fix the repos.
# Reset remote repo for Homebrew, the pkg manager itself
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
# Reset origin for homebrew taps
BREW_TAPS="$(brew tap)"
for tap in core cask{,-fonts,-drivers,-versions}; do
if echo "$BREW_TAPS" | grep -qE "^homebrew/${tap}\$"; then
git -C "$(brew --repo homebrew/${tap})" remote set-url origin https://github.com/Homebrew/homebrew-${tap}.git
fi
done
brew update-reset
If it doesn't work, you may have to reinstall Homebrew.
Trying to get a more recent version of bash installed on my Mac using brew.
brew is installed and working fine. When I try to run:
brew install bash
however I get the following error:
==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2a
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "readline--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff
And indeed, there's nothing at:
https://gist.githubusercontent.com/jacknagel
Update your Homebrew formulae and try again: brew update.
SOLUTION: I had followed some directions for setting up a remote git repository despite red flags going off in my head:
git config --global user.name "..."
git config --global user.email "..."
git config --global credential.helper oskeychain
I opened up the git config file:
git config --global --edit
and removed the offending entries. Works fine!
I'm using Homebrew 0.9.5 on OS X 10.9.2
I get the following error:
[01:33:37 29] $ brew install gfortran r
==> Downloading https://downloads.sf.net/project/machomebrew/Bot
######################################################################## 100.0%
curl: (22) The requested URL returned error: 403 LoginPagePost
Error: Failed to download resource "gfortran"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/gfortran-4.8.2.mavericks.bottle.1.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.8.2/gcc-4.8.2
######################################################################## 100.0%
curl: (22) The requested URL returned error: 403 LoginPagePost
Trying a mirror...
==> Downloading http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.t
######################################################################## 100.0%
curl: (22) The requested URL returned error: 403 LoginPagePost
Error: Failed to download resource "gfortran"
Download failed: http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2
SOLUTION: I had followed some directions for setting up a remote git repository despite red flags going off in my head:
git config --global user.name "..."
git config --global user.email "..."
git config --global credential.helper oskeychain
I opened up the git config file:
git config --global --edit
and removed the offending entries. Works fine!
It appears brew DOES have a recipe for hbase, but it fails with a 404 when downloading hbase itself.
13:44:51/java:11 $brew install hbase
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hbase/hbase-0.94.11/hbase-0.94.11.tar.gz
==> Best Mirror http://apache.mirrors.tds.net/hbase/hbase-0.94.11/hbase-0.94.11.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=hbase/hbase-0.94.11/hbase-0.94.11.tar.gz
A corrected url would be: http://mirror.reverse.net/pub/apache/hbase/hbase-0.94.11/hbase-0.94.11.tar.gz
I am not experienced in creating/modifying brew recipes. Would this be a simple case of downloading/tweaking a brew recipe file for a correct hbase download url and then re-trying? What would be the steps?
Update
Based on comments below i did
$brew update && brew upgrade
This failed for me:
error: Your local changes to the following files would be overwritten by merge:
Library/Contributions/brew_bash_completion.sh
Library/Contributions/brew_fish_completion.fish
Library/Contributions/brew_zsh_completion.zsh
Library/Contributions/cmd/brew-dirty.rb
Library/Contributions/cmd/brew-leaves.rb
..
Library/Formula/chruby.rb
Library/Formula/cimg.
error: The following untracked working tree files would be overwritten by merge:
Library/Aliases/git-tig
Library/Aliases/libtcnative
Library/Contributions/cmd/brew-bundle.rb
..
Library/Formula/vtclock.rb
Library/Formula/x11vnc.rb
Library/Formula/x265.rb
Library/F
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
Worked for me as well:
[ ~] brew install hbase
==> Installing hbase dependency: hadoop
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.2
==> Best Mirror http://www.dsgnwrld.com/am/hadoop/core/hadoop-1.2.1/hadoop-1.2.1
############
After searching for how to fix brew update && brew upgrade , then following some instructions on Brew update failed: untracked working tree files would be overwritten by merge and doing some manual updating of permissions under /usr/local, I was able to install hbase.
The following solved my problem, the code simply gets latest references from git
cd /usr/local && git reset --hard FETCH_HEAD
or if it fails
cd /usr/local && sudo git reset --hard FETCH_HEAD