-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto updater fails to reload assets - reinstall MCprep fresh from website #331
Comments
Holy smokes, that's a really bad |
It was actually bad enough it broke my cloud reporting so I couldn't refresh reports, but I was able to resolve that this morning. Finally getting to work on uncovering the root cause. Here's my journey: 1) Did a clean install of MCprep 3.3.1 with Blender 3.2Nothing special to report. 2) Pressed auto install updateIndeed after a restart the new update appeared. Pressed the button to auto-install. So far seemed smooth, but I notice in the console this output:
This may be what starts it all, but let's continue. Closing blender.. 3) Inspecting files before openingWhen looking into the MCprep resources unpacked, I notice that under effects ONLY the geonodes folder exists. So, unzupping definitely didn't do it's job. But let's continue.. 4) Opening blender after the botched installNo errors on startup or anything, everything working fine until trying to reload assets. Indeed, that's where it fails. It leads me to realize that there likely were no os.path.isfile checks for the hard coded effects files for particle areas and others. Summarizing next stepsMost immediately, need to implement an Thereafter, need to see what is tripping up the unzipping. Will report back. |
Ok with that resolved, now need to see if we can fix the unzipping done by the addon updater. |
Continuing on. What's weirder still is that the call to unstage zip fails, but it manages to continue with install instructions. Concerningly I see the line:
Which means somehow it's picking up and trying to install source code..... this points to the root issue actually being that the updater is somehow not picking up the attached zip, but rather the source code of the release. This let me to investigate further the raw updater outputs:
It is indeed clearly picking up the zipball instead of the release attached file. Need to investigate what changed to cause that. |
I found the culprit: While running an update of the source code for the updater, I did not realize I overwrote the code for the select link function. Bad design to have that embedded in the code that needs updating (and that's on me, me being the one who designed the Addon Updater in the first place). 596d331#diff-ea1d502548c4de6d96e67960ee8d53200520d803c5092f07b2d29c395d6a331eL1307 - if "assets" in tag and "browser_download_url" in tag["assets"][0]:
- link = tag["assets"][0]["browser_download_url"]
+ # if "assets" in tag and "browser_download_url" in tag["assets"][0]:
+ # link = tag["assets"][0]["browser_download_url"] Clear answer is to revert the change in |
Release going out shortly, crossing fingers this goes smoothly (but tbh, can't get much worse) |
Known issue: Blender updater causes failure to reload assets
This is a widespread issue with a simple workaround: update MCprep by manually installing it from http://bit.ly/MCprep fresh.
I need to explore why this issue has occurred and how to prevent it in the future, but is related to the newly added folders for effects spawning. Results in errors like:
The text was updated successfully, but these errors were encountered: