ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

extended python compatibility

Open crmbz0r opened this issue 1 year ago • 2 comments

I've been messing around with newer python versions than the original venv is using, which broke ComfyUI by failing to import the comfy module. This small change will make it run and find the module with other python versions than the original installations intended to use. Doesn't seem to affect anything else or have any negative changes in general, so why not add it to the main branch so everybody who likes to mess around like me doesn't have to fix the issue of not finding the comfy module :)

crmbz0r avatar Aug 09 '24 10:08 crmbz0r

Which python version? I run comfy on 3.10 3.11 3.12 on Mac and windows without issues

melMass avatar Aug 09 '24 13:08 melMass

might be an import skill issue

astelmach01 avatar Aug 16 '24 20:08 astelmach01

yea apparently it's only an issue when using StabilityMatrix to launch ComfyUI, since the launcher wants to use 3.10.11 and breaks when I want to use a newer python version in the venv.

(giving this error)

Traceback (most recent call last):
  File "S:\Data\Packages\ComfyUI\main.py", line 1, in <module>
    import comfy.options
ModuleNotFoundError: No module named 'comfy'

When running main.py directly, I also have no issue.. so yea whatever not that important

crmbz0r avatar Aug 18 '24 23:08 crmbz0r

yea apparently it's only an issue when using StabilityMatrix to launch ComfyUI, since the launcher wants to use 3.10.11 and breaks when I want to use a newer python version in the venv.

(giving this error)

Traceback (most recent call last):
  File "S:\Data\Packages\ComfyUI\main.py", line 1, in <module>
    import comfy.options
ModuleNotFoundError: No module named 'comfy'

When running main.py directly, I also have no issue.. so yea whatever not that important

It seems that you have installed 'comfy' pip package. Uninstall it.

ltdrdata avatar Aug 18 '24 23:08 ltdrdata

yea apparently it's only an issue when using StabilityMatrix to launch ComfyUI, since the launcher wants to use 3.10.11 and breaks when I want to use a newer python version in the venv. (giving this error)

Traceback (most recent call last):
  File "S:\Data\Packages\ComfyUI\main.py", line 1, in <module>
    import comfy.options
ModuleNotFoundError: No module named 'comfy'

When running main.py directly, I also have no issue.. so yea whatever not that important

It seems that you have installed 'comfy' pip package. Uninstall it.

i have this issue just now and I don't have comfy from pip install

pip3 uninstall comfy
WARNING: Skipping comfy as it is not installed.

never mind, I pull everything again and it's back to work

bramvera avatar Sep 08 '24 15:09 bramvera