rvion / CushyStudio

πŸ›‹ The AI and Generative Art platform for everyone
https://docs.cushystudio.com/
GNU Affero General Public License v3.0
662 stars 48 forks source link

Errors during installation on Windows #113

Closed specblades closed 8 months ago

specblades commented 9 months ago

All the errors i get

image
ShashwatDubey99 commented 8 months ago

same here

ShashwatDubey99 commented 8 months ago

but nothing problem fixed after wait

rvion commented 8 months ago

So, it resolve itself ?

ShashwatDubey99 commented 8 months ago

So, it resolve itself ?

Yeah but don't know how and why

rvion commented 8 months ago

I really really want to fix those install issues. I tried to do something a bit original here: I bootstrap a portable js environment from nothing via a shell script

  1. Download pnpm binary (portable, not too big, self contained)
  2. Use pnpm to install electron and other dependencies
  3. Use electron as it if was node, and finish installing things
  4. Use electron to run the release script locally to build the current version of cushy

This way, all users have both a full dev AND prod environment ready to hack around.

For now, I'm still thinking it's a cool approach worth pursuing, because cushy really shines when you have vscode around ready to open and because this helps bring contributors. But I'm no windows bat script expert. πŸ₯²

For now, people have various success running the top-level scripts (install or update to get it working / start to run the prod version compiled by install or update / start-dev to run in dev-mode / clean to try to fix things and wipe various cache pnpm and electron folders)

rvion commented 8 months ago

Does update now correctly finishes ?

ShashwatDubey99 commented 8 months ago

Can you guys tell me where comfyui related things are in your project (of api) I just want to change some things for myself

rvion commented 8 months ago

wanna drop on discord (invite in the readme) and have a quick call right now ?

soon, Cushy will be able to install it's own sub ComfyUI setup. for now, Cushy need to connect to any running ComfyUI install.

image

image

once you configure a valid host, and set it as primary, you'll see WS and Schema in green,

image

and Cushy will generate a full blown type-safe sdk there: schema/global.d.ts

with stuff like that:

image

rvion commented 8 months ago

@specblades scripts have been changed a bit since I thitnk; does it work now ? can you try to update ?

ad-astra-video commented 8 months ago

I had to install nodejs on system, close and open CMD window (probably to get env variables updates) and install worked. I think need to check for node in windows install and if not there download portable nodejs and update PATH in windows install script.

Got some warnings on supabase though, not sure if impacting installation yet. UI is also saying comfyui backend is not running now (which i don't have running).

 WARN  Failed to create bin at D:\AI\CushyStudio\node_modules\.bin\supabase. ENOENT: no such file or directory, stat 'D:\AI\CushyStudio\node_modules\supabase\bin\supabase.EXE'

rvion commented 8 months ago

I had to install nodejs on system

this is unfortunate; probably a few unfortunate consequence of recent package additions; probably a few missing --ignore-scripts here and there

Got some warnings on supabase

some momrem binary-related warnings. supabase binary isn't even needed for users, only the lib. πŸ™ƒ

I guess I'll setup a few VM this week, with various windows OS / config (with/without node) and try to refine install scripts

specblades commented 8 months ago

@specblades scripts have been changed a bit since I thitnk; does it work now ? can you try to update ?

@rvion Will try later, ty

rvion commented 8 months ago

the scripts have been rewritten. local portable node is installed. only signed binaries, no more pnpm everything "should" work now