ComfyWorkflows / ComfyUI-Launcher

Run any ComfyUI workflow w/ ZERO setup.
GNU Affero General Public License v3.0
572 stars 65 forks source link

Erroneous EOF Pickle Error on Windows 10 #37

Open nadolsw opened 5 months ago

nadolsw commented 5 months ago

I attempted to install via PowerShell with the following (Option 2):

git clone https://github.com/ComfyWorkflows/comfyui-launcher cd comfyui-launcher/ ./run.sh

The script did work when I navigated to port 4000 but I also received this error message:

Creating virtual environment for ComfyUI Launcher...

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

Installing required packages...

bash: venv/bin/activate: No such file or directory
Requirement already satisfied: amqp==5.2.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 1)) (5.2.0)
Requirement already satisfied: billiard==4.2.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 2)) (4.2.0)
Requirement already satisfied: blinker==1.7.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 3)) (1.7.0)
Requirement already satisfied: celery==5.3.6 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 4)) (5.3.6)
Requirement already satisfied: certifi==2024.2.2 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 5)) (2024.2.2)
Requirement already satisfied: cfgv==3.4.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 6)) (3.4.0)
Requirement already satisfied: charset-normalizer==3.3.2 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 7)) (3.3.2)
Requirement already satisfied: click==8.1.7 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 8)) (8.1.7)
Requirement already satisfied: click-didyoumean==0.3.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 9)) (0.3.0)
Requirement already satisfied: click-plugins==1.1.1 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 10)) (1.1.1)
Requirement already satisfied: click-repl==0.3.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 11)) (0.3.0)
Requirement already satisfied: distlib==0.3.8 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 12)) (0.3.8)
Requirement already satisfied: filelock==3.13.1 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 13)) (3.13.1)
Requirement already satisfied: Flask==3.0.2 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 14)) (3.0.2)
Requirement already satisfied: fsspec==2024.2.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 15)) (2024.2.0)
Requirement already satisfied: identify==2.5.35 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 16)) (2.5.35)
Requirement already satisfied: idna==3.6 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 17)) (3.6)
Requirement already satisfied: itsdangerous==2.1.2 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 18)) (2.1.2)
Requirement already satisfied: Jinja2==3.1.3 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 19)) (3.1.3)
Requirement already satisfied: kombu==5.3.5 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 20)) (5.3.5)
Requirement already satisfied: MarkupSafe==2.1.5 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 21)) (2.1.5)
Requirement already satisfied: mpmath==1.3.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 22)) (1.3.0)
Requirement already satisfied: networkx==3.2.1 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 23)) (3.2.1)
Requirement already satisfied: nodeenv==1.8.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 24)) (1.8.0)
Requirement already satisfied: numpy==1.26.4 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 25)) (1.26.4)
Requirement already satisfied: packaging==23.2 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 26)) (23.2)
Requirement already satisfied: platformdirs==4.2.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 27)) (4.2.0)
Requirement already satisfied: pre-commit==3.6.2 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 28)) (3.6.2)
Requirement already satisfied: prompt-toolkit==3.0.43 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 29)) (3.0.43)
Requirement already satisfied: psutil==5.9.8 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 30)) (5.9.8)
Requirement already satisfied: python-dateutil==2.9.0.post0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 31)) (2.9.0.post0)
Requirement already satisfied: PyYAML==6.0.1 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 32)) (6.0.1)
Requirement already satisfied: requests==2.31.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 33)) (2.31.0)
Requirement already satisfied: show-in-file-manager==1.1.4 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 34)) (1.1.4)
Requirement already satisfied: six==1.16.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 35)) (1.16.0)
Requirement already satisfied: sympy==1.12 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 36)) (1.12)
Requirement already satisfied: torch==2.2.1 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 37)) (2.2.1)
Requirement already satisfied: tqdm==4.66.2 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 38)) (4.66.2)
Requirement already satisfied: typing_extensions==4.10.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 39)) (4.10.0)
Requirement already satisfied: tzdata==2024.1 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 40)) (2024.1)
Requirement already satisfied: urllib3==2.2.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 41)) (2.2.0)
Requirement already satisfied: vine==5.1.0 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 42)) (5.1.0)
Requirement already satisfied: virtualenv==20.25.1 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 43)) (20.25.1)
Requirement already satisfied: wcwidth==0.2.13 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 44)) (0.2.13)
Requirement already satisfied: Werkzeug==3.0.1 in e:\python\minconda\lib\site-packages (from -r requirements.txt (line 45)) (3.0.1)
Requirement already satisfied: colorama in e:\python\minconda\lib\site-packages (from click==8.1.7->-r requirements.txt (line 8)) (0.4.6)
Requirement already satisfied: setuptools in e:\python\minconda\lib\site-packages (from nodeenv==1.8.0->-r requirements.txt (line 24)) (68.0.0)
Requirement already satisfied: pywin32>=301 in e:\python\minconda\lib\site-packages (from show-in-file-manager==1.1.4->-r requirements.txt (line 34)) (306)

ComfyUI Launcher is starting...

