You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: I figured out what my issue was... in package.json, it was calling python3 when I just needed it to call python. This repo is teaching me a lot about frontend and node.js, thank you!
When I start the application with npm run dev, The UI starts fine, but the fastapi server does not start because it can't find python. However I can start fastapi separately in another terminal, then start the UI and everything works great.... Another note, I also had to specify a GPT model in index.py, line 110 llm = ChatOpenAI(model_name="gpt-4-0125-preview") to avoid a token limit.
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. [1] npm run fastapi-dev exited with code 9009 [0] - wait compiling /page (client and server)... [0] Browserslist: caniuse-lite is outdated. Please run: [0] npx update-browserslist-db@latest [0] Why you should do it regularly: https://github.com/browserslist/update-db#readme [0] - event compiled client and server successfully in 2.8s (2156 modules) [0] - wait compiling... [0] - event compiled successfully in 289 ms (1812 modules) [0] Failed to proxy http://127.0.0.1:8000/api/scrape Error: connect ECONNREFUSED 127.0.0.1:8000 [0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { [0] errno: -4078, [0] code: 'ECONNREFUSED', [0] syscall: 'connect', [0] address: '127.0.0.1', [0] port: 8000 [0] } [0] - error Error: connect ECONNREFUSED 127.0.0.1:8000 [0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { [0] errno: -4078, [0] code: 'ECONNREFUSED', [0] syscall: 'connect', [0] address: '127.0.0.1', [0] port: 8000 [0] }
The text was updated successfully, but these errors were encountered:
EDIT: I figured out what my issue was... in package.json, it was calling
python3
when I just needed it to callpython
. This repo is teaching me a lot about frontend and node.js, thank you!When I start the application with
npm run dev
, The UI starts fine, but the fastapi server does not start because it can't find python. However I can start fastapi separately in another terminal, then start the UI and everything works great.... Another note, I also had to specify a GPT model inindex.py
, line 110llm = ChatOpenAI(model_name="gpt-4-0125-preview")
to avoid a token limit.Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. [1] npm run fastapi-dev exited with code 9009 [0] - wait compiling /page (client and server)... [0] Browserslist: caniuse-lite is outdated. Please run: [0] npx update-browserslist-db@latest [0] Why you should do it regularly: https://github.com/browserslist/update-db#readme [0] - event compiled client and server successfully in 2.8s (2156 modules) [0] - wait compiling... [0] - event compiled successfully in 289 ms (1812 modules) [0] Failed to proxy http://127.0.0.1:8000/api/scrape Error: connect ECONNREFUSED 127.0.0.1:8000 [0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { [0] errno: -4078, [0] code: 'ECONNREFUSED', [0] syscall: 'connect', [0] address: '127.0.0.1', [0] port: 8000 [0] } [0] - error Error: connect ECONNREFUSED 127.0.0.1:8000 [0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { [0] errno: -4078, [0] code: 'ECONNREFUSED', [0] syscall: 'connect', [0] address: '127.0.0.1', [0] port: 8000 [0] }
The text was updated successfully, but these errors were encountered: