Xin addon: module 'daz_hd_morphs.operator_normal' has no attribute 'GenerateNormalsBlenderOperator'

Issue #1414 invalid
Garett created an issue

Tried to install the zip directly from Bitbucket it would not load any plugin.

Made a custom .zip only with the blender addon to make it blender friendly for the install - installed fine but can’t enable it

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 3.4\3.4\scripts\modules\addon_utils.py", line 333, in enable
mod = import(module_name)
File "xxxx\Blender Foundation\Blender\3.4\scripts\addons\daz_hd_morphs_init_.py", line 678, in <module>
operator_normal.GenerateNormalsBlenderOperator,
AttributeError: module 'daz_hd_morphs.operator_normal' has no attribute 'GenerateNormalsBlenderOperator'

Comments (14)

  1. Garett reporter

    this can be closed, but should be documented - You need to install the barebones bundled with 1.6.0 import_daz and then overwrite manually for the latest 0.8x version. The code here won't work directly, you will get the error I have above. Proof it works now: Untitled.png

  2. Xin

    I think this might be some conflict with an old installation you had, so I would make sure to delete the whole directory in “…\Blender\3.4\scripts\addons\daz_hd_morphs” and install either the latest version or the version for Blender 3.4 (assuming you are using Blender 3.4). The one that came with import_daz is quite outdated by now, and it won’t work on Blender 3.4 (or even 3.3 if I recall). You can find the updated versions in either of the links in the first post in #1399 .

  3. Garett reporter

    Yes Xin, your points are correct. My point was that the 1.6.2 install does not include daz_hd_morphs as per https://diffeomorphic.blogspot.com/p/daz-importer-version-16.html And it doesn’t, at least the version hosted over there. I checked. So what i had to do to get it installed is the following:

    • Install from 1.6.0 bundle → daz-hd-morphs version 0.34 or 0.42 resulted, can’t remember exactly.
    • Overwrite daz_hd_addon folder old version with the 1.6.2. Bitbucket download you mentioned ( main branch in my case, i didn’t choose any specific branch tbh )

    This way it works, but only this way.

    I see others are having the same issue on daz forums : https://hpclscruffy.daz3d.com/forums/discussion/621116/daz-hd-morphs-blender-add-on-wont-install

    I will link them to our discussion here since it is most likely similar problem, the install of the 1.6.2 results in 0 addons in blender if you target the zip directly. You can hack it the way i did and only include the subfolder in blender-addons inside a zip and install just that, but then you get the error I had above.

    My guess is the latest git is incomplete compared to the 1.6.0 bundled old version, or I chose the wrong branch and the main is incomplete, with others being complete.

  4. Xin

    I have no problem installing it directly by copying the “./blender_addon/daz_hd_morphs” directory from the gitlab version to Blender’s addon directory. I would not use anything from that 1.6.2 bundle since that version is outdated.

    Did you try to install the .zip you got from gitlab directly? because that won’t work since that .zip includes other stuff, not just the addon. You can either copy and paste the “./blender_addon/daz_hd_morphs” directory manually, or you can create a .zip with that directory and then tell Blender to install it through that .zip.

  5. Garett reporter

    Yeah I tried the 1.6.2 zip from dropbox on top of the 1.6.0 bundle and that eventually worked. Any ideas how to get the newest versions for everything if the 1.6.2 bundle is outdated? I don’t see a newer branch besides 1.6.2 in Bitbucket either.

    At the moment I have Import-Export Daz 1.6.2 , daz-HD morphs 0.85.3 and MHX runtime 1.6.1

  6. Garett reporter

    Thanks for the input Alessandro. Just to clarify when you guys say “gitlab” you mean this bitbucket? Or the dropbox downloads on your blogspot?

    From this bitbucket, the branches are not compiled as far as I see, only compiled versions I found were on your blog. Google did not help me locate this “gitlab” you guys mention. Sorry if my questions sound silly, just trying to get on the same page.

    Love your work btw, eager to learn everything about it.

  7. Xin

    The daz_hd_morphs addon is not on bitbucket, only on gitlab (and gumroad). You can find those links in #1399 . The .dll is included with those versions, so you don’t need to compile anything.

    Anything that you might find on bitbucket regarding daz_hd_morphs is outdated, so I wouldn’t use it. You can use the latest version of import_daz with the latest version of daz_hd_morphs without issues, they are compatible. The daz_hd_morphs addon is a standalone addon in that regard, you can install it separately.

  8. Garett reporter

    Thanks Xin, that was very helpful. I will have an easier time updating from now on. My first import was successful, and I will soon work on the HD side of it too. From my pov this “bug” can be closed, however some info here may be of general interest, perhaps worth summarizing and including in your PDF under step-by-step walkthrough for step 1? I can help with the initial text if you feel it’s worth it.

  9. Xin

    You mean steps for installing it? if so, you can put the series of steps in #1399 and I can add them to the documentation. I haven’t done it because the installation is similar to how you install every Blender addon, but maybe people aren’t used to downloading from gitlab?

  10. Garett reporter

    The last paragraph in the first post in #1399 actually explains the install steps very well, I must have missed it when I tried to install the newest standalone version of daz-hd-importer. I would include that paragraph in the documentation if I were you, it’s very good.

  11. Log in to comment