Celery worker started with PID: 1870
[2024-05-20 21:59:07,224: DEBUG/MainProcess] | Worker: Preparing bootsteps.
[2024-05-20 21:59:07,227: DEBUG/MainProcess] | Worker: Building graph...
[2024-05-20 21:59:07,227: DEBUG/MainProcess] | Worker: New boot order: {Beat, StateDB, Timer, Hub, Pool, Autoscaler, Consumer}
[2024-05-20 21:59:07,236: DEBUG/MainProcess] | Consumer: Preparing bootsteps.
[2024-05-20 21:59:07,236: DEBUG/MainProcess] | Consumer: Building graph...
[2024-05-20 21:59:07,251: DEBUG/MainProcess] | Consumer: New boot order: {Connection, Events, Heart, Mingle, Gossip, Tasks, Control, Agent, event loop}
[2024-05-20 21:59:07,252: WARNING/MainProcess] No hostname was supplied. Reverting to default 'localhost'

 -------------- celery@DESKTOP-DDI6IG4 v5.3.6 (emerald-rush)
--- ***** -----
-- ******* ---- Windows-10-10.0.19045-SP0 2024-05-20 21:59:07
- *** --- * ---
- ** ---------- [config]
- ** ---------- .> app:         server:0x1fd47f406d0
- ** ---------- .> transport:   filesystem://localhost//
- ** ---------- .> results:     file://.celery%5Cresults/
- *** --- * --- .> concurrency: 16 (prefork)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** -----
 -------------- [queues]
                .> celery           exchange=celery(direct) key=celery

[tasks]
  . celery.accumulate
  . celery.backend_cleanup
  . celery.chain
  . celery.chord
  . celery.chord_unlock
  . celery.chunks
  . celery.group
  . celery.map
  . celery.starmap
  . tasks.create_comfyui_project

[2024-05-20 21:59:07,275: DEBUG/MainProcess] | Worker: Starting Pool
Starting ComfyUI Launcher...
Open http://localhost:4000 in your browser.
 * Serving Flask app 'server'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:4000
 * Running on http://192.168.1.63:4000
Press CTRL+C to quit
[2024-05-20 21:59:07,281: CRITICAL/MainProcess] Unrecoverable error: AttributeError("Can't pickle local object 'celery_init_app.<locals>.FlaskTask'")
Traceback (most recent call last):
  File "E:\Python\minconda\Lib\site-packages\celery\worker\worker.py", line 202, in start
    self.blueprint.start(self)
  File "E:\Python\minconda\Lib\site-packages\celery\bootsteps.py", line 116, in start
    step.start(parent)
  File "E:\Python\minconda\Lib\site-packages\celery\bootsteps.py", line 365, in start
    return self.obj.start()
           ^^^^^^^^^^^^^^^^
  File "E:\Python\minconda\Lib\site-packages\celery\concurrency\base.py", line 130, in start
    self.on_start()
  File "E:\Python\minconda\Lib\site-packages\celery\concurrency\prefork.py", line 109, in on_start
    P = self._pool = Pool(processes=self.limit,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Python\minconda\Lib\site-packages\billiard\pool.py", line 1045, in __init__
    self._create_worker_process(i)
  File "E:\Python\minconda\Lib\site-packages\billiard\pool.py", line 1157, in _create_worker_process
    w.start()
  File "E:\Python\minconda\Lib\site-packages\billiard\process.py", line 120, in start
    self._popen = self._Popen(self)
                  ^^^^^^^^^^^^^^^^^
  File "E:\Python\minconda\Lib\site-packages\billiard\context.py", line 381, in _Popen
    return Popen(process_obj)
           ^^^^^^^^^^^^^^^^^^
  File "E:\Python\minconda\Lib\site-packages\billiard\popen_spawn_win32.py", line 81, in __init__
    reduction.dump(process_obj, to_child)
  File "E:\Python\minconda\Lib\site-packages\billiard\reduction.py", line 98, in dump
    ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'celery_init_app.<locals>.FlaskTask'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "E:\Python\minconda\Lib\site-packages\billiard\spawn.py", line 164, in spawn_main
    exitcode = _main(fd)
               ^^^^^^^^^
  File "E:\Python\minconda\Lib\site-packages\billiard\spawn.py", line 206, in _main
    self = pickle.load(from_parent)
           ^^^^^^^^^^^^^^^^^^^^^^^^
EOFError: Ran out of input
127.0.0.1 - - [20/May/2024 21:59:30] "GET / HTTP/1.1" 200 -
fractalfantasy commented 5 months ago

getting the same here, did you figure it out?

nadolsw commented 5 months ago

Yep, just needed to update my comfyui installation and that resolved it.

On Wed, Jun 12, 2024 at 9:39 PM fractalfantasy @.***> wrote:

getting the same here, did you figure it out?

— Reply to this email directly, view it on GitHub https://github.com/ComfyWorkflows/ComfyUI-Launcher/issues/37#issuecomment-2164191718, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJHS6QQON7LUVYYGBOC54WLZHDZ5VAVCNFSM6AAAAABIAWXWSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRUGE4TCNZRHA . You are receiving this because you authored the thread.Message ID: @.***>