Python Queue Function Unable to Locate Modules #388

MisterJames opened this Issue Jan 6, 2017 · 3 comments


None yet

3 participants


I am using Python 2.7 and have a module which cannot install via pip. I have created a wheel using these instructions and uploaded the wheel into a wheelhouse directory in the function.


And here is the wheel in that directory:


I've added a requirements.txt to the root of the function with the following content:

--find-links wheelhouse

If I run d:\python27\python.exe -m pip install -r requirements.txt from the Kudu console I see the following error:

error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from

But I don't think the above is a fruitful path to follow as I won't have the rights I need to get vc++ installed methinks. And my understanding was that if the wheel were being used, that it shouldn't need a compile at this juncture.

I have added a import yara statement to the top of my Python script. If I try to save/run the Function from the Azure Portal, I see the following error in the logs:

2017-01-06T21:03:22.454 Exception while executing function: Functions.buildRule. Microsoft.Azure.WebJobs.Script: Traceback (most recent call last):
File "D:\home\site\wwwroot\buildRule\", line 2, in <module>
import yara
ImportError: No module named yara

Is there another way to bring in this dependency? Is there a way to hint to Python/Functions that I want to use the precompiled wheel?

tohling commented Jan 6, 2017 edited

Resolving the error "Unable to find vcvarsall.bat" requires the installation of Microsoft Visual C++ Compiler for Python 2.7 (See Details section)

Even if we were able to install this package, there are 2 issues worth noting:

  1. Under the System Requirements section, it states,

    Supported Operating System
    Windows 7, Windows 8, Windows 8.1

    The Azure Functions infrastructure runs on Windows Server 2012. There may still be issues during runtime.

  2. We may engage VS team for an update, but under the Details section, it states,
    "This compiler package is entirely unsupported..."

Have you tried using Python 3 to see if it will resolve the issue? Here are the instructions:


Great, thanks for the suggestions @tohling, I'll explore this to see if Python 3 is a solution here.

@paulbatum paulbatum referenced this issue in Azure/azure-webjobs-sdk-script Jan 12, 2017

Python Queue Function Unable to Locate Modules #1110


This issue was moved to Azure/azure-webjobs-sdk-script#1110

@paulbatum paulbatum closed this Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment