Skip to content
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

Investigate supporting Conda #256

Closed
priyaananthasankar opened this issue Dec 5, 2018 · 8 comments
Closed

Investigate supporting Conda #256

priyaananthasankar opened this issue Dec 5, 2018 · 8 comments

Comments

@priyaananthasankar
Copy link

priyaananthasankar commented Dec 5, 2018

This issue is a case for enabling conda/miniconda in the context of Python on Functions.

Investigative information

Customer wanted to use fbprophet library which does not get installed through pip in both Windows and Mac. It depends on pystan library whose compilation options are best handed by conda.

Repro steps

Create a new function, use HttpTrigger
in init.py

import fbprophet

Now enable virtual environment and do pip install fbprophet

Doesn't work.

Go out of virtual environment and use conda install -c conda-forge fbprophet and it installs successfully. Conda knows the right kind of gcc flags needed to install pystan which is convenient for data scientists.

Either there must be some workaround to pip install fbprophet (even some compilation is fine) and a way to deploy such kind of installations.

or support conda environments.

Currently one customer is impacted, but fbprophet seems to be a library used for forecasting and is popular among certain customer domains.

@priyaananthasankar
Copy link
Author

That doesn't matter as this is more related to "how to support libraries that get installed the right way in conda vs pip install"
Func core tools isn't really an issue here, although I really wonder how is it going to package such libraries. As of now I am having trouble to pip install this library while conda install works perfectly fine.

@asavaritayal asavaritayal added this to the Active Questions milestone Dec 11, 2018
@takumats
Copy link

takumats commented Jan 23, 2019

I've tried it on my environment, and it seems that I could deploy it.
(just confirmed, fbprophet's version at init.py.)

My environment is,

  • Windows 10 pro
  • docker for windows (assigned 4GB memory to VM)
  • wsl (ubuntu)
  • azure function core tools: 2.3.199
  • func azure functionapp publish XXXXX --build-native-deps --no-bundler
  • did not use conda

My requirements.txt is as follows.

azure-functions==1.0.0a5
azure-functions-worker==1.0.0a6
convertdate==2.1.3
cycler==0.10.0
Cython==0.29.3
ephem==3.7.6.0
fbprophet==0.4.post2
grpcio==1.14.2
grpcio-tools==1.14.2
holidays==0.9.9
kiwisolver==1.0.1
lunardate==0.2.0
matplotlib==3.0.2
numpy==1.16.0
pandas==0.23.4
patsy==0.5.1
protobuf==3.6.1
pyodbc==4.0.25
pyparsing==2.3.1
pystan==2.18.1.0
python-dateutil==2.7.5
pytz==2018.9
scikit-learn==0.20.2
scipy==1.2.0
setuptools-git==1.2
six==1.12.0
statsmodels==0.9.0

Hope it helps you!

@maiqbal11
Copy link
Contributor

@priyaananthasankar, is this still an issue? We're doing preliminary investigations on how to add Conda support (\cc @asavaritayal) to broaden support for package installation. Were you able to use the suggestion in the thread to get a workaround?

@priyaananthasankar
Copy link
Author

@maiqbal11 : Yes this is still an issue.

@arnav31
Copy link

arnav31 commented May 10, 2019

Hey, this is still an issue for me, Could anyone give any kind of solution for this?
Error says - failed with an error code 1.
I have installed pystan 2.19.0.0 in my venv but fbprophet is giving an error.

@ace139
Copy link

ace139 commented May 10, 2019

I'm also having the same issue while installing fbprophet. It's working fine with the same requirement.txt file in the local but giving error pystan is not found.

I'm using docker to build the dependencies for Consumption Plan.

@anirudhgarg anirudhgarg changed the title Unable to use fbprophet python library Investigate supporting Conda Nov 6, 2019
@asears
Copy link

asears commented Dec 18, 2020

Are there updates on this issue? If external system dependencies are required for python environment, ability to support conda or a way of hooking into its environment prior to running pip is important. pip distributions are broken for some Windows package installations and vice-versa. Devs and Data Scientists will sometimes use Anaconda/conda.

Still on the roadmap for Azure Artifacts.
https://developercommunity.visualstudio.com/idea/478993/add-support-for-conda-packages-in-azure-artifacts.html

@vrdmr
Copy link
Member

vrdmr commented Mar 3, 2022

Closing this in favor for an open discussion to get more community inputs - #974

@vrdmr vrdmr closed this as completed Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants