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
Create a new Appwrite project with a starter function using python-ml-3.11.
Run it with appwrite run function
Trigger a save action on src/main.py
👍 Expected behavior
Hot-swapping to work. Workaround is to edit node_modules/appwrite-cli/lib/utils.js#L12 with fs.lstatSync which doesn't follow symlinks.
👎 Actual Behavior
ℹ Info: Starting functionusing Docker ...
♥ Hint: Function automatically restarts when you edit your code.
Preparing for start ...
✓ Success: Visit http://localhost:3000/ to execute your function.
Starting ...
ℹ Info: Hot-swapping function.. Files with change are src/main.py
Error: ENOENT: no such file or directory, stat '/Users/kamar/Projects/appwrite/functions/My Awesome Function/.appwrite/hot-swap/runtime-env/bin/python'
at Object.statSync (node:fs:1658:25)
at getAllFiles (/Users/kamar/Library/pnpm/global/5/.pnpm/appwrite-cli@6.1.0/node_modules/appwrite-cli/lib/utils.js:12:16)
at getAllFiles (/Users/kamar/Library/pnpm/global/5/.pnpm/appwrite-cli@6.1.0/node_modules/appwrite-cli/lib/utils.js:13:27)
at getAllFiles (/Users/kamar/Library/pnpm/global/5/.pnpm/appwrite-cli@6.1.0/node_modules/appwrite-cli/lib/utils.js:13:27)
at getAllFiles (/Users/kamar/Library/pnpm/global/5/.pnpm/appwrite-cli@6.1.0/node_modules/appwrite-cli/lib/utils.js:13:27)
at getAllFiles (/Users/kamar/Library/pnpm/global/5/.pnpm/appwrite-cli@6.1.0/node_modules/appwrite-cli/lib/utils.js:13:27)
at EventEmitter.<anonymous> (/Users/kamar/Library/pnpm/global/5/.pnpm/appwrite-cli@6.1.0/node_modules/appwrite-cli/lib/commands/run.js:258:37) {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/Users/kamar/Projects/appwrite/functions/My Awesome Function/.appwrite/hot-swap/runtime-env/bin/python'
}
^Cℹ Info: Cleaning up ...
✓ Success: Local functionsuccessfully stopped.
### 🎲 Appwrite version
Appwrite Cloud
### 💻 Operating system
MacOS
### 🧱 Your Environment
appwrite-cli@6.1.0
### 👀 Have you spent some time to check if this issue has been raised before?
- [x] I checked and didn't find similar issue### 🏢 Have you read the Code of Conduct?- [x] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)
The text was updated successfully, but these errors were encountered:
👟 Reproduction steps
python-ml-3.11
.appwrite run function
src/main.py
👍 Expected behavior
Hot-swapping to work. Workaround is to edit
node_modules/appwrite-cli/lib/utils.js#L12
withfs.lstatSync
which doesn't follow symlinks.👎 Actual Behavior
The text was updated successfully, but these errors were encountered: