3 ms·
Change the requirements.txt in the backend to the following fastapi==0.103.1 uvicorn==0.23.2 yfinance>=0.2.40 feedparser==6.0.10 legacy-cgi==2.6.1 request
by AH4oFVbPT4f8 7mo ago
Change the requirements.txt in the backend to the following
fastapi==0.103.1
uvicorn==0.23.2
yfinance>=0.2.40
feedparser==6.0.10
legacy-cgi==2.6.1
requests==2.31.0
apscheduler==3.10.3
pydantic==2.11.0
pydantic-settings==2.8.0
playwright>=1.58.0
beautifulsoup4>=4.12.0
sgp4>=2.22
cachetools>=5.3.0
cloudscraper>=1.2.71
reverse_geocoder>=1.5.1
lxml>=5.0
python-dotenv>=1.0
and be on python 3.13 and it should get you up and running
- edwcross 7mo agoThanks, it helped some, but I'm still having an error: [1] node:internal/modules/cjs/loader:1368 [1] throw err; [1] ^ [1] [1] Error: Cannot find module '/home/user/shadow/start-backend.js' [1] at Function._resolveFilename (node:internal/modules/cjs/loader:1365:15) [1] at defaultResolveImpl (node:internal/modules/cjs/loader:1021:19) [1] at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1026:22) [1] at Function._load (node:internal/modules/cjs/loader:1175:37) [1] at TracingChannel.traceSync (node:diagnostics_channel:322:14) [1] at wrapModuleLoad (node:internal/modules/cjs/loader:235:24) [1] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) [1] at node:internal/main/run_main_module:36:49 { [1] code: 'MODULE_NOT_FOUND', [1] requireStack: [] [1] }
- trick-or-treat 7mo agoThis is fun, Playwright is a python wrapper for a node lib. So we have Next.js (full stack js/ts), with a Python backend (???), that uses a wrapper for a js/ts lib, all we need now is to shell out to node from inside that script and we have peak inception lol.
- euroderf 7mo agoAnd it's not complete until it runs in an emulation layer.
- vancecookcobxin 7mo agolol