Getting error while using python worker hello world repo
Hello world, i am trying to use python in workers but after cloning official https://github.com/cloudflare/python-worker-hello-world and installing all prerequisite, also using 3.12 python version, i am getting this error :
(env) C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world>wrangler build
▲ [WARNING] Deprecation:
wrangler build
has been deprecated.
Please refer to https://developers.cloudflare.com/workers/wrangler/migration/deprecations/#build
for more information.
Attempting to run wrangler deploy --dry-run --outdir=dist
for you instead:
⛅️ wrangler 3.14.0
-------------------
▲ [WARNING] Processing wrangler.toml configuration:
- The "account_id" field in your configuration is an empty string and will be ignored.
Please remove the "account_id" field from your configuration.
Running custom build: npm run build
{{ project-name }}@1.0.0 build webpack -c webpack.config.jsPython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Error compiling C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world\index.py: assets by status 612 bytes [cached] 1 asset ./index.py 39 bytes [built] [code generated] [1 error] ERROR in ./index.py Module build failed (from ./node_modules/transcrypt-loader/target_es5/index.js): Error: Command failed: python3 -m transcrypt --nomin --map --verbose "index" Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. at checkExecSyncError (node:child_process:890:11) at Object.execSync (node:child_process:962:15) at Object.main (C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world\node_modules\transcrypt-loader__target_es5__\index.js:56:67) webpack 5.76.0 compiled with 1 error in 557 ms X [ERROR] Command failed with exit code 1: npm run build
0 Replies