Closed priyaananthasankar closed 6 years ago
(functions_venv) IIQHost1:SyncWeek prananth$ python3.6 -m venv functions_venv (functions_venv) IIQHost1:SyncWeek prananth$ mkdir python-functions (functions_venv) IIQHost1:SyncWeek prananth$ ~/Downloads/Azure.Functions.Cli.osx-x64/func init . --worker-runtime python Installing wheel package Installing azure-functions (dev) package Running pip freeze Writing .gitignore Writing host.json Writing local.settings.json Writing /Users/prananth/Projects/SyncWeek/.vscode/extensions.json Initialized empty Git repository in /Users/prananth/Projects/SyncWeek/.git/
(functions_venv) IIQHost1:SyncWeek prananth$ ~/Downloads/Azure.Functions.Cli.osx-x64/func new Select a language: Select a template:
Timer trigger Choose option: 2 HTTP trigger Function name: [HttpTriggerPython] Writing /Users/prananth/Projects/SyncWeek/HttpTriggerPython/sample.dat Writing /Users/prananth/Projects/SyncWeek/HttpTriggerPython/init.py Writing /Users/prananth/Projects/SyncWeek/HttpTriggerPython/function.json (functions_venv) IIQHost1:SyncWeek prananth$ ~/Downloads/Azure.Functions.Cli.osx-x64/func start
%%%%%% %%%%%% @ %%%%%% @ @@ %%%%%% @@
@@@ %%%%%%%%%%% @@@ @@ %%%%%%%%%% @@ @@ %%%% @@ @@ %%% @@ @@ %% @@ %% %
Hosting environment: Production Content root path: /Users/prananth/Projects/SyncWeek Now listening on: http://localhost:7071 Application started. Press Ctrl+C to shut down. [5/3/18 6:25:57 PM] Reading host configuration file '/Users/prananth/Projects/SyncWeek/host.json' [5/3/18 6:25:57 PM] Host configuration file read: [5/3/18 6:25:57 PM] {} [5/3/18 6:25:57 PM] Starting Host (HostId=prananthsmacbookpro-1384342556, InstanceId=270e2f8b-8f5b-40f5-94b6-08c9c15acf6d, Version=2.0.11651.0, ProcessId=14684, AppDomainId=1, Debug=False, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=) [5/3/18 6:25:57 PM] Unable to configure java worker. Could not find JAVA_HOME app setting. [5/3/18 6:25:57 PM] [5/3/18 6:25:57 PM] Could not configure language worker Java. [5/3/18 6:25:57 PM] [5/3/18 6:25:57 PM] Start Process: python "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py" --host 127.0.0.1 --port 62175 --workerId 1ac9c1ce-b563-4e27-8c5c-37d3045de668 --requestId 2f60cf63-a768-46ae-8870-a3bb80b9f644 [5/3/18 6:25:57 PM] Generating 1 job function(s) [5/3/18 6:25:57 PM] Found the following functions: [5/3/18 6:25:57 PM] Host.Functions.HttpTriggerPython [5/3/18 6:25:57 PM] [5/3/18 6:25:57 PM] Host initialized (684ms) [5/3/18 6:25:57 PM] Traceback (most recent call last): [5/3/18 6:25:57 PM] Traceback (most recent call last): [5/3/18 6:25:57 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 33, in [5/3/18 6:25:57 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main [5/3/18 6:25:57 PM] main() [5/3/18 6:25:57 PM] args.host, args.port, args.worker_id, args.request_id) [5/3/18 6:25:57 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main [5/3/18 6:25:57 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len' [5/3/18 6:25:57 PM] args.host, args.port, args.worker_id, args.request_id) [5/3/18 6:25:57 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len' Listening on http://localhost:7071/ Hit CTRL-C to exit...
Http Functions:
HttpTriggerPython: http://localhost:7071/api/HttpTriggerPython
[5/3/18 6:25:58 PM] Worker encountered an error. [5/3/18 6:25:58 PM] Worker process with pid 14685 exited with code 1. [5/3/18 6:25:58 PM] Start Process: python "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py" --host 127.0.0.1 --port 62175 --workerId 27fce02a-6978-403c-99b8-502074b0f2f3 --requestId 799cdbf3-b31c-4f6e-bb36-ea843e678419 [5/3/18 6:25:58 PM] Traceback (most recent call last): [5/3/18 6:25:58 PM] Traceback (most recent call last): [5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main [5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 33, in [5/3/18 6:25:58 PM] args.host, args.port, args.worker_id, args.request_id) [5/3/18 6:25:58 PM] main() [5/3/18 6:25:58 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len' [5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main [5/3/18 6:25:58 PM] args.host, args.port, args.worker_id, args.request_id) [5/3/18 6:25:58 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len' [5/3/18 6:25:58 PM] Worker encountered an error. [5/3/18 6:25:58 PM] Worker process with pid 14686 exited with code 1. [5/3/18 6:25:58 PM] Start Process: python "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py" --host 127.0.0.1 --port 62175 --workerId 806c9aa4-5390-4773-8770-de2bc3e4712c --requestId d131da20-8082-432a-870d-135938d2b448 [5/3/18 6:25:58 PM] Traceback (most recent call last): [5/3/18 6:25:58 PM] Traceback (most recent call last): [5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main [5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 33, in [5/3/18 6:25:58 PM] args.host, args.port, args.worker_id, args.request_id) [5/3/18 6:25:58 PM] main() [5/3/18 6:25:58 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len' [5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main [5/3/18 6:25:58 PM] args.host, args.port, args.worker_id, args.request_id) [5/3/18 6:25:58 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len' [5/3/18 6:25:58 PM] Worker encountered an error. [5/3/18 6:25:58 PM] Worker process with pid 14687 exited with code 1. ^CApplication is shutting down... [5/3/18 6:26:06 PM] Host started (9318ms) [5/3/18 6:26:06 PM] Job host started [5/3/18 6:26:06 PM] Stopping Host [5/3/18 6:26:06 PM] Job host stopped
Got a build for functions tooling from here: https://ci.appveyor.com/project/appsvc/azure-functions-cli/build/2.0.1.300/artifacts
This should be resolved now.
(functions_venv) IIQHost1:SyncWeek prananth$ python3.6 -m venv functions_venv (functions_venv) IIQHost1:SyncWeek prananth$ mkdir python-functions (functions_venv) IIQHost1:SyncWeek prananth$ ~/Downloads/Azure.Functions.Cli.osx-x64/func init . --worker-runtime python Installing wheel package Installing azure-functions (dev) package Running pip freeze Writing .gitignore Writing host.json Writing local.settings.json Writing /Users/prananth/Projects/SyncWeek/.vscode/extensions.json Initialized empty Git repository in /Users/prananth/Projects/SyncWeek/.git/
(functions_venv) IIQHost1:SyncWeek prananth$ ~/Downloads/Azure.Functions.Cli.osx-x64/func new Select a language: Select a template:
Timer trigger Choose option: 2 HTTP trigger Function name: [HttpTriggerPython] Writing /Users/prananth/Projects/SyncWeek/HttpTriggerPython/sample.dat Writing /Users/prananth/Projects/SyncWeek/HttpTriggerPython/init.py Writing /Users/prananth/Projects/SyncWeek/HttpTriggerPython/function.json (functions_venv) IIQHost1:SyncWeek prananth$ ~/Downloads/Azure.Functions.Cli.osx-x64/func start
@@@ %%%%%%%%%%% @@@ @@ %%%%%%%%%% @@ @@ %%%% @@ @@ %%% @@ @@ %% @@ %% %
Hosting environment: Production Content root path: /Users/prananth/Projects/SyncWeek Now listening on: http://localhost:7071 Application started. Press Ctrl+C to shut down. [5/3/18 6:25:57 PM] Reading host configuration file '/Users/prananth/Projects/SyncWeek/host.json' [5/3/18 6:25:57 PM] Host configuration file read: [5/3/18 6:25:57 PM] {} [5/3/18 6:25:57 PM] Starting Host (HostId=prananthsmacbookpro-1384342556, InstanceId=270e2f8b-8f5b-40f5-94b6-08c9c15acf6d, Version=2.0.11651.0, ProcessId=14684, AppDomainId=1, Debug=False, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=) [5/3/18 6:25:57 PM] Unable to configure java worker. Could not find JAVA_HOME app setting. [5/3/18 6:25:57 PM] [5/3/18 6:25:57 PM] Could not configure language worker Java. [5/3/18 6:25:57 PM] [5/3/18 6:25:57 PM] Start Process: python "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py" --host 127.0.0.1 --port 62175 --workerId 1ac9c1ce-b563-4e27-8c5c-37d3045de668 --requestId 2f60cf63-a768-46ae-8870-a3bb80b9f644 [5/3/18 6:25:57 PM] Generating 1 job function(s) [5/3/18 6:25:57 PM] Found the following functions: [5/3/18 6:25:57 PM] Host.Functions.HttpTriggerPython [5/3/18 6:25:57 PM] [5/3/18 6:25:57 PM] Host initialized (684ms) [5/3/18 6:25:57 PM] Traceback (most recent call last): [5/3/18 6:25:57 PM] Traceback (most recent call last): [5/3/18 6:25:57 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 33, in
[5/3/18 6:25:57 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main
[5/3/18 6:25:57 PM] main()
[5/3/18 6:25:57 PM] args.host, args.port, args.worker_id, args.request_id)
[5/3/18 6:25:57 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main
[5/3/18 6:25:57 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len'
[5/3/18 6:25:57 PM] args.host, args.port, args.worker_id, args.request_id)
[5/3/18 6:25:57 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len'
Listening on http://localhost:7071/
Hit CTRL-C to exit...
Http Functions:
[5/3/18 6:25:58 PM] Worker encountered an error. [5/3/18 6:25:58 PM] Worker process with pid 14685 exited with code 1. [5/3/18 6:25:58 PM] Start Process: python "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py" --host 127.0.0.1 --port 62175 --workerId 27fce02a-6978-403c-99b8-502074b0f2f3 --requestId 799cdbf3-b31c-4f6e-bb36-ea843e678419 [5/3/18 6:25:58 PM] Traceback (most recent call last): [5/3/18 6:25:58 PM] Traceback (most recent call last): [5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main [5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 33, in
[5/3/18 6:25:58 PM] args.host, args.port, args.worker_id, args.request_id)
[5/3/18 6:25:58 PM] main()
[5/3/18 6:25:58 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len'
[5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main
[5/3/18 6:25:58 PM] args.host, args.port, args.worker_id, args.request_id)
[5/3/18 6:25:58 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len'
[5/3/18 6:25:58 PM] Worker encountered an error.
[5/3/18 6:25:58 PM] Worker process with pid 14686 exited with code 1.
[5/3/18 6:25:58 PM] Start Process: python "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py" --host 127.0.0.1 --port 62175 --workerId 806c9aa4-5390-4773-8770-de2bc3e4712c --requestId d131da20-8082-432a-870d-135938d2b448
[5/3/18 6:25:58 PM] Traceback (most recent call last):
[5/3/18 6:25:58 PM] Traceback (most recent call last):
[5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main
[5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 33, in
[5/3/18 6:25:58 PM] args.host, args.port, args.worker_id, args.request_id)
[5/3/18 6:25:58 PM] main()
[5/3/18 6:25:58 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len'
[5/3/18 6:25:58 PM] File "/Users/prananth/Downloads/Azure.Functions.Cli.osx-x64/workers/python/worker.py", line 26, in main
[5/3/18 6:25:58 PM] args.host, args.port, args.worker_id, args.request_id)
[5/3/18 6:25:58 PM] TypeError: start() missing 1 required positional argument: 'grpc_max_msg_len'
[5/3/18 6:25:58 PM] Worker encountered an error.
[5/3/18 6:25:58 PM] Worker process with pid 14687 exited with code 1.
^CApplication is shutting down...
[5/3/18 6:26:06 PM] Host started (9318ms)
[5/3/18 6:26:06 PM] Job host started
[5/3/18 6:26:06 PM] Stopping Host
[5/3/18 6:26:06 PM] Job host stopped