pinokiocomputer / pinokio

AI Browser
https://pinokio.computer
MIT License
3.69k stars 301 forks source link

ENOENT: No such file or directory #71

Open TrySpace opened 11 months ago

TrySpace commented 11 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]}}'

DataJuggler commented 1 month ago

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

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

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

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

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

in which file?

drabanus commented 1 month 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.

Where would that name have to be changed?

robbsaber commented 1 month ago

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

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

nemesissoftkft commented 2 weeks ago

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

gallerix commented 2 weeks ago

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

DataJuggler commented 2 weeks ago

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

same issue

DataJuggler commented 1 week ago

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

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!" } } ] }