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

No UI only "Hello World" served by FastAPI #45

Open
jmbenedetto opened this issue Jun 30, 2024 · 7 comments
Open

No UI only "Hello World" served by FastAPI #45

jmbenedetto opened this issue Jun 30, 2024 · 7 comments

Comments

@jmbenedetto
Copy link

Hello. Thanks a lot for the tool and I think it you be really helpful.

I followed the instalation instructions from readme file, but can not see the UI. See bellow the fast api activation and the resulting page:
Screenshot 2024-06-30 at 9 15 20 AM
Screenshot 2024-06-30 at 9 15 10 AM

Could you please advise?

@vnl
Copy link

vnl commented Jul 1, 2024

Set Up the GUI Application

  1. Navigate to the Electron React app directory:
    cd electron-react-app
  2. Ensure you have npm (Node Package Manager) installed.
  3. Install the necessary dependencies:
    npm install
  4. Start the desktop application:
    npm start

I am having issues running the Electron app, but I am hoping others have better luck.

@jmbenedetto
Copy link
Author

jmbenedetto commented Jul 1, 2024

Set Up the GUI Application

  1. Navigate to the Electron React app directory:
    cd electron-react-app
  2. Ensure you have npm (Node Package Manager) installed.
  3. Install the necessary dependencies:
    npm install
  4. Start the desktop application:
    npm start

I am having issues running the Electron app, but I am hoping others have better luck.

Hello, Vnl. I hope you're doing fine.

I followed this step by step, but got errors during npm install and consequently could not run it.

(base) ➜  electron-react-app git:(main) npm install

> postinstall
> ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll

Error: Cannot find module 'chalk'
Require stack:
- /Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:1038:27)
    at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
    at Module.require (node:internal/modules/cjs/loader:1297:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1460:14)
    at Module.m._compile (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1544:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js'
  ]
}
npm error code 1
npm error path /Users/jmbenedetto/code/llama-fs/electron-react-app
npm error command failed
npm error command sh -c ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll
npm error A complete log of this run can be found in: /Users/jmbenedetto/.npm/_logs/2024-07-01T13_25_32_495Z-debug-0.log
(base) ➜  electron-react-app git:(main) npm start

> start
> ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer

Error: Cannot find module 'chalk'
Require stack:
- /Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:1038:27)
    at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
    at Module.require (node:internal/modules/cjs/loader:1297:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1460:14)
    at Module.m._compile (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1544:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js'
  ]
}
(base) ➜  electron-react-app git:(main) 

@vnl
Copy link

vnl commented Jul 13, 2024

Oh yeah, I have those errors too :) Just waiting to see if anyone else fixed this.

@ProTechnomancy
Copy link

ProTechnomancy commented Jul 17, 2024

I dont think i got the same errors as you guys, but after following your instructions i got the gui to open in its own window, however it didn't function and kept spitting out errors. ' buildTree' & 'handleBranch' were the two most common, and would displayed in the gui itself. ive seen a project called notLlamaFS that seems promising for windows users.

also;

[25804:0717/193341.302:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2)
[25804:0717/193341.303:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)

@gitover22
Copy link

Set Up the GUI Application

  1. Navigate to the Electron React app directory:
    cd electron-react-app
  2. Ensure you have npm (Node Package Manager) installed.
  3. Install the necessary dependencies:
    npm install
  4. Start the desktop application:
    npm start

I am having issues running the Electron app, but I am hoping others have better luck.

Hello, Vnl. I hope you're doing fine.

I followed this step by step, but got errors during npm install and consequently could not run it.

(base) ➜  electron-react-app git:(main) npm install

> postinstall
> ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll

Error: Cannot find module 'chalk'
Require stack:
- /Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:1038:27)
    at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
    at Module.require (node:internal/modules/cjs/loader:1297:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1460:14)
    at Module.m._compile (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1544:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js'
  ]
}
npm error code 1
npm error path /Users/jmbenedetto/code/llama-fs/electron-react-app
npm error command failed
npm error command sh -c ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll
npm error A complete log of this run can be found in: /Users/jmbenedetto/.npm/_logs/2024-07-01T13_25_32_495Z-debug-0.log
(base) ➜  electron-react-app git:(main) npm start

> start
> ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer

Error: Cannot find module 'chalk'
Require stack:
- /Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:1038:27)
    at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
    at Module.require (node:internal/modules/cjs/loader:1297:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1460:14)
    at Module.m._compile (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1544:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js'
  ]
}
(base) ➜  electron-react-app git:(main) 

hi,man, i think this is a node.js version problem, maybe you can change version and try again.(mime is v18)

@mayeenulislam
Copy link

✅ Working fine on Windows 11 with Node v16.15.0
In my case with the latest clone on 8th August 2024, on Windows 11 I did not find any issues running the npm install and npm start with Node v16.15.0 (Using the older version for another project)

@LiangWei88
Copy link

如果你看得懂中文, 同时你在某个地方,那应该是某种你懂的原因造成的。

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

6 participants