Resume-Matcher icon indicating copy to clipboard operation
Resume-Matcher copied to clipboard

执行./setup报错

Open TheChosenPerson opened this issue 3 weeks ago • 5 comments

PS E:\ptojects\Resume-Matcher> .\setup.ps1
ℹ  Starting Resume Matcher setup...
ℹ  Detected operating system: Windows
ℹ  Checking core prerequisites...
 Node.js v22.12.0 is installed
 Python is available as python3
 pip is available as pip3
 uv is already installed
 All core prerequisites satisfied.
ℹ  Checking Ollama installation...
 Ollama is already installed
ℹ  Pulling gemma3:4b model... (this may take a while)
pulling manifest
pulling aeda25e63ebd: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 3.3 GB
pulling e0a42594d802: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  358 B
pulling dd084c7d92a3: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 8.4 KB
pulling 3116c5225075: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏   77 B
pulling b6ae5839783f: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  489 B
verifying sha256 digest
writing manifest
success
 gemma3:4b model ready
ℹ  No .env.example at root—skipping
ℹ  Installing root dependencies...
ℹ  Installing root dependencies (including concurrently)...

> [email protected] install
> npm run install:frontend && npm run install:backend


> [email protected] install:frontend
> cd apps/frontend && npm install


added 369 packages in 17s

139 packages are looking for funding
  run `npm fund` for details

> [email protected] install:backend
> cd apps/backend && uv venv --python 3.13 && uv pip install .

Using CPython 3.13.11
Creating virtual environment at: .venv
Activate with: .venv\Scripts\activate
  × No solution found when resolving dependencies:
  ╰─▶ Because fastapi==0.115.12 depends on starlette>=0.40.0,<0.47.0 and resume-matcher-backend==0.1.0 depends on fastapi==0.115.12, we can conclude that resume-matcher-backend==0.1.0 depends on starlette>=0.40.0,<0.47.0.
      And because resume-matcher-backend==0.1.0 depends on starlette==0.49.1, we can conclude that resume-matcher-backend==0.1.0 cannot be used.
      And because only resume-matcher-backend==0.1.0 is available and you require resume-matcher-backend, we can conclude that your requirements are unsatisfiable.
npm error code 1
npm error path E:\ptojects\Resume-Matcher
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c npm run install:frontend && npm run install:backend
npm error A complete log of this run can be found in: D:\ProgramData\NodeJs\node_cache\_logs\2025-12-15T01_43_41_207Z-debug-0.log
 Root dependencies installed successfully.
ℹ  Setting up backend (apps/backend)...
ℹ  Bootstrapping backend .env from .env.sample
 Backend .env created                                                                                                   
ℹ  Setting up Python virtual environment and dependencies...
ℹ  Virtual environment already exists
ℹ  Syncing Python deps via uv...
  × No solution found when resolving dependencies:
  ╰─▶ Because fastapi==0.115.12 depends on starlette>=0.40.0,<0.47.0 and your project depends on fastapi==0.115.12, we can conclude that your project depends on starlette>=0.40.0,<0.47.0.
      And because your project depends on starlette==0.49.1, we can conclude that your project's requirements are unsatisfiable.
 Backend dependencies ready.
ℹ  Setting up frontend (apps/frontend)...
ℹ  Bootstrapping frontend .env from .env.sample
 Frontend .env created
ℹ  Installing frontend deps with npm ci...

added 369 packages in 22s

139 packages are looking for funding
  run `npm fund` for details
 Frontend dependencies ready.
  Setup complete!

Next steps:
   Run 'npm run dev' to start in development mode.
   Run 'npm run build' for production.
   See SETUP.md for more details.

Note: If Ollama was not installed automatically, please install it manually from:
https://ollama.com/download/windows
PS E:\ptojects\Resume-Matcher> .\setup.ps1 -StartDev
ℹ  Starting Resume Matcher setup...
ℹ  Detected operating system: Windows
ℹ  Checking core prerequisites...
 Node.js v22.12.0 is installed
 Python is available as python3
 pip is available as pip3
 uv is already installed
 All core prerequisites satisfied.
ℹ  Checking Ollama installation...
 Ollama is already installed
ℹ  Pulling gemma3:4b model... (this may take a while)
pulling manifest
pulling aeda25e63ebd: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 3.3 GB
pulling e0a42594d802: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  358 B
pulling dd084c7d92a3: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 8.4 KB
pulling 3116c5225075: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏   77 B
pulling b6ae5839783f: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  489 B
verifying sha256 digest
writing manifest
success
 gemma3:4b model ready
