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

Continuously Failing Test #16

Open
Fade07w opened this issue Nov 17, 2024 · 5 comments
Open

Continuously Failing Test #16

Fade07w opened this issue Nov 17, 2024 · 5 comments

Comments

@Fade07w
Copy link

Fade07w commented Nov 17, 2024

Pytorch: 3.12.6
PS X:\ComfyUI_windows_portable\python_embeded> nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Apr_17_19:36:51_Pacific_Daylight_Time_2024
Cuda compilation tools, release 12.5, V12.5.40
Build cuda_12.5.r12.5/compiler.34177558_0
triton 3.0.0

"PS X:\ComfyUI_windows_portable\python_embeded> python triton_add_kernel.py
Traceback (most recent call last):
File "X:\ComfyUI_windows_portable\python_embeded\triton_add_kernel.py", line 2, in
import torch
File "C:\Users\Rob\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch_init_.py", line 14, in
import ctypes
File "C:\Users\Rob\AppData\Local\Programs\Python\Python312\Lib\ctypes_init_.py", line 157, in
class py_object(_SimpleCData):
AttributeError: class must define a 'type' attribute"

@woct0rdho
Copy link
Owner

Please send your C:\Users\Rob\AppData\Local\Programs\Python\Python312\Lib\ctypes\_init_.py here. Maybe this file is corrupted

@Fade07w

This comment was marked as off-topic.

@woct0rdho
Copy link
Owner

woct0rdho commented Nov 17, 2024

Ok this file is from the original Python 3.12 and is not corrupted. (I'll hide this file in the above comment to keep it clean)

Next question is, you're using Python 3.12.6, and there are libraries from your AppData\Local\Programs\Python, but the embeded Python in recent ComfyUI is Python 3.12.7. Do you intend to use the Python installed outside ComfyUI, or to use the embeded Python?

@Fade07w
Copy link
Author

Fade07w commented Nov 17, 2024

On this install I'm using embedded but I've also used tried prior creating a environment. Should I try upgrading to 12.7?

@woct0rdho
Copy link
Owner

I guess you messed up with some environments. It's safer to either keep using the embedded environment, or keep using the environment you created

You don't need to upgrade the minor version of Python, just make sure you put everything in the same environment

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