theturboturnip / yk_gmd_io

Import/Export addon for Blender 3.2+ that allows .gmd files from the Yakuza game series to be imported/exported.
51 stars 9 forks source link

ImportError: attempted relative import with no known parent package #64

Open zyugyzarc opened 1 year ago

zyugyzarc commented 1 year ago

I get this when I try to enable the yk_gmd_io addon in blender, right after installing it (through yk_gmd_io.zip, v0.4.1).

Traceback (most recent call last):
  File "<somepath>/blender-3.5.0-alpha/3.5/scripts/modules/addon_utils.py", line 333, in enable
    mod = __import__(module_name)
  File "<somepath>/blender/3.5/scripts/addons/yk_gmd_blender\__init__.py", line 29, in <module>
    from .blender.addon import *
ImportError: attempted relative import with no known parent package

Tried it on Blender 3.2, 3.3, 3.4 and 3.5 (alpha) - all failed with the same error. Also I'm on linux if that matters (it shouldn't, hopefully)

zyugyzarc commented 1 year ago

update: this tool seems to be windows-only

theturboturnip commented 1 year ago

Oh, that's weird that Linux doesn't like that! I'm afraid I only test this on Windows, but for this specific case I may be able to fix.

WaraiOtoko commented 9 months ago

Any word on a solution yet? v0.5.0 with Blender 4.0 still has this issue.

dsinkerii commented 9 months ago

Any word on a solution yet? v0.5.0 with Blender 4.0 still has this issue.

Here's how i fixed it: (steam)

  1. Go to blender properties
  2. Go to Compatibility, check Force the use of a specific Steam Play compatibility tool
  3. Use any proton version (in my example Experimantal)
  4. Update blender (this will reset your current workspace, upon reverting to your old version will be back)
  5. Import the addon If you use blender outside steam, use the official .exe from blender using wine

image