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

ENOENT: No such file or directory #71

Open
TrySpace opened this issue Dec 7, 2023 · 69 comments
Open

ENOENT: No such file or directory #71

TrySpace opened this issue Dec 7, 2023 · 69 comments

Comments

@TrySpace
Copy link

TrySpace commented Dec 7, 2023

When I start the default ComfyUI I get an error and pinokio crashes, but if I start the CPU mode it works fine.

ENOENT

It seems an input value is not properly passed in the normal mode..

To be clear, the directory does exist.

Partial log:

C:\Users\xxx\pinokio\bin>
socket ID {
  id: 'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\start.json',
  req: {
    uri: '~/api/comfyui.pinokio.git/start.json',
    input: { fullscreen: 'true', run: 'true' },
    client: { cols: 181, rows: 81 }
  }
}
load error C:\Users\xxx\pinokio\key.json Error: Cannot find module 'C:\Users\xxx\pinokio\key.json'
Require stack:
- C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\loader.js
- C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\index.js
- C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\server\index.js
- C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\index.js
- C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\main.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:1002:15)
    at n._resolveFilename (node:electron/js2c/browser_init:2:109734)
    at Module._load (node:internal/modules/cjs/loader:848:27)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1068:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Loader.requireJSON (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\loader.js:38:20)
    at Loader.load (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\loader.js:15:29)
    at Api.process (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\api\index.js:787:43)
    at WebSocket.<anonymous> (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\server\socket.js:65:42) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\xxx\\AppData\\Local\\Programs\\Pinokio\\resources\\app.asar\\node_modules\\pinokiod\\kernel\\loader.js',
    'C:\\Users\\xxx\\AppData\\Local\\Programs\\Pinokio\\resources\\app.asar\\node_modules\\pinokiod\\kernel\\index.js',
    'C:\\Users\\xxx\\AppData\\Local\\Programs\\Pinokio\\resources\\app.asar\\node_modules\\pinokiod\\server\\index.js',
    'C:\\Users\\xxx\\AppData\\Local\\Programs\\Pinokio\\resources\\app.asar\\node_modules\\pinokiod\\index.js',
    'C:\\Users\\xxx\\AppData\\Local\\Programs\\Pinokio\\resources\\app.asar\\main.js',
    undefined
  ]
}
fun function anonymous(uri,cwd,key,local,global,self,input,current,next,event,_,os,path,system,pip,platform,arch,gpu,gpus
) {
return platform === 'darwin' ? '--force-fp16' : ''
}
response 
get prompt - pty.spawn {
  name: 'xterm-color',
  cols: 181,
  rows: 81,
  cwd: 'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI',
  env: {
    ALLUSERSPROFILE: 'C:\\ProgramData',
    APPDATA: 'C:\\Users\\xxx\\AppData\\Roaming',
    CommonProgramFiles: 'C:\\Program Files\\Common Files',
    CommonProgramW6432: 'C:\\Program Files\\Common Files',
    COMPUTERNAME: 'ME23',
    ComSpec: 'C:\\Windows\\system32\\cmd.exe',
    DriverData: 'C:\\Windows\\System32\\Drivers\\DriverData',
    HOMEDRIVE: 'C:',
    HOMEPATH: '\\Users\\xxx',
    LOCALAPPDATA: 'C:\\Users\\xxx\\AppData\\Local',
    LOGONSERVER: '\\\\ME23',
    NUMBER_OF_PROCESSORS: '12',
    NVM_HOME: 'C:\\Users\\xxx\\AppData\\Roaming\\nvm',
    NVM_SYMLINK: 'C:\\Program Files\\nodejs',
    OneDrive: 'C:\\Users\\xxx\\OneDrive',
    OneDriveConsumer: 'C:\\Users\\xxx\\OneDrive',
    ORIGINAL_XDG_CURRENT_DESKTOP: 'undefined',
    OS: 'Windows_NT',
    Path: 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Auxiliary\\Build;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64;C:\\Users\\xxx\\pinokio\\bin\\miniconda\\etc\\profile.d;C:\\Users\\xxx\\pinokio\\bin\\miniconda\\Scripts;C:\\Users\\xxx\\pinokio\\bin\\miniconda\\condabin;C:\\Users\\xxx\\pinokio\\bin\\miniconda\\lib;C:\\Users\\xxx\\pinokio\\bin\\miniconda\\Library\\bin;C:\\Users\\xxx\\pinokio\\bin\\miniconda\\pkgs;C:\\Users\\xxx\\pinokio\\bin\\miniconda;C:\\Users\\xxx\\pinokio\\bin\\homebrew\\bin;C:\\Users\\xxx\\pinokio\\bin\\homebrew\\Cellar;C:\\Users\\xxx\\pinokio\\bin\\aria2;C:\\Windows\\System32;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;%NVM_HOME%;%NVM_SYMLINK%;C:\\Program Files\\dotnet\\;C:\\Program Files\\CMake\\bin;C:\\Users\\xxx\\.pyenv\\pyenv-win\\bin;C:\\Users\\xxx\\.pyenv\\pyenv-win\\shims;C:\\Users\\xxx\\.console-ninja\\.bin;C:\\Users\\xxx\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\xxx\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\xxx\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs',
    PATHEXT: '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
    PROCESSOR_ARCHITECTURE: 'AMD64',
    PROCESSOR_IDENTIFIER: 'AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD',
    PROCESSOR_LEVEL: '23',
    PROCESSOR_REVISION: '0101',
    ProgramData: 'C:\\ProgramData',
    ProgramFiles: 'C:\\Program Files',
    'ProgramFiles(x86)': 'C:\\Program Files (x86)',
    ProgramW6432: 'C:\\Program Files',
    PSModulePath: 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules',
    PUBLIC: 'C:\\Users\\Public',
    PYENV: 'C:\\Users\\xxx\\.pyenv\\pyenv-win\\',
    PYENV_HOME: 'C:\\Users\\xxx\\.pyenv\\pyenv-win\\',
    PYENV_ROOT: 'C:\\Users\\xxx\\.pyenv\\pyenv-win\\',
    SESSIONNAME: 'Console',
    SystemDrive: 'C:',
    SystemRoot: 'C:\\Windows',
    TEMP: 'C:\\Users\\xxx\\pinokio\\cache\\TEMP',
    TMP: 'C:\\Users\\xxx\\pinokio\\cache\\TMP',
    USERDOMAIN: 'ME23',
    USERDOMAIN_ROAMINGPROFILE: 'ME23',
    USERNAME: 'xxx',
    USERPROFILE: 'C:\\Users\\xxx',
    VBOX_MSI_INSTALL_PATH: 'C:\\Program Files\\Oracle\\VirtualBox\\',
    windir: 'C:\\Windows',
    CMAKE_OBJECT_PATH_MAX: 1024,
    HF_HOME: 'C:\\Users\\xxx\\pinokio\\cache\\HF_HOME',
    TORCH_HOME: 'C:\\Users\\xxx\\pinokio\\cache\\TORCH_HOME',
    HOMEBREW_CACHE: 'C:\\Users\\xxx\\pinokio\\bin\\homebrew\\cache',
    XDG_CACHE_HOME: 'C:\\Users\\xxx\\pinokio\\cache\\XDG_CACHE_HOME',
    PIP_CACHE_DIR: 'C:\\Users\\xxx\\pinokio\\cache\\PIP_CACHE_DIR',
    PIP_TMPDIR: 'C:\\Users\\xxx\\pinokio\\cache\\TMPDIR',
    XDG_DATA_HOME: 'C:\\Users\\xxx\\pinokio\\cache\\XDG_DATA_HOME',
    XDG_CONFIG_HOME: 'C:\\Users\\xxx\\pinokio\\cache\\XDG_CONFIG_HOME',
    XDG_STATE_HOME: 'C:\\Users\\xxx\\pinokio\\cache\\XDG_STATE_HOME',
    HOMEBREW_PREFIX: 'C:\\Users\\xxx\\pinokio\\bin\\homebrew',
    HOMEBREW_CELLAR: 'C:\\Users\\xxx\\pinokio\\bin\\homebrew\\Cellar',
    HOMEBREW_REPOSITORY: 'C:\\Users\\xxx\\pinokio\\bin\\homebrew',
    CONDA_PREFIX: 'C:\\Users\\xxx\\pinokio\\bin\\miniconda',
    PYTHON: 'C:\\Users\\xxx\\pinokio\\bin\\miniconda\\python',
    CONDA_BAT: 'C:\\Users\\xxx\\pinokio\\bin\\miniconda\\condabin\\conda.bat',
    CONDA_EXE: 'C:\\Users\\xxx\\pinokio\\bin\\miniconda\\Scripts\\conda.exe',
    CONDA_PYTHON_EXE: 'C:\\Users\\xxx\\pinokio\\bin\\miniconda\\Scripts\\python',
    GIT_CONFIG_GLOBAL: 'C:\\Users\\xxx\\pinokio\\gitconfig',
    PYTORCH_MPS_HIGH_WATERMARK_RATIO: '0.0'
  }
}
terminal spawned WindowsTerminal {
  _onData: EventEmitter2 { _listeners: [] },
  _onExit: EventEmitter2 { _listeners: [] },
  _internalee: EventEmitter {
    _events: [Object: null prototype] {},
    _eventsCount: 0,
    _maxListeners: undefined,
    [Symbol(kCapture)]: false
  },
  handleFlowControl: false,
  _flowControlPause: '\x13',
  _flowControlResume: '\x11',
  _cols: 181,
  _rows: 81,
  _isReady: false,
  _deferreds: [],
  _agent: WindowsPtyAgent {
    _useConpty: true,
    _ptyNative: {
      startProcess: [Function: startProcess],
      connect: [Function: connect],
      resize: [Function: resize],
      kill: [Function: kill]
    },
    _fd: -1,
    _pty: 17,
    _outSocket: Socket {
      connecting: true,
      _hadError: false,
      _parent: null,
      _host: null,
      _closeAfterHandlingError: false,
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 5,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: null,
      _server: null,
      [Symbol(async_id_symbol)]: 3769,
      [Symbol(kHandle)]: [Pipe],
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: null,
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(kSetKeepAlive)]: false,
      [Symbol(kSetKeepAliveInitialDelay)]: 0,
      [Symbol(kBytesRead)]: 0,
      [Symbol(kBytesWritten)]: 0
    },
    _inSocket: Socket {
      connecting: true,
      _hadError: false,
      _parent: null,
      _host: null,
      _closeAfterHandlingError: false,
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 1,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: null,
      _server: null,
      [Symbol(async_id_symbol)]: 3771,
      [Symbol(kHandle)]: [Pipe],
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: null,
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(kSetKeepAlive)]: false,
      [Symbol(kSetKeepAliveInitialDelay)]: 0,
      [Symbol(kBytesRead)]: 0,
      [Symbol(kBytesWritten)]: 0
    },
    _innerPid: 13372
  },
  _socket: <ref *1> Socket {
    connecting: true,
    _hadError: false,
    _parent: null,
    _host: null,
    _closeAfterHandlingError: false,
    _readableState: ReadableState {
      objectMode: false,
      highWaterMark: 16384,
      buffer: BufferList { head: null, tail: null, length: 0 },
      length: 0,
      pipes: [],
      flowing: true,
      ended: false,
      endEmitted: false,
      reading: false,
      constructed: true,
      sync: true,
      needReadable: false,
      emittedReadable: false,
      readableListening: false,
      resumeScheduled: true,
      errorEmitted: false,
      emitClose: false,
      autoDestroy: true,
      destroyed: false,
      errored: null,
      closed: false,
      closeEmitted: false,
      defaultEncoding: 'utf8',
      awaitDrainWriters: null,
      multiAwaitDrain: false,
      readingMore: false,
      dataEmitted: false,
      decoder: [StringDecoder],
      encoding: 'utf8',
      [Symbol(kPaused)]: false
    },
    _events: [Object: null prototype] {
      end: [Function: onReadableStreamEnd],
      connect: [Function],
      ready_datapipe: [Function (anonymous)],
      data: [Function (anonymous)],
      exit: [Function (anonymous)]
    },
    _eventsCount: 5,
    _maxListeners: undefined,
    _writableState: WritableState {
      objectMode: false,
      highWaterMark: 16384,
      finalCalled: false,
      needDrain: false,
      ending: false,
      ended: false,
      finished: false,
      destroyed: false,
      decodeStrings: false,
      defaultEncoding: 'utf8',
      length: 0,
      writing: false,
      corked: 0,
      sync: true,
      bufferProcessing: false,
      onwrite: [Function: bound onwrite],
      writecb: null,
      writelen: 0,
      afterWriteTickInfo: null,
      buffered: [],
      bufferedIndex: 0,
      allBuffers: true,
      allNoop: true,
      pendingcb: 0,
      constructed: true,
      prefinished: false,
      errorEmitted: false,
      emitClose: false,
      autoDestroy: true,
      errored: null,
      closed: false,
      closeEmitted: false,
      [Symbol(kOnFinished)]: []
    },
    allowHalfOpen: false,
    _sockname: null,
    _pendingData: null,
    _pendingEncoding: '',
    server: null,
    _server: null,
    [Symbol(async_id_symbol)]: 3769,
    [Symbol(kHandle)]: Pipe { [Symbol(owner_symbol)]: [Circular *1] },
    [Symbol(lastWriteQueueSize)]: 0,
    [Symbol(timeout)]: null,
    [Symbol(kBuffer)]: null,
    [Symbol(kBufferCb)]: null,
    [Symbol(kBufferGen)]: null,
    [Symbol(kCapture)]: false,
    [Symbol(kSetNoDelay)]: false,
    [Symbol(kSetKeepAlive)]: false,
    [Symbol(kSetKeepAliveInitialDelay)]: 0,
    [Symbol(kBytesRead)]: 0,
    [Symbol(kBytesWritten)]: 0
  },
  _pid: 13372,
  _fd: -1,
  _pty: 17,
  _file: 'cmd.exe',
  _name: 'xterm-color',
  _readable: true,
  _writable: true
}
create terminal for prompt
start a queue for prompt
onExit { exitCode: 0, signal: undefined }
ready? undefined
write echo pinokio
echo pinokio

{ match: null }
ready? true
{
  match: [
    '\n' +
      '\r\n' +
      'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>echo pinokio\r\n' +
      'pinokio\r\n' +
      '\r\n' +
      'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>',
    '\n\r\nC:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>',
    '\n\r\nC:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>',
    index: 22,
    input: 'echo pinokio\r\n' +
      'pinokio\r\n' +
      '\r\n' +
      'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>echo pinokio\r\n' +
      'pinokio\r\n' +
      '\r\n' +
      'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>',
    groups: undefined
  ]
}
{
  match: [
    '\n' +
      '\r\n' +
      'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>echo pinokio\r\n' +
      'pinokio\r\n' +
      '\r\n' +
      'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>',
    '\n\r\nC:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>',
    '\n\r\nC:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>',
    index: 22,
    input: 'echo pinokio\r\n' +
      'pinokio\r\n' +
      '\r\n' +
      'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>echo pinokio\r\n' +
      'pinokio\r\n' +
      '\r\n' +
      'C:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>',
    groups: undefined
  ],
  stripped: '\n\r\nC:\\Users\\xxx\\pinokio\\api\\comfyui.pinokio.git\\ComfyUI>'
}
matched path C:\\Users\\xxx\\pinokio\\api\\comfyui\.pinokio\.git\\ComfyUI>
kill term
term killed
vt disposed
queue killAndDrained
this.prompt_pattern C:\\Users\\xxx\\pinokio\\api\\comfyui\.pinokio\.git\\ComfyUI>
�[2J�[m�[HMicrosoft Windows [Version 10.0.19045.3693]�]0;C:\Windows\SYSTEM32\cmd.exe��[?25h
(c) Microsoft Corporation. All rights reserved.        
�[55X
C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI>
C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI>C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\env\Scripts\activate C:\Users\xxx\pinokio\api\comfyui.pinokio.git\Com
fyUI\env && python main.py�[K
�]0;C:\Windows\SYSTEM32\cmd.exe - C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\env\Scripts\activate  C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\env ��]0;C:\Windows\SYSTEM32\cmd.exe - python  main.py �onExit { result: { exitCode: 0, signal: undefined } }
** ComfyUI start up time: 2023-12-07 19:47:36.398248

Prestartup times for custom nodes:�[25l
   0.1 seconds: C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\custom_nodes\ComfyUI-Manager�[11;1H�[?25hTraceback (most recent call last):
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\main.py", line 72, in <module>     
    import execution�[78X
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\execution.py", line 12, in <module>
    import nodes�[82X
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\nodes.py", line 20, in <module>    
    import comfy.diffusers_load�[77X
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\diffusers_load.py", line 4, in <module>
    import comfy.sd�[93X
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\sd.py", line 5, in <module>�[16X
    from comfy import model_management�[74X
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\model_management.py", line 114, in <module>
    total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)�[68X
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\model_management.py", line 83, in get_torch_device�[18X
    return torch.device(torch.cuda.current_device())�[85X
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\env\lib\site-packages\torch\cuda\__init__.py", line 769, in current_device
    _lazy_init()�[121X
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\env\lib\site-packages\torch\cuda\__init__.py", line 289, in _lazy_init    
    raise AssertionError("Torch not compiled with CUDA enabled")�[73X
AssertionError: Torch not compiled with CUDA enabled�[85X
�]0;C:\Windows\SYSTEM32\cmd.exe�
(env) C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI>Exec finished Microsoft Windows [Version 10.0.19045.3693]
(c) Microsoft Corporation. All rights reserved.        

C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI>C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\env\Scripts\activate C:\Users\xxx\pinokio\api\comfyui.pinokio.git\Com
fyUI\env && python main.py
** ComfyUI start up time: 2023-12-07 19:47:36.398248

Prestartup times for custom nodes:
   0.1 seconds: C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\custom_nodes\ComfyUI-Manager

Traceback (most recent call last):
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\main.py", line 72, in <module>     
    import execution
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\execution.py", line 12, in <module>
    import nodes
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\nodes.py", line 20, in <module>    
    import comfy.diffusers_load
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\diffusers_load.py", line 4, in <module>
    import comfy.sd
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\sd.py", line 5, in <module>
    from comfy import model_management
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\model_management.py", line 114, in <module>
    total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\model_management.py", line 83, in get_torch_device
    return torch.device(torch.cuda.current_device())
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\env\lib\site-packages\torch\cuda\__init__.py", line 769, in current_device
    _lazy_init()
  File "C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\env\lib\site-packages\torch\cuda\__init__.py", line 289, in _lazy_init    
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

(env) C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI>
fun function anonymous(uri,cwd,key,local,global,self,input,current,next,event,_,os,path,system,pip,platform,arch,gpu,gpus
) {
return input.event[0]
}
ERROR TypeError: Cannot read properties of undefined (reading '0')
    at eval (eval at raw_get (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\template.js:216:15), <anonymous>:3:19)
    at Template.raw_get (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\template.js:219:22)
    at Template.render (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\template.js:140:22)
    at Template.render (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\template.js:191:38)
    at Template.render (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\template.js:191:38)
    at Template.render (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\template.js:191:38)
    at Api.step (C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\api\index.js:414:34)
    at async C:\Users\xxx\AppData\Local\Programs\Pinokio\resources\app.asar\node_modules\pinokiod\kernel\api\index.js:671:25
fun function anonymous(uri,cwd,key,local,global,self,input,current,next,event,_,os,path,system,pip,platform,arch,gpu,gpus
) {
return self.session.url
}
response {{input.event[0]}}
onExit { exitCode: 0, signal: undefined }

/Update

Also on Debian I get the same error: ENOENT: no such file or directory, stat '/home/xxx/pinokio/api/comfyui.pinokio.git/{{input.event[0]}}'

@Skyline969
Copy link

I don't have much to contribute other than I'm facing the same issue. Ubuntu 23.10. Exact same error: ENOENT: no such file or directory, stat '/home/xxx/pinokio/api/comfyui.pinokio.git/{{input.event[0]}}'

@p3nGu1nZz
Copy link

i got a similar error when trying to run llamacpp and the other text generation apps.

@L0G1CALEE
Copy link

I can confirm that this (ENOENT) issue affects 0.2.16 installs on Mac, Win, and Linux machines. Some scripts consistently work (Automatic1111) and some just don't (ComfyUI, MagicAnimate, <others?>). I wonder if this isn't a matter of (older) install/launch scripts breaking because the (newer) "browser" needs something it previously did not require. The silence from the dev team on this matter is curious and unfortunate. It will be interesting to see if they can fix this without breaking the working scripts.

I really hope Pinokio isn't too good to be true. It was off to a good start and until this issue came along, and allowed to linger, I was recommending it to others. For now though, it's back to the old way of installing and launching these things.

@TrySpace
Copy link
Author

TrySpace commented Jan 3, 2024

I'm going to guess this is a python or configuration issue with reading the 0 value of some array/list?

@TrySpace
Copy link
Author

TrySpace commented Jan 3, 2024

@L0G1CALEE I think it's all the useless bug reports here of obvious non-coders and frankly, children, that is making it very annoying to find actual bug-reports here...

@nothingness6
Copy link

I faced the same issue. No solution yet?

@Wickedesigns
Copy link

Are you installing with Pinokio? I got the same Erro, it turns out that Pinokio's UI is not very user friendly atm.... ONCE you click install, wait until it finishes, if you mess around with the window, it may interrupt the installation without notifications... So I went to the folders, deleted everything, then click install again without touching anything during the process, then it works.

@CreateSun
Copy link

Although I tried to delete all the files and install again, I still got the same error when I clicked the web UI after the install was complete

@visualpaco
Copy link

I get the same error: ENOENT: no such file or directory, stat '/Users/nta/pinokio/api/videocrafter2.git/{{input.event[0]}}'
on a mac book pro m3 max. Any solution yet? Is there any other way to use something like text2vid in Pinokio ?

@nothingness6
Copy link

nothingness6 commented Feb 21, 2024

Are you installing with Pinokio? I got the same Erro, it turns out that Pinokio's UI is not very user friendly atm.... ONCE you click install, wait until it finishes, if you mess around with the window, it may interrupt the installation without notifications... So I went to the folders, deleted everything, then click install again without touching anything during the process, then it works.

If it is true, it's really absurd.

Update: Ok, I just tried it and it still doesn't work. I didn't touch anything while installing.

@warrenarea
Copy link

I had the same error message in pinokio:
ENOENT: No such file or directory

and clicking "[Proxy] local sharing" it would open a browser, and attempt to
to connect via my lan ip (192.168.0.X:8000) to port 8000.

Also there was an error suggesting i needed to install 'uvicorn' and i think i installed
That, however what i think really solved the issue was this:

i think this is what i did to get it to function:

pinokio was indicating it was missing 'previewer/previewer_v1_100k.pt'

I downloaded 'previewer_v1_100k.pt' from here:
https://huggingface.co/spaces/multimodalart/stable-cascade/blob/165b9759d24c34d7722945ffd80a580f879405c6/previewer/previewer_v1_100k.pt

Navigate to your pinokio installation directory:
Drive:\Your_Path_Here\pinokioME\api\stablecascade.git\app\previewer

and place the previewer_v1_100k.pt file there.

After that, i restarted pinokio, ran an update on the installation package, and it started operating normally.
this time connecting with a proper localhost connection: 127.0.0.1

@AlexeyPodd
Copy link

have same issue. After some research i find out that problem is in app.py file. More specific - python can't import torch (i don't know why). app.py file in execution process writes ip address to console, and {{input.event[0]}} suppose to be this address read from the console. But since the address was not written (because app.py can't import torch), this error occurs.
I tried to install torch, torchaudio and torchvideo globally inside pinokio and globaly on my computer, as advises on stackoverflow, but it didn't help.

@warrenarea
Copy link

If you are operating on Windows, if you have strict firewall rules, also had to make some connection allowances:

Allow TCP ports 443,80 for these applications:

C:\users\Username\appdata\local\programs\pinokio\pinokio.exe
Drive:\Your_Path_Here\\pinokiome\bin\miniconda\library\mingw64\libexec\git-core\git-remote-https.exe
C:\windows\system32\lsass.exe
Drive:\Your_Path_Here\pinokiome\bin\miniconda\python.exe
Drive:\Your_Path_Here\pinokiome\bin\miniconda\library\mingw64\bin\git-lfs.exe

Also svchost.exe must be allowed for service: CryptSvc as lsass communicates with that service for
certificate credentials. otherwise you will have other failures like:
"0x80092013, CRYPT_E_REVOCATION_OFFLINE

i believe the root of the: ENOENT: No such file or directory is just that it can't find the previewer_v1_100k.pt file
as described above.

@AlexeyPodd
Copy link

Navigate to your pinokio installation directory: Drive:\Your_Path_Here\pinokioME\api\stablecascade.git\app\previewer

and place the previewer_v1_100k.pt file there.

I have this file. And i'm using linux, so this is not the cause of the problem. At least not for me..

@warrenarea
Copy link

Navigate to your pinokio installation directory: Drive:\Your_Path_Here\pinokioME\api\stablecascade.git\app\previewer
and place the previewer_v1_100k.pt file there.

I have this file. And i'm using linux, so this is not the cause of the problem. At least not for me..

Can you provide a screenshot of your pinokio output. Perhaps it will yield some clues as to what the issues is.
You may also try to see if there was any modules it says it couldn't install. I also manually installed uvicorn into the venv.
It also says that triton module can't be found, but it will work without it regardless.

@AlexeyPodd
Copy link

AlexeyPodd commented Feb 29, 2024

I added prints to app.py file to show where is problem:
Снимок экрана от 2024-02-29 18-39-24
This is pinokio start output (the inscription in russian translates as “invalid instruction”):
Снимок экрана от 2024-02-29 18-40-54
And this is Open WebUI output:
Снимок экрана от 2024-02-29 18-43-07
I have installed torch, torchaudio and torchvideo in env, globaly in pinokio and globaly on my linux. Tried cpu and linux-amd versions. Didn't help.

@warrenarea
Copy link

image
This is what it will look like, when it's operational.

What is interesting, is that i just tried to install "triton-2.0.0". It wasn't necessary for operation, but it supposedly helps with performance. also, i noted many people were saying that they couldn't get 'triton' working with Windows. However there was some partially working builds of it, more info here: triton-lang/triton#1057

After i installed triton to my working build, it "stopped" working, and came up with the same ENOENT error. So keep that in mind, that the error is just a general failure of something in the torch package, possibly an 'xformers' module?

Something you could try is: editing start.js in \pinokioME\api\stablescascade.git

image

so that way, when Pinokio tries to launch it, it'll enable increased verbosity,
and you can look for possibly a more in-depth reason for what failed.

@warrenarea
Copy link

To test the issue, i uninstalled uvicorn, and i began to get these errors:

E:\pinokioME\bin\py>conda_hook && conda activate base && uvicorn --port 42001 server:app
ERROR:    Error loading ASGI app. Could not import module "server".

E:\pinokioME\bin\py>conda_hook && conda activate base && uvicorn --port 42001 server:app
ERROR:    Error loading ASGI app. Could not import module "server".

the ENOENT issue was present, just not connecting, because uvicorn is what takes care of the HTTP connection.

the unusual part is that when i ran pinokio's update feature, it said it installed uvicorn, but it was still very broken.

i tried reinstalling uvicorn in the api\stablecascade.git\app python environment, and it still kept breaking. so i uninstalled it again, and first installed it in the bin\miniconda python environment. and even though it installed there, then it said it couldn't find the uvicorn module.

then i installed uvicorn again in api\stablecascade.git\app env, and that worked.

so my conclusion, was that you must first install it in the \bin\miniconda env
and then in the \api\stablecascade.git\app env.

<Close Pinokio>

\pinokioME\bin\miniconda\Scripts>activate
\pinokioME\bin\miniconda\Scripts>pip.exe install uvicorn
\pinokioME\bin\miniconda\Scripts>deactivate

\pinokioME\api\stablecascade.git\app>.\env\Scripts\activate
\pinokioME\api\stablecascade.git\app>.\env\Scripts\pip install uvicorn
\pinokioME\api\stablecascade.git\app>.\env\Scripts\deactivate

<Open Pinokio>

I'm sure there is probably a more convenient solution using
conda, but this is just what worked for me.

@mertakbal
Copy link

I get the same error while trying to launch Stream Diffusion

image

@CoderJackZhu
Copy link

I get the same problem in comfyUI

@The-Error
Copy link

The-Error commented Mar 23, 2024

Same problem here. Tried multiple different software and they all display the same error message. Running on macOS Sonoma 14.4 (Intel) and Pinokio version 1.2.22 (fresh install)

@mertakbal
Copy link

I get the same error while trying to launch Stream Diffusion

image

Ubuntu 22.04

@eljabbaryhicham
Copy link

just reset the cache

@mertakbal
Copy link

This is error also shows for other applications like instantstyle
Please please give us a solution or a workaround.
Thank you very much

@eljabbaryhicham
Copy link

This is error also shows for other applications like instantstyle Please please give us a solution or a workaround. Thank you very much

all you need is just reset the cache : Pinokio>settings>cache>reset

@mertakbal
Copy link

This is error also shows for other applications like instantstyle Please please give us a solution or a workaround. Thank you very much

all you need is just reset the cache : Pinokio>settings>cache>reset

the problem persists after resetting the cache

@LAG7118
Copy link

LAG7118 commented May 1, 2024

Regarding my case,
PermissionError: [Errno 13] Permission denied: 'C:\Users\Admin\.matplotlib\fontlist-v330.json.matplotlib-lock'
This error occured when I launch default, I just located the .matplotlib and found nothing indise this file. The solution is just delete the file, then my problem is settled. Hope my experience does help someone.

@FreezaSama
Copy link

here's what worked for me... I've pressed the "reset" button and installed it again...

@ibrdd
Copy link

ibrdd commented Jun 4, 2024

here's what worked for me... I've pressed the "reset" button and installed it again...

it worked for me.

@DataJuggler
Copy link

I also get this error on at least two apps, Bark Voice Cloning and Arc 2 Face . Tried everything, deleted Pinokio directories, reinstalled, Pinokio deleting all cached folders, reset bin.

I wish there was a 'Report Problem' built into Pinokio for apps.

@moobond
Copy link

moobond commented Aug 20, 2024

pinokio seems do not want to repair anything. There should better performance brower in the market. We are waiting for better choice than pinokio.

@wavic
Copy link

wavic commented Aug 20, 2024

Same error!
It appeared when I changed the location of Home in Pinokio settings
Apps that were working before that do not work anymore.
There is not enough space on my ~/home/$USER/ partition and decided to use another

@DataJuggler
Copy link

DataJuggler commented Aug 20, 2024

Exact same situation for me. My C drive is getting low so I chose another drive. I will check if I can move some stuff off C and reinstall Pinokio to C.

The cause of this is most likely the same as this image I made with Flux over the weekend.

image

@DataJuggler
Copy link

Just to report, I uninstalled Pinokio, put everything on C defaults, and still get the error.

Tried a new app tonight, video transcription and this error appeared.

ENOENT: no such file or directory, stat 'C:\pinokio\api\mlx-video-transcription.git{{input.event[0]}}'

So uninstalling is not a solution from what I can tell.

@wavic
Copy link

wavic commented Aug 22, 2024

Just to report, I uninstalled Pinokio, put everything on C defaults, and still get the error.

Tried a new app tonight, video transcription and this error appeared.

ENOENT: no such file or directory, stat 'C:\pinokio\api\mlx-video-transcription.git{{input.event[0]}}'

So uninstalling is not a solution from what I can tell.

Well, I am on Linux and got the same error.

@beansfotos
Copy link

Any answers or solutions yet? Getting this error now.

@StonyJr
Copy link

StonyJr commented Aug 30, 2024

The problem seems to be the name of the installation. I deleted the '.git' from the name during a fresh installation and it works. So do not use "open-webui.git" but "open-webui" as name.

@robbsaber
Copy link

Attempted to rename/remove .git from Arc2face installation. Same error.

@StonyJr
Copy link

StonyJr commented Aug 30, 2024

Attempted to rename/remove .git from Arc2face installation. Same error.

Hmmm ... did other installations without '.git' ... seems to work. Sorry... hoped that would solve it.

@robbsaber
Copy link

Attempted to rename/remove .git from Arc2face installation. Same error.

Hmmm ... did other installations without '.git' ... seems to work. Sorry... hoped that would solve it.

I haven't needed to remove .git for other installations. For example, instantstyle installed without issue. It may work on other repos though.

@DataJuggler
Copy link

I get this every app almost. I already requested Pinokio needs a way for us to rate apps, because most apps don't work. This is probably Microsoft getting back at the dark side for not using .NET.

@nestormancn
Copy link

it seems when it starts the variable {input.event[0]}} can't get the value.
Reason 1: can be the antivirus
Reason 3: can be the folder name

I did this and worked for me:
1/ Delete the app and install again, when installing rename the default name "open-webui.git" to "openwebui", those removing any "funny" character that can break the code when running the start.js code.

2/ (optional): Stop your antivirus, start the app, run the antivirus again (I don't think this is needed, but if step 1 doesn't work, you can try this together.

I did both and worked for, not sure what step helped, as programmer I feel is the step 1. Hope works for you all!

@sanebg
Copy link

sanebg commented Sep 15, 2024

Pinokio? Who is still using this POS shitty script. Half of the apps are not working , outdated and total waste of time and energy.

It's supposed to be helpful but in reality is just a bunch of everything where mostly anything doesn't work properly, besides the newest or the most popular stuff.

@Alek2077
Copy link

Alek2077 commented Sep 20, 2024

I had this issue but it was my mistake as I was passing an additional parameter, in particular ("enable_hr": True,) for hires fix, while this line should've been commented out as all other parameters relating to hires were. Once I commented it out, the issue was gone.

@feidao90
Copy link

我遇到了这个问题,但这是我的错误,因为我传递了一个额外的参数,特别是(“enable_hr”:True,)用于修复雇佣问题,而这一行应该被注释掉,因为所有其他与雇佣相关的参数都被注释掉了。一旦我将其注释掉,问题就消失了。

in which file?

@drabanus
Copy link

drabanus commented Oct 1, 2024

The problem seems to be the name of the installation. I deleted the '.git' from the name during a fresh installation and it works. So do not use "open-webui.git" but "open-webui" as name.

Where would that name have to be changed?

@robbsaber
Copy link

I had the same issue installing SUPIR. This is what finally worked for me :

It's a problem between the installed Gradio version and fastapi or something.

Just have to downgrade gradio to version 4.43.0 to "fix".

In Windows, this has to done with Anaconda PowerShell Prompt (Miniconda) which is included with Pinokio. Can find it using the normal windows search in the Start Menu. Don't use cmd or MS PowerShell.

enter:

cd D:\pinokio\api\supir.git\app

env/Scripts/activate

pip install gradio==4.43.0

and done. Should work as expected again.

@VJDemien
Copy link

VJDemien commented Oct 9, 2024

ENOENT: no such file or directory, stat 'S:\pinokio\api\mlx-video-transcription.git{{input.event[0]}}'

@nemesissoftkft
Copy link

run as administrator, after that it was able to update conda and it started

@gallerix
Copy link

Same issue, pinokio was just installed. Tried several apps inside, all is “ENOENT: no such file or directory”. Linux

@DataJuggler
Copy link

Not sure if this will help anyone else, but I may have found a solution. I had an app that worked once, then didn't work.

I ran this python command in a command prompt as Administrator (Windows) to kill all python tasks.

taskkill /F /IM python.exe

Then I ran Pinokio as administrator and it worked again. I installed a few apps that had failed for me before.

My guess is perhaps some Python libraries had a lock on them since something else was still running that uses it. Maybe someone smarter than me can verify if that is the case. I know I had about 10 Python processes that were destroyed, so not all these Python apps close?

@Qualzz
Copy link

Qualzz commented Oct 22, 2024

same issue

@DataJuggler
Copy link

Has anyone else tried my suggestion I wrote above? Since I learned about Task Kill, to kill every python process every app has installed.

Run an admin command prompt

taskkill /F /IM python.exe

Then run Pinokio as Administrator, then install the app(s).

@InboundCPH
Copy link

Tiktoken missing-Edit the install file to install Tiktoken:

module.exports = {
run: [
{
method: "shell.run",
params: {
message: [
"git clone https://github.com/wandb/openui app",
]
}
},
{
method: "shell.run",
params: {
venv: "env",
path: "app/backend",
message: [
"pip install ."
],
}
},
{
method: "shell.run",
params: {
venv: "env",
path: "app/backend",
message: [
"pip install tiktoken"
],
}
},
{
method: "fs.link",
params: {
venv: "app/backend/env"
}
},
{
method: "notify",
params: {
html: "Click the 'start' tab to get started!"
}
}
]
}

@Attila-Deak
Copy link

At least for me on Pop_os! this post fix my issue: #193, this probably works for ubuntu flavors too.

I can confirm that this worked on Ubuntu MATE 24.04

sudo apt update && sudo apt upgrade
sudo apt install build-essential dkms
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
sudo apt-get update
sudo apt install libnccl2 libnccl-dev
ldconfig -p | grep libnccl

@robertand
Copy link

for me this fixed the problem: running in linux mint terminal this command
sudo apt update
sudo apt install libnccl2 libnccl-dev

@evandrouzeda
Copy link

I have a dirty hands soluciotion:

In my case, using Manjaro Linux, I need to Download the tar file package from NVIDIA using this Install Guide.

After extract I need to copy the content in nccl-version/lib/ to the torch lib folder.

Copy the content from here

/home/myuser/Downloads/nccl_2.23.4-1+cuda12.6_x86_64/lib/

to

/home/myuser/pinokio/api/fish.git/app/env/lib/python3.10/site-packages/torch/lib/

I hope this helps someone not using Ubuntu

@mertakbal
Copy link

After too many fails, I switched to StabilityMatrix

@byjlw
Copy link

byjlw commented Dec 6, 2024

Same issue with stable cascade. Why is this such a persistent issue with no resolution?

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