ℹ  No .env.example at root—skipping
ℹ  Installing root dependencies...
ℹ  Installing root dependencies (including concurrently)...

> [email protected] install
> npm run install:frontend && npm run install:backend


> [email protected] install:frontend
> cd apps/frontend && npm install


up to date in 798ms

139 packages are looking for funding
  run `npm fund` for details

> [email protected] install:backend
> cd apps/backend && uv venv --python 3.13 && uv pip install .

Using CPython 3.13.11
Creating virtual environment at: .venv
✔ A virtual environment already exists at `.venv`. Do you want to replace it? · yes
Activate with: .venv\Scripts\activate
  × No solution found when resolving dependencies:
  ╰─▶ Because fastapi==0.115.12 depends on starlette>=0.40.0,<0.47.0 and resume-matcher-backend==0.1.0 depends on fastapi==0.115.12, we can conclude that resume-matcher-backend==0.1.0 depends on starlette>=0.40.0,<0.47.0.
      And because resume-matcher-backend==0.1.0 depends on starlette==0.49.1, we can conclude that resume-matcher-backend==0.1.0 cannot be used.
      And because only resume-matcher-backend==0.1.0 is available and you require resume-matcher-backend, we can conclude that your requirements are unsatisfiable.
npm error code 1
npm error path E:\ptojects\Resume-Matcher
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c npm run install:frontend && npm run install:backend
npm error A complete log of this run can be found in: D:\ProgramData\NodeJs\node_cache\_logs\2025-12-15T01_44_40_970Z-debug-0.log
 Root dependencies installed successfully.
ℹ  Setting up backend (apps/backend)...
ℹ  Backend .env exists or .env.sample missing—skipping
ℹ  Setting up Python virtual environment and dependencies...
ℹ  Virtual environment already exists
ℹ  Syncing Python deps via uv...
  × No solution found when resolving dependencies:
  ╰─▶ Because fastapi==0.115.12 depends on starlette>=0.40.0,<0.47.0 and your project depends on fastapi==0.115.12, we can conclude that your project depends on starlette>=0.40.0,<0.47.0.
      And because your project depends on starlette==0.49.1, we can conclude that your project's requirements are unsatisfiable.
 Backend dependencies ready.
ℹ  Setting up frontend (apps/frontend)...
ℹ  Frontend .env exists or .env.sample missing—skipping
ℹ  Installing frontend deps with npm ci...

added 369 packages in 20s

139 packages are looking for funding
  run `npm fund` for details
 Frontend dependencies ready.
ℹ  Starting development server...

> [email protected] dev
> concurrently "npm:dev:backend" "npm:dev:frontend"

[dev:backend] 
[dev:backend] > [email protected] dev:backend
[dev:backend] > cd apps/backend && uv run uvicorn app.main:app --reload --port 8000 --timeout-keep-alive 300 --timeout-graceful-shutdown 300
[dev:backend]
[dev:frontend]
[dev:frontend] > [email protected] dev:frontend
[dev:frontend] > cd apps/frontend && npm run dev
[dev:frontend]
[dev:backend]   × No solution found when resolving dependencies:
[dev:backend]   ╰─▶ Because fastapi==0.115.12 depends on starlette>=0.40.0,<0.47.0 and your
[dev:backend]       project depends on fastapi==0.115.12, we can conclude that your project
[dev:backend]       depends on starlette>=0.40.0,<0.47.0.
[dev:backend]       And because your project depends on starlette==0.49.1, we can conclude
[dev:backend]       that your project's requirements are unsatisfiable.
[dev:backend] npm run dev:backend exited with code 1
[dev:frontend] 
[dev:frontend] > [email protected] dev
[dev:frontend] > next dev --turbopack
[dev:frontend]
[dev:frontend]  ⚠ Warning: Found multiple lockfiles. Selecting E:\ptojects\Resume-Matcher\package-lock.json.
[dev:frontend]    Consider removing the lockfiles at:
[dev:frontend]    * E:\ptojects\Resume-Matcher\apps\frontend\package-lock.json
[dev:frontend]
[dev:frontend]    ▲ Next.js 15.4.8 (Turbopack)
[dev:frontend]    - Local:        http://localhost:3000
[dev:frontend]    - Network:      http://198.18.0.1:3000
[dev:frontend]    - Environments: .env
[dev:frontend]
[dev:frontend]  ✓ Starting...
[dev:frontend]  ✓ Ready in 1464ms
[dev:frontend]  ○ Compiling / ...
[dev:frontend]  ✓ Compiled / in 2.8s
[dev:frontend]  GET / 200 in 3205ms
[dev:frontend]  ○ Compiling /resume ...
[dev:frontend]  ✓ Compiled /resume in 518ms
[dev:frontend]  GET /resume 200 in 601ms

执行./setup报错

TheChosenPerson avatar Dec 15 '25 01:12 TheChosenPerson

checkout #529 change fastapi to latest release version

ariandel-dev avatar Dec 16 '25 02:12 ariandel-dev

@TheChosenPerson

this should do the trick (at least it did it for me). assuming you use gnu-sed:

sed -i '/^[[:space:]]*"h11==/d; /^[[:space:]]*h11==/d; s/^[[:space:]]*"fastapi==[^"]*"/"fastapi==0.124.4"/; s/^[[:space:]]*fastapi==.*/fastapi==0.124.4/' apps/backend/pyproject.toml apps/backend/requirements.txt

bsd version (macos):

sed -i '' '/^[[:space:]]*"h11==/d; /^[[:space:]]*h11==/d; s/^[[:space:]]*"fastapi==[^"]*"/"fastapi==0.124.4"/; s/^[[:space:]]*fastapi==.*/fastapi==0.124.4/' apps/backend/pyproject.toml apps/backend/requirements.txt

mpdx avatar Dec 17 '25 20:12 mpdx

@mpdx you indication did the trick for macOS. Which was great!

Ran ollama pull gemma3:4b since setup.sh failed to pull any models.

Blocked on npm build prod on Intel based macOS 15.7.3 with a lot of prettier/prettier messages. Maybe related with #552

(...)
✓ Compiled successfully in 1000ms
   Linting and checking validity of types ...

Failed to compile.

./app/(default)/(onboarding)/jobs/page.tsx
7:1  Error: Replace `↹` with `··`  prettier/prettier
8:1  Error: Replace `↹↹` with `····`  prettier/prettier
9:1  Error: Replace `↹↹↹` with `······`  prettier/prettier
10:1  Error: Replace `↹↹↹↹` with `········`  prettier/prettier
11:1  Error: Replace `↹↹↹↹↹` with `··········`  prettier/prettier
12:1  Error: Replace `↹↹↹↹` with `········`  prettier/prettier

(...)


./lib/utils.ts
1:39  Error: Replace `"clsx"` with `'clsx'`  prettier/prettier
2:25  Error: Replace `"tailwind-merge"` with `'tailwind-merge'`  prettier/prettier
7:3  Error: Delete `·`  prettier/prettier
13:2  Error: Insert `⏎`  prettier/prettier

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/api-reference/config/eslint#disabling-rules

Looked at Lint rules

Tried a few things but no result.

And possibly "dumb quesiton" Ollama is on http://127.0.0.1:11434 but how do I launch ResumeMatcher and how to access it?

oPromessa avatar Dec 18 '25 20:12 oPromessa

@TheChosenPerson

this should do the trick (at least it did it for me). assuming you use gnu-sed:這應該能解決問題(至少對我有效)。假設你使用 gnu-sed:

sed -i '/^[[:space:]]*"h11==/d; /^[[:space:]]*h11==/d; s/^[[:space:]]*"fastapi==[^"]*"/"fastapi==0.124.4"/; s/^[[:space:]]*fastapi==.*/fastapi==0.124.4/' apps/backend/pyproject.toml apps/backend/requirements.txt

bsd version (macos):  BSD 版本 (macOS):

sed -i '' '/^[[:space:]]*"h11==/d; /^[[:space:]]*h11==/d; s/^[[:space:]]*"fastapi==[^"]*"/"fastapi==0.124.4"/; s/^[[:space:]]*fastapi==.*/fastapi==0.124.4/' apps/backend/pyproject.toml apps/backend/requirements.txt

This worked for me and I used MacOS(M3). 🥳

huihsinhsiao avatar Dec 19 '25 03:12 huihsinhsiao

This worked for me and I used MacOS(M3).

Great! You didn't ran into the lint errors I have above? You're on macOS 15 or 26?

oPromessa avatar Dec 19 '25 10:12 oPromessa