Rank 2: Process
i am trying to write the first cloud functions in python or js. what is the easiest way and how can i test this locally? unfortunately i can't find anything on the appwrite page
Votes
0
Replies
7
Participants
Unknown
Messages
8
Rank 2: Process
i am trying to write the first cloud functions in python or js. what is the easiest way and how can i test this locally? unfortunately i can't find anything on the appwrite page
Rank 2: Process
And how can i upload the python main.py in the appwrite folder?
Rank 2: Process
Traceback (most recent call last):
File "C:\Users\Michael\AppData\Roaming\JetBrains\IntelliJIdea2023.1\plugins\python\helpers\pydev\pydevd.py", line 1496, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Users\Michael\AppData\Roaming\JetBrains\IntelliJIdea2023.1\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\Michael\IdeaProjects\brawl_stars\appwrite-functions\deploy_function.py", line 15, in
result = functions.create_deployment('6563f3a89b7ebefcb300', 'main.py', InputFile.from_path('fetch-data/main.py'), True)
File "C:\Users\Michael\AppData\Local\Programs\Python\Python310\lib\site-packages\appwrite\services\functions.py", line 186, in create_deployment
return self.client.chunked_upload(api_path, {
File "C:\Users\Michael\AppData\Local\Programs\Python\Python310\lib\site-packages\appwrite\client.py", line 129, in chunked_upload
if input_file.source_type == 'path':
AttributeError: 'str' object has no attribute 'source_type'
Admin
I use the Appwrite CLI and deploy to a local/dev instance of Appwrite
Rank 2: Process
ok that sounds nice. but this url iwr -useb https://appwrite.io/cli/install.ps1 is invalid
Admin
Ya, installing that way doesn't quite work at the moment. I suggest installing using NPM
Rank 2: Process
when i install it over npm it will work in the powershell? ^^
Admin
I believe so