mirror of
https://github.com/initialcommit-com/git-sim.git
synced 2026-04-26 19:15:51 +03:00
[GH-ISSUE #20] command not found: git-sim #17
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sim#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eltoncezar on GitHub (Jan 25, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/20
Hi, I just installed git-sim on my Ubuntu 20.04.5, following the Quickstart guide, but when I try to run it, I get this error on the terminal:
command not found: git-sim.How can I manually add git-sim to my path?
@ryanmcfall commented on GitHub (Jan 25, 2023):
I also just installed this, but on Windows, and have basically the same problem from a command prompt:
Executing
pip3 install git-sima second time indicates that everything is already installed.@initialcommit-io commented on GitHub (Jan 25, 2023):
Hmm, I did set up automatic entry points that usually install the tool and then make sure it's available on the path, but not sure why it wouldn't be added in your cases.
I would suggest just manually adding the program to your path for now.
@eltoncezar For Ubuntu you can search for the path Git-Sim was installed using something like
find / -name "git-sim"When you find the path to the executable you can add it to your path by editing your
.bash_profileadd adding a line like:See https://askubuntu.com/questions/60218/how-to-add-a-directory-to-the-path for details.
@ryanmcfall Can you also try searching for the location that the git-sim executable was installed and try adding it to your path environment variable? Then restart your terminal and try again.
@ryanmcfall commented on GitHub (Jan 25, 2023):
@initialcommit-io I found
git-sim.exeburied in%USERPROFILE%\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts.It seems like pip is installing as a user package, even though I didn't specify the
--useroption. Maybe this is because I'm not runningcmd.exeas an Administrator.I also see Python itself is installed only for the logged in user, as its in
%USERPROFILE\AppData\Local\Microsoft\WindowsApps\python.exe.I can get git-sim to run now, but it would be nice to know why it did what it did.
@eltoncezar commented on GitHub (Jan 25, 2023):
Thanks for the quick reply @initialcommit-io. Funny thing is, I already had the path
$HOME/.local/binin my.bash_profile. I had to add it to/etc/environmentalso for it to work. Go figure.@initialcommit-io commented on GitHub (Jan 25, 2023):
@ryanmcfall Glad you got it working. I think you may be onto something based on the fact that
cmd.exewas not run as admin. I'm not exactly sure how the git-sim entry point configuration (which happens on installation) handles different --user vs admin setups, and corresponding Python environments, on Windows. I think that would something useful for our Git-Sim documentation if you are able to shed some light on it. If not, no worries, but I'm glad you got it working.@eltoncezar Haha interesting... Well glad you got it working too! This will be a nice reference if other folks run into the same issues.
Closing since Git-Sim is running for both of you after some path re-configuration.