lencx / ChatGPT

🔮 ChatGPT Desktop Application (Mac, Windows and Linux)
https://nofwl.com
52.48k stars 5.9k forks source link

[Build Error] Nothing happens with Debian 11 #348

Open DavidGriffith opened 1 year ago

DavidGriffith commented 1 year ago

Error message

Build instructions are very cryptic. There seems to be something missing from the build instructions.

$ git clone git@github.com:lencx/ChatGPT.git
...
$ cd ChatGPT
$ yarn
00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.
$ yarn dev
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'dev'
$ mkdir dev
$ yarn dev
00h00m00s 0/0: : ERROR: [Errno 21] Is a directory: 'dev'
$ yarn build
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'build'
$ mkdir build
$ yarn build
00h00m00s 0/0: : ERROR: [Errno 21] Is a directory: 'build'

OS

Debian 11

Environment

No response

yixinBC commented 1 year ago

Please provide your yarn version and reconfirm that you have cloned the complete project.

Manamama commented 1 year ago

Your yarn looks kinda funny. I have tested it on a virgin Ubuntu (github spaces) box, see specs below, out of sheer curiosity, and : git clone https://github.com/lencx/ChatGPT/ and then:

 yarn
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
warning tsconfck@2.0.2: The engine "pnpm" appears to be invalid.
[3/4] Linking dependencies...
warning " > @monaco-editor/react@4.4.6" has unmet peer dependency "monaco-editor@>= 0.25.0 < 1".
warning "@monaco-editor/react > @monaco-editor/loader@1.3.2" has unmet peer dependency "monaco-editor@>= 0.21.0 < 1".
[4/4] Building fresh packages...
success Saved lockfile.
$ husky install
husky - Git hooks installed
Done in 69.80s.

but then indeed:

yarn dev
yarn run v1.22.19
$ yarn tauri dev
$ tauri dev
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/interface/rust.rs:762:69
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Done in 1.82s.

plus:

yarn dev RUST_BACKTRACE=1
yarn run v1.22.19
$ yarn tauri dev RUST_BACKTRACE=1
$ tauri dev RUST_BACKTRACE=1
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/interface/rust.rs:762:69
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Done in 1.59s.

OS: Ubuntu 20.04.5 LTS x86_64 Host: Virtual Machine 7.0 Kernel: 5.4.0-1101-azure Uptime: 25 mins Packages: 1646 (dpkg) Shell: bash 5.0.17 Terminal: /dev/pts/0 CPU: Intel Xeon Platinum 8272CL (4) @ 2.593GHz GPU: 00:08.0 Microsoft Corporation Hyper-V virtual VGA Memory: 640MiB / 7957MiB

Manamama commented 1 year ago

Indeed, something is missing there: src/interface/rust.rs in line 762 so just quick FYI:

@Manamama ➜ ~/Downloads $ cd ChatGPT/
@Manamama ➜ ~/Downloads/ChatGPT (main) $ find src/ -name rust.rs
@Manamama ➜ ~/Downloads/ChatGPT (main) $ find  -name rust.rs
@Manamama ➜ ~/Downloads/ChatGPT (main) $ grep -r 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }' src/
@Manamama ➜ ~/Downloads/ChatGPT (main) $ grep -r 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }' 
Manamama commented 1 year ago

Indeed, something is missing there: src/interface/rust.rs in line 762 so just quick FYI:

@Manamama ➜ ~/Downloads $ cd ChatGPT/
@Manamama ➜ ~/Downloads/ChatGPT (main) $ find src/ -name rust.rs
@Manamama ➜ ~/Downloads/ChatGPT (main) $ find  -name rust.rs
@Manamama ➜ ~/Downloads/ChatGPT (main) $ grep -r 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }' src/
@Manamama ➜ ~/Downloads/ChatGPT (main) $ grep -r 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }' 

still zilch.

I have played a detective, updated yarn manually via this: https://yarnpkg.com/getting-started/install and then, very visual and animated, same result:

@Manamama ➜ ~/Downloads/ChatGPT (main ✗) $ yarn --version
3.4.1

@Manamama ➜ ~/Downloads/ChatGPT (main) $ yarn install
➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍

➤ YN0000: ┌ Resolution step
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0002: │ chatgpt@workspace:. doesn't provide monaco-editor (p66eb6), requested by @monaco-editor/react
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 6s 296ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ xtend@npm:4.0.2 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yallist@npm:3.1.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yallist@npm:4.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ zwitch@npm:2.0.4 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ typescript@npm:4.9.5 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 45s 187ms
➤ YN0000: ┌ Link step
➤ YN0007: │ esbuild@npm:0.16.17 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 10s 880ms
➤ YN0000: Done with warnings in 1m 3s
@Manamama ➜ ~/Downloads/ChatGPT (main ✗) $ yarn dev RUST_BACKTRACE=1
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/interface/rust.rs:762:69
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

but it ain't helped either.

boozedog commented 1 year ago

I'm having similar problem:

% yarn dev    
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/interface/rust.rs:762:69
Manamama commented 1 year ago

@boozedog so it is reproducible. Try updating your yarn (see above) and tell us what you get.

boozedog commented 1 year ago

@boozedog so it is reproducible. Try updating your yarn (see above) and tell us what you get.

I was using yarn 3.4.1

% yarn --version
3.4.1
lifenglsf commented 1 year ago

do you have install rust