-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'PyInstaller' #356
Comments
This is related to Pyinstaller having issues with pip 19.0 @(pyinstaller/pyinstaller#4003). See workaround- Azure/azure-functions-core-tools#1100 I can make an update to work around this problem when I am back. |
Oh, and the workaround flag is |
func azure functionapp publish funcname --build-native-deps --no-bundler --force fails for some reason.
|
Can you share your |
Thanks for the reply, this is the requirements.txt
|
@IainColledge, can you try upgrading pip to 19.03 for now? A fix was released in 19.02: pypa/pip#6163 (comment). @Dammi87, realized that you were the one who had originally posted the issue. Is it resolved now? |
Isn't this the pip in the docker container that is being run, not the host? On the host am running 18.1 |
@IainColledge, yes, you're correct. This is running in the Docker and I can see that 19.0 is the current pip version in Docker. Is this the first error you see when you run publish or is there a stack before this? @ahmelsayed, did we make any changes recently that might cause this error to manifest? Can we update the image to use pip 19.3? I'm also not sure why this would get triggered in the |
Thanks, yup this is the first error. Updating the image to pip 19.3 would be awesome. |
This should now be fixed in the base docker image - https://github.com/docker-library/python/blob/fac7efee47f0c188f3ea21a328ec3109612fd0cf/3.6/stretch/slim/Dockerfile#L103. Please feel free to re-open if you still see any issues. |
When publishing my Python module, I get the following error
ModuleNotFoundError: No module named 'PyInstaller'
Which happens when I run this command
func azure functionapp publish <name> --build-native-deps
Even though I can see that it has installed properly during the build.
Adding the --no-bundle does not work either (I added PyInstaller to requirements.txt, remove it there as well to verify)
Investigative information
Please provide the following:
Repro steps
repro.zip
Expected behavior
When I tried the same command around a month ago, it worked perfectly fine. My build also works fine locally.
Actual behavior
Provide a description of the actual behavior observed.
Other info
The text was updated successfully, but these errors were encountered: