Closed luni-moon closed 6 months ago
I updated that code recently to fix some other issue, however I believe your real issue is below.
git.exc.InvalidGitRepositoryError: C:\Users\Luni\Downloads\NSO-RPC-development\NSO-RPC-development\client
This makes me think that you are running it from a zip you downloaded and not a git clone, this will not generate a working _version.txt file, as it uses git history to generate the correct tag/commit
You can either disable the _version.py script and put your own string in for testing, or make sure you are doing a git clone and not a zip download.
git clone -b development https://github.com/MCMi460/NSO-RPC.git
version.txt is just a text string that gets embedded into the app for easier debugging.
I updated that code recently to fix some other issue, however I believe your real issue is below.
git.exc.InvalidGitRepositoryError: C:\Users\Luni\Downloads\NSO-RPC-development\NSO-RPC-development\client
This makes me think that you are running it from a zip you downloaded and not a git clone, this will not generate a working _version.txt file, as it uses git history to generate the correct tag/commit
You can either disable the _version.py script and put your own string in for testing, or make sure you are doing a git clone and not a zip download.
git clone -b development https://github.com/MCMi460/NSO-RPC.git
version.txt is just a text string that gets embedded into the app for easier debugging.
Ah, thank you. I prefer not to do cloning (as I don't like GitHub and MSFT security stuff, nut this is better than GitLab), so that's why I do zip downloads. I'll try the aforementioned way and see if that works.
Edit: I got it to work after commentiong out everything in the _version.py
and typing in keyboard mash into a newly created version.txt
and built it. It is working beautifully now (until the next break comes). Thanks again!
May be smarter to just comment out the build step above :)
May be smarter to just comment out the build step above :)
I couldn't find it for the life of me, but it displays RPC either way, so I guess for once programming fixes two bugs with one line(?) Okay, a bad idiom made modern...
I tried building the development branch from source, and it failed due to version.txt missing, so I added it as blank manually. I tried again, the file was removed (seemingly due to the code from
_version.py
, regarding these lines: https://github.com/MCMi460/NSO-RPC/blob/ba58863114907d2b62fbf45e3407d749e4657c4b/client/_version.py#L19-L25I was not able to get the "stable" version to work, so I did a little poking around and found issues #144 and #146. Then I looked and found that there is a PR, but not before trying a build that
HotaruBlaze
made about a week ago (which only errored out). This does not seem like an upstream error, so much help would be appreciated, as I wanted to use this while the fixes for the version entering (and probably more) was being worked on. Thank you!Here is my log output: