git

Error regarding git push heroku main command, pywin32 error

Error regarding git push heroku main command, pywin32 error Question: When I am trying to push my new project, I have the following errors when I run git push heroku main in my terminal: remote: INFO: pip is looking at multiple versions of pypiwin32 to determine which version is compatible with other requirements. This could …

Total answers: 1

Numpy tests cannot parse version

Numpy tests cannot parse version Question: After forking the Numpy repository and setting up the dev container for it, I attempted to run python runtests.py -v but it returns the following error Building, see build.log… Traceback (most recent call last): File "/workspaces/numpy/setup.py", line 47, in <module> raise RuntimeError(f’Cannot parse version {FULLVERSION}’) RuntimeError: Cannot parse version …

Total answers: 3

Github Desktop using different Visual Studio Code version from Anaconda

Github Desktop using different Visual Studio Code version from Anaconda Question: I have read over 20 posts of an error running the code in .py file, but I still cannot get it running. I got an error like import requests Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named ‘requests’ …

Total answers: 1

Python poetry Failed to clone verify ref exists on remote

Python poetry Failed to clone verify ref exists on remote Question: I am using poetry 1.4.0 on ubuntu 22.04, and trying to add a specific git branch into my project : poetry add git+ssh://git@dev/home/git/projects/jaydebeapi#nanosecond_fix Failed to clone ssh://git@dev/home/git/projects/jaydebeapi at ‘nanosecond_fix’, verify ref exists on remote. This is strange because manual git clone works : git …

Total answers: 2

How to update custom package version?

How to update custom package version? Question: I am trying to create a python package that I can reuse in other projects. I did follow this tutorial: Create Your Custom, private Python Package That You Can PIP Install From Your Git Repository. It works but when I update the code of my package and then …

Total answers: 1

How to fetch an orphaned commit?

How to fetch an orphaned commit? Question: tl;dr: I have a repository cloned but cannot see an orphaned commit locally. How can I get that commit if it did not come with the repo? Details: I am trying to get the contents of a specific file on a specific commit using gitpython as below (using …

Total answers: 1

Problem with split a cmd string in python

Problem with split a cmd string in python Question: The cmd.split() does not work: cmd = f’git log –all –grep="fixed bug" –pretty="%H|%an"’ process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) Generate this error: With this code instead it works. cmd = f’git log –reverse –pretty=format:"%H|%an|%at"’ It is not a problem of "bugs" because leaving only "fixed" does not …

Total answers: 1

how to split the repository history one line for each commit?

how to split the repository history one line for each commit? Question: I’m trying to have the history of a repository, but the result is returned to me on a single line of text. The command I’m using: cmd = f’git log –all –grep="fixed bug"’ The result I would like to have: commit 337f4f4e798ea675cd57348212857ce051e857ffAuthor: Vinod… …

Total answers: 1