profile
viewpoint

JADawson/azure-functions-python-samples 0

Azure Functions Python Sample Codes

JADawson/courses 0

Course materials for the Data Science Specialization: https://www.coursera.org/specialization/jhudatascience/1

JADawson/DataScience 0

My repository for various DS projects

JADawson/datasciencecoursera 0

My Repository for the materials relates to the Coursera DS course.

JADawson/datasharing 0

The Leek group guide to data sharing

JADawson/DS_GCData_WK3Project 0

This repository is to store my project created for the Coursera Data Science "Getting and Cleaning Data" module.

JADawson/ExData_Plotting1 0

Plotting Assignment 1 for Exploratory Data Analysis

JADawson/ProgrammingAssignment2 0

Repository for Programming Assignment 2 for R Programming on Coursera

JADawson/ProjectOxford-ClientSDK 0

The official home for the Microsoft Cognitive Services client SDK and samples

issue commentAzure/azure-functions-core-tools

Local Debug for Azure Functions failing due to missing libraries

Hi @Hazhzeng, @anirudhgarg ,

Thanks for posting the above workaround regarding the Python extension - I can confirm that this works in my environment and get around the issue.

Much obliged, we can now get on with our development.

JADawson

comment created time in 2 months

issue commentAzure/azure-functions-core-tools

Local Debug for Azure Functions failing due to missing libraries

Hi @zhenming91 - glad I'm not the only one, this was driving me crazy.

I did two more tests:

  1. Created brand new Function App from Visual Code with simple HTTP trigger. Venv based on Python 3.7. Local Debug generated the same error.
  2. Same as above with Python 3.8.3 venv - same error.

Obviously local debug is critical to ongoing development, please can you look at this asap?

JADawson

comment created time in 2 months

issue openedAzure/azure-functions-core-tools

Local Debug for Azure Functions failing due to missing libraries

Good morning - we have a Azure Function App in development running a series of Python based functions.

Python - 3.7.7 azure-functions-core-tools@3.0.2534

Until yesterday, this was running fine both in local debug (Attach to Python Functions) and when deployed to the function app in Azure.

As of yesterday (20200609) it started hitting a series of missing imports within the azure-functions-core-tools module - azure-functions-core-tools\bin\workers\python\3.7\windows\x64\grpc_init.py_

  • import grpc_tools
  • import grpc_health
  • import grpc_reflection

I added the following to requirements.txt

** grpcio==1.29.0 grpcio-tools==1.29.0 grpcio-health-checking==1.29.0**

Which allowed the execution to progress, but now it's hitting an issue with "google.protobuf" in azure-functions-core-tools\bin\workers\python\3.7\windows\x64\google\protobuf\internal\api_implementation.py

from google.protobuf import enable_deterministic_proto_serialization

Exception has occurred: ImportError cannot import name 'enable_deterministic_proto_serialization' from 'google.protobuf' (xxx\venv\lib\site-packages\google\protobuf_init_.py)

I'm really confused as this has been running locally just fine for weeks.

I've tried re-installing the azure-functions-core-tools, but that hasn't helped. I don't think adding more library imports to my venv is the right solution, it seems there is some bug in the azure-functions-core-tools package....

created time in 2 months

more