No side panel for plugin

Issue #745 resolved
Noname created an issue

Hello,

Tested latests version with develop 2.9.6 and 3.0.0 (also with stable 2.9.5) and side panel is missing (in all these versions) after installing plugin using latests version (649).

Checked local copies (I do have script that download and install for me latest version) and last one that works was 644.

Best regards and as always great job !

Comments (20)

  1. Thomas Larsson repo owner

    I just downloaded 2.93.5 (Windows zip version) and the side panel is there (1.6.1.0650) . Did you accidentally disable the plugin? Or is there some error message, if you start Blender from a terminal window?

  2. RaxorX

    I just tried too. Used the stable version and the current latest. Stable shows the side panel but the latest doesn’t. Also thought that the update would overwrite the old one.

    EDIT: Tried on 2.9.3 and 2.9.3.5 with the same results.

    EDIT: Just tested out various versions. Commit 948ac3d installs fine.

    3eeea8d Gives an error when you try to activate it, no side panel.

    f3902a6 and above no error upon installation or activation, no side panel.

  3. Xin

    It works fine for me. It seems you are not installing the plugin correctly, just delete the entire directory, don’t just overwrite. Then paste the new directory.

  4. RaxorX

    I installed it via zip within blender. Lemme try installing that way then.

    EDIT: Alright. Manual installation works. As @noname noted, I made similar observations too. The only error I had was with the 3eeea8d version. Error is posted above just in case.

  5. Noname reporter

    Ignore my update script and done manual install, did this also before posting to confirm issue and exclude script issue.

    Test that I just did:

    • delete %appdata%\Blender Foundation
    • download latest plugin zip
    • start blender 2.93.6 (RC) - nothing is there all gone, like fresh “install”
    • install script - all ok, no issues in console
    • restart, just in case → bring up N panel - no plugin panel visible, no file menu entry to import duf

    Console log after install:

    Loading BVH Retargeter
    BVH Retargeter loaded
    
    Loading MHX RTS
    MHX RTS loaded
    
    Loading DAZ
    DAZ loaded
    

    So it seams like plugin is loading but just not displaying properly.

    Same happens on 3.0.0 alpha and stable 2.93.5.

    This is recent change, and surprisingly there is no error when installing or anything.

  6. Xin

    Don’t use unstable versions of Blender, use 2.93.5. Also disable all addons except import_daz to see if the issue is not another addon. Try also resetting Blender settings.

  7. Noname reporter

    I didn’t, just for sanity (My) check:

    1. download Blender 2.93.5
    2. remove / rename %appdata%\Blender Foundation (so Blender is “fresh”)
    3. download latest version of plugin
    4. install
    5. no panel or option to import duf files
    6. no errors during install, logs shows that settings file is read etc. all green

    Windows 10, blender portable (zip), no settings fresh install of blender

  8. Xin

    Can you show a screenshot of what you see when you press N in the 3d view?

    Also, in Blender’s preferences, select the icon on the lower left and click “Load Factory Preferences”.

  9. Noname reporter

    Ok, so did some debugging (using 2.93.6) and:

    Loading DAZ
    Traceback (most recent call last):
      File "C:\Grafika\blender-2.93.6\2.93\scripts\modules\addon_utils.py", line 351, in enable
        mod = __import__(module_name)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\__init__.py", line 77, in <module>
        importModules()
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\__init__.py", line 73, in importModules
        mod = importlib.import_module("." + modname, anchor)
      File "C:\Grafika\blender-2.93.6\2.93\python\lib\importlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Diffeomorphic-import-daz-dev\panel.py", line 1071, in <module>
        DAZ_OT_UpdateDynamicClasses,
    NameError: name 'DAZ_OT_UpdateDynamicClasses' is not defined
    

    dunno if this is related to the issue, most likely.

    Strangely this is first commit that causes panel to not show and is one that shows above error using latest commit doesn’t show any error and panel is not visible. Could be that this is unrelated as I see this was changed in further commits also.

    Just my 2 cents regarding this issue.

  10. Noname reporter

    @Xin There is nothing there just default 3 tabs.

    Plugin is listed as active in addon list, I see in console logs that it does indeed do something but does not register correctly (no import entry, no menu).

    Load default - it’s not necessary if You rename / delete %appdata%\Blender Foundation as this is where factory are stored, but yeah I did that also, didn’t helped.

    It seams like issue is related to UIList move dunno how and why, maybe some permission issue, or path issue.

  11. Xin

    That error does not exist in the latest commit so it can’t be the issue. It’s weird you are the only one getting the issue. What OS is it?

  12. RaxorX

    @Xin Uh… I had the same error and for the same commit as @NoName mentioned here. And in the post afterwards I also mentioned manually installing the plugin (not through blender) worked. @NoName, did you try extracting the plugin directory to blender? To do that download the latest commit.

    Go to
    %appdata%\Blender Foundation\Blender\<version>\scripts\addons

    Make a new folder import_daz extract the contents of the archive (contents of the folder within) inside of it. Start Blender. See if the panel is there or not.

    EDIT: You’ll have to enable the plugin after starting Blender.

  13. Xin

    Ok, the problem is that for some reason the directory needs to be named “import_daz”, otherwise there is an error. I don’t know what caused this problem to show up, because I never not name the directory import_daz.

  14. Noname reporter

    @RaxorX Thank You, this solves issue.

    The root (apparently ???) of the issue is name of the directory.

    I copy script to Diffeomorphic-import-daz-dev and panel is not shown, but when I rename that directory to import_daz it does work as @RaxorX said.

    Renaming it to anything new doesn’t resolve issue.

    After copy or rename I had to manually disable old one (with now missing files) and enable one from import_daz.

  15. Xin

    Ok the problem is in “__init__.py”. The lines:

    if mod.__name__[11:] in regnames:
    

    Could be replaced by:

    def register():
        import os
        mod_prefix = len(os.path.basename(__file__[0:-12])) + 1
        for mod in theModules:
            if mod.__name__[mod_prefix:] in regnames:
                mod.register()
        GS.loadDefaults()
    

    To make it work for arbitrary directory names. Similarly for unregister().

    Also, as a side note, “regnames” in the same file could be turned into a set to make the if in the for loop faster. To turn the list into a set, just change the “[“ and “]” to “{“ and “}” in the definition of “regnames”.

  16. Noname reporter

    Version 651 works fine on my side, Thank You.

    Will wait for @RaxorX for verification and mark issue as solved.

  17. RaxorX

    @Xin Xing @Noname Thanks for the wait. Yeah, v651 works fine for me too. Thanks Xin, for the proposed fix.

  18. Log in to comment