Skip to content
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

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

Open
KairosSMG opened this issue Apr 9, 2024 · 8 comments
Open

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

KairosSMG opened this issue Apr 9, 2024 · 8 comments

Comments

@KairosSMG
Copy link

KairosSMG commented Apr 9, 2024

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
Copy link
Owner

RenolY2 commented Apr 15, 2024

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

@KairosSMG
Copy link
Author

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
Copy link
Owner

RenolY2 commented Apr 16, 2024

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
Copy link
Author

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_existing_members(cls, bases)
File "C:\Users\Kairos\AppData\Local\Programs\Python\Python312\Lib\enum.py", line 962, in check_for_existing_members
raise TypeError(
TypeError: <enum 'BlendSourceFactor'> cannot extend <enum 'BlendFactor'>

@RenolY2
Copy link
Owner

RenolY2 commented Apr 17, 2024

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
Copy link
Author

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
Copy link
Owner

RenolY2 commented Apr 18, 2024

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants