RenolY2 / j3dview

View BMD/BDL files
MIT License
11 stars 1 forks source link

j3dview giving an error when attempting to open the program. #3

Open KairosSMG opened 5 months ago

KairosSMG commented 5 months ago

I’ve used j3dview multiple times before but it randomly began giving me an error everytime I try to open it now. I’ve attached the error here I have no idea why it’s giving me this all of a sudden.

image

RenolY2 commented 5 months ago

Have you tried redownloading the tool? (in case any files important to the tool got lost somehow)

KairosSMG commented 5 months ago

I’ve tried redownloading and building the program myself but no matter what I do it gives me the same error. The only version that seems to work for me is the 0.4ver from blank63’s GitHub but that version does not have custom model support so I can’t use it.

RenolY2 commented 5 months ago

If you tried to build it I guess you installed all the necessary dependencies. Then you can try running the program from source with python, j3dview.py is the main file to start the program.

Not sure why the compiled version crashes with the DLL error. Line 28 in j3dview points towards PyQt5 but that's supposed to be included. Wonder if some c++ runtime is missing or something.

KairosSMG commented 5 months ago

When running the program from source I get this error.

Traceback (most recent call last): File "C:\Users\Kairos\j3dview\j3dview.py", line 31, in import gx File "C:\Users\Kairos\j3dview\gx__init.py", line 1, in from gx.constants import * File "C:\Users\Kairos\j3dview\gx\constants.py", line 1141, in class BlendSourceFactor(BlendFactor,metaclass=ExtendEnumMeta): File "C:\Users\Kairos\AppData\Local\Programs\Python\Python312\Lib\enum.py", line 516, in prepare__ metacls._check_for_existingmembers(cls, bases) File "C:\Users\Kairos\AppData\Local\Programs\Python\Python312\Lib\enum.py", line 962, in _check_for_existingmembers raise TypeError( TypeError: <enum 'BlendSourceFactor'> cannot extend <enum 'BlendFactor'>

RenolY2 commented 5 months ago

need to specifically run it with Python 3.5, it doesn't seem to work with later versions (I tried updating it for newer versions before but ran into issues that I couldn't solve because j3dview uses some programming concepts I don't fully understand)

The way I have it set up for j3dview, because I still need newer versions of Python, I just installed Python 3.5 without adding it to PATH, installed the necessary modules using pip in the Python 3.5 folder and created a .bat file that calls Python 3.5's exe on j3dview.py

KairosSMG commented 5 months ago

I have installed python3.5 but when I try to run j3dview.py I run into this error

Traceback (most recent call last): File "C:\Users\Kairos\j3dview\j3dview.py", line 32, in import gx.bti File "C:\Users\Kairos\j3dview\gx\bti.py", line 3, in import gx.texture ImportError: No module named 'gx.texture'

How can I fix this as this is a module I think should be included in the source.

RenolY2 commented 5 months ago

Ah, I forgot about this part of the tool. There are two lines in j3dview.py you'd have to uncomment and then you'd also have to have a specific version of Visual Studio installed to compile a .pyx file I think, but at the moment even I don't have that version installed so that also fails for me. As a workaround, does it work if you download this file, unzip it and put it inside the gx folder? texture.cp35-win_amd64.pyd.zip should be the already compiled form of texture.pyx.

KairosSMG commented 5 months ago

Oh wow that fixed the issue! I am able to open the program now and run j3dview. Thank you so much for your help this issue has been really bothering me for the last week thanks for helping me resolve it!