mirror of
https://github.com/initialcommit-com/git-sim.git
synced 2026-04-27 03:25:53 +03:00
[GH-ISSUE #34] Missing dependencies #25
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sim#25
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 @kcandrews on GitHub (Jan 27, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/34
I'm really excited to try this package out. However, I'm having a hard time getting it to work. First, I discovered that it needed
libpango1.0-devinstalled by the operating system to even install. Then I tried to run it and it gave a warning that it also needed ffmpeg or avconv. So, I installed ffmpeg. Then I rangit-sim statusand got some weird messages about jpeg mimetypes.A google search turned up this heavily downvoted stackoverflow question. This may be related to the following perl error message:
I also see:
Finally, there is a summary:
I'm trying to run git-sim from inside a python virtual environment installed inside of Ubuntu 22.04. All of that is being access from a funky RStudio terminal running inside of a web browser. Since I've never gotten this package to work, it's not clear what I should expect. I guess I thought it would just create an animation and point me to where it got saved so I could read it with an image viewer. I think maybe the program is not yet smart enough to understand that if it's assumptions are not met, that it should just make the image/video file, write it to disk, and then tell the user the path to that file. I could be completely wrong about this, but that's what it seems like to me.
@initialcommit-io commented on GitHub (Jan 27, 2023):
@kcandrews Thanks for the detailed description.
First question - step (1) in the quickstart guide in the readme is to "Install Manim and Manim dependencies for your OS" with a link to Manim's website. If you follow the steps there for Linux, it lists all the steps to get Manim installed on Ubuntu, (which specifically includes the stuff you say you "discovered" like
libpango1.0-devandffmpegamong others), so sounds like you might have missed part of that step. So first of all I recommend reading thru those steps that I've pasted below and make sure you have all Manim requirements installed:For the second part, you make a good point. You're correct that by default the program tries to open up the generated image/video with the default editor, and might throw some unhandled warning or error messages if it can't find one.
I can definitely try to clean up that situation and print an output location in the terminal, but know that by default the media directory is just new folder within your Git repo called
git-sim_mediawhich you can find the generated jpg / mp4 output at. You can also use our newly implemented environment variable (as seen here in the readme) to set a global location for the output if you don't want anything created within your Git repo.Can you first just check in the default media directory and let me know if the images are being created?
If not, you can try disabling the automatic image opening step using the global option
--disable-auto-open(or-dfor short), like this:After that you should be able to find the image in the media directory, but I do like your idea of the program also printing out the location of the file, to make it 100% obvious where to find it.
Let me know if you're able to get it working and if you run into any other issues!
@paketb0te commented on GitHub (Jan 27, 2023):
re: the Manim installation instructions:
Maybe we can update the link in the
READMEto point directly to the "Installation" section of the Manim docs, instead of the project homepage?-> https://docs.manim.community/en/stable/installation.html
PR: #35
@kcandrews commented on GitHub (Jan 27, 2023):
@initialcommit-io I installed directly from PyPI instead of using a git repository, so I'm not sure where to look for this media folder you mentioned would be. I tried looking under the virtualenv with
find . -iname '*sim_media'but it did not return anything.@initialcommit-io commented on GitHub (Jan 27, 2023):
@kcandrews It would only be created if you are able to at least execute one successful Git-Sim command, which would create the
git-sim_media/directory inside your Git repo.Please try the following steps and let me know the result:
cdinto any git repo on your machinegit-sim -d statuslsto see if thegit-sim_mediawas created. If so, the output image should be created ingit-sim_media/images/foldergit-sim -hwhich should show the help, but if you get an error please copy/paste it here so we can see@kcandrews commented on GitHub (Jan 27, 2023):
That makes sense to me now. My mind fought me a bit, so I did not immediately make the connection that the git repository it was going to write the data to was the git repository the command was run in. The latest file is there as well as the other file from a few hours ago from the time I did not know about the
-dflag.@initialcommit-io commented on GitHub (Jan 27, 2023):
Cool sounds good! I will keep this open until later today when I add your suggestion to print message that tells the user exactly where the image or video was saved :D.
This tool is in active dev so if you want to take advantage of git-sim updates over time make sure to run once in a while:
@initialcommit-io commented on GitHub (Jan 28, 2023):
@kcandrews Just implemented the printing of the output file location in git-sim 0.1.7.
Please upgrade to git-sim 0.1.7 by running:
Then test it out and let me know if it works for you! =D
@initialcommit-io commented on GitHub (Jan 29, 2023):
@kcandrews Closing since this should be resolved now. Feel free to reopen if any issues.