pinokiocomputer / pinokio

AI Browser
https://pinokio.computer
MIT License
3.22k stars 263 forks source link

ENOENT: No such file or directory #71

Open TrySpace opened 9 months ago

TrySpace commented 9 months ago

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>
Microsoft Windows [Version 10.0.19045.3693]]0;C:\Windows\SYSTEM32\cmd.exe[?25h
(c) Microsoft Corporation. All rights reserved.        

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
]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:
   0.1 seconds: C:\Users\xxx\pinokio\api\comfyui.pinokio.git\ComfyUI\custom_nodes\ComfyUI-Manager[?25hTraceback (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
]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 commented 9 months ago

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 commented 8 months ago

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

L0G1CALEE commented 8 months ago

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 commented 8 months ago

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

TrySpace commented 8 months ago

@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 commented 8 months ago

I faced the same issue. No solution yet?

Wickedesigns commented 8 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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: https://github.com/openai/triton/issues/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 commented 6 months ago

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 commented 5 months ago

I get the same error while trying to launch Stream Diffusion

image

CoderJackZhu commented 5 months ago

I get the same problem in comfyUI

The-Error commented 5 months ago

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 commented 5 months ago

I get the same error while trying to launch Stream Diffusion

image

Ubuntu 22.04

eljabbaryhicham commented 4 months ago

just reset the cache

mertakbal commented 4 months ago

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

eljabbaryhicham commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 3 months ago

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

ibrdd commented 3 months ago

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

it worked for me.

katenewhill commented 2 months ago

Same issue for me but for Stable Diffusion Web UI, I have cleared the trash and cache and still this pops up ENOENT: no such file or directory, stat '/Users/katenewhill/pinokio/api/automatic1111.git/{{input.event[0]}}'

chillman123 commented 2 months ago

Same issue for me but for Stable Diffusion Web UI, I have cleared the trash and cache and still this pops up ENOENT: no such file or directory, stat '/Users/katenewhill/pinokio/api/automatic1111.git/{{input.event[0]}}'

Any fixes?

mcdeimon commented 2 months ago

Same issue for me but for Stable Diffusion Web UI, I have cleared the trash and cache and still this pops up ENOENT: no such file or directory, stat '/Users/katenewhill/pinokio/api/automatic1111.git/{{input.event[0]}}'

Any fixes?

I solved it by disabling NordVPN's threat protection. I hope this helps.

Azathoth88 commented 1 month ago

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 Thanks! Solved my problem with automatic1111 "ENOENT: no such file or directory, stat 'D:\pinokio\api\automatic1111.git\app\webui-user.bat'"

mhmti commented 1 month ago

ENOENT: no such file or directory, stat 'C:\Users\Asus\pinokio\api\fooocus.git{{input.event[0]}}' I am getting this error, I tried all the methods I know and couldn't solve it.

antrax2024 commented 1 month ago

Same problem here

Hamstersound commented 1 month ago

Yesterday on August 3th the Program works fine! But today i have the Same problem :-(. Anyone can help?

Ridoushka commented 1 month ago

ENOENT: no such file or directory, stat 'C:\Users\pinokio\api\magnet{{input.event[0]}}' I am getting this error, I tried all the methods I know and couldn't solve it. :((

JasperCiti commented 1 month ago

I'm also getting this issue on Pinokio 2.1.17.

Windows 10

Reinstalled Pinokio several times, cleared cache, reset app, delete app and reinstall app. Still getting the same error for all apps.

artemisoftnian commented 1 month ago

At least for me on Pop_os! this post fix my issue: https://github.com/pinokiocomputer/pinokio/issues/193, this probably works for ubuntu flavors too.

DataJuggler commented 3 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 1 week ago

Any answers or solutions yet? Getting this error now.

StonyJr commented 1 week ago

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 commented 1 week ago

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

StonyJr commented 1 week ago

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 commented 1 week ago

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.