-
Notifications
You must be signed in to change notification settings - Fork 234
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
upgrade-sverchok-addon button fails to update 0.6.0 to 1.0.0 and from 1.0.0 onwards also silently fails. #4291
Comments
yes, upgraded today by the great update buttons in sverchok. It is mac version....maybe that's the reason? |
shouldn't be. The code that determines whether or not the menu is shown is here: Lines 97 to 106 in 2be8ed9
if you look locally for that file |
yep, i see the poll function. |
the I know for a fact that the current sverchok-addon upgrade fails to update from 0.6.0 to 1.0.0, so there is some bug to iron out. |
then it didn't upgrade. so the bug is not with the menu, but with the sverchok-add-on upgrade |
i have already 1.0 now ;) but also there....looks like update button does not work 😢 i installed with your help to 1.0 via that "magic" script |
is there a magic update script too? for 1.0 ? |
remove all sverchok directories listed under when the script is run on a fresh Blender without sverchok folders (even in the alternative places that it looks..also those are linked in the other thread) then the script will run. but i'll investigate the sverchok-addon upgrader.. it would be useful to know wtf is going on. |
in the meantime, you can just comment out that poll function... or delete it so you are left with the same code as I linked above. but obviously the Sverchok on your system will not upgrade correctly until the cause of update-addon failure is identified. |
OK.. it looks like the unzip generated a folder that wasn't called in the meantime, it might be worth installing the add-on a different way. Seen as you are having troubles, maybe it's worth the extra 30 seconds to do it the oldschool way. https://docs.blender.org/manual/en/latest/editors/preferences/addons.html describes an alternative way to install addons. This is the way I install addons, so i can have one directory for all my 3rd party addons, and point both Blender 2.9+ and 3.0 at that directory.
|
ok. but that doesn't make any sense. that's why you should try the alternative "by hand" installation method I describe above. forget about scripts and the autoupgrade button for a while :) |
There are three ways to install add-ons
i suggest you do one of two things regarding
i have a computer beside me, non dev machine, with win10 and just Blender 3.0 , with not a single zip or folder of |
i'm just removing a bit of noise from this thread, including my own posts :) |
i'd like to keep the issue in this thread clear. primary issueThe upgrade mechanism is not working as expected. secondary issueIt is unrelated to the bootstrap script (altho, the latest bootstrap script should work if you have no folders that start with i'll focus on the upgrade operator ( the thing that's triggered by hitting the |
@luckychris a slightly awkward realization is
if there is no upgrade button to press.. then execute this from the TextEditor import sverchok
from sverchok.utils.context_managers import sv_preferences
with sv_preferences() as prefs:
prefs.dload_archive_path="https://github.com/nortikin/sverchok/archive/"
prefs.dload_archive_name="master"
import bpy
bpy.ops.node.sverchok_update_addon() |
i will find time to figure out tomorrow how to make it |
while the issue was closed, i don't consider it fixed. The takeaway thoughts here are
two things that would be neat
the extraction process should:
|
find the current folder / current enabled name of the add-on from >>> import os
>>> os.path.basename(os.path.dirname(sverchok.__file__))
'sverchok-master' |
Sverchok version 1.0:
in Blender 2.93 -> show socket menu does work
in Blender 3.0 -> show socket menu does not work.
-> I am working/testing on Mac.
The text was updated successfully, but these errors were encountered: