-
Notifications
You must be signed in to change notification settings - Fork 247
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
conda forge install of idaes #102
Comments
Here's some notes that I haven't tried yet but got from William Krinsman (a summer student of Shreyas')
|
I started the process of setting up the conda-forge install of IDAES back in May. I did not get terribly far though. See this PR in conda-forge/staged-recipes: conda-forge/staged-recipes#8398. I probably won’t be able to continue working on this until mid-July. If it needs done before that, I am happy to walk someone through what I have done so far. |
With the pip install and the get-extensions script, is this necessary? It may just be extra work we don't need. |
@eslickj I agree. I think we should close this until we have a compelling reason to support conda distribution. |
@ksbeattie @jghouse88 @dangunter @eslickj I am scheduled to teach an optimization graduate elective starting January 2021. I plan to use IDAES selectively in the class. It will make my life easier if I can stick with 100% conda for students. In my experience, mixing pip and conda can lead to some weird things. |
@adowling2, I can confirm the weird things. For me, I've had problems with Jupyter, Jupyter Qt-Console, and Qt, but I'm sure other things can have trouble too. If you are mostly installing stuff with Conda, then later installing IDAES, this seems like a good reason to take another look at a Conda install for IDAES. This mostly bit me in the beginning were we didn't have a clear install procedure and I had a weird mix of Conda and Pip installed stuff. This was also before I really started keeping everything nicely separated in environments. In a class were the students probably will just install everything in one environment, it could get ugly. |
And I’m tech support for the students.
…On Tue, Sep 1, 2020 at 9:47 AM John Eslick ***@***.***> wrote:
@adowling2 <https://github.com/adowling2>, I can confirm the weird
things. For me, I've had problems with Jupyter, Jupyter Qt-Console, and Qt,
but I'm sure other things can have trouble too. If you are mostly
installing stuff with Conda, then later installing IDAES, this seems like a
good reason to take another look at a Conda install for IDAES.
This mostly bit me in the beginning were we didn't have a clear install
procedure and I had a weird mix of Conda and Pip installed stuff. This was
also before I really started keeping everything nicely separated in
environments. In a class were the students probably will just install
everything in one environment, it could get ugly.
|
I like the idea of having a pure conda install of things, but haven't found the time to look into it. Perhaps @lbianchi-lbl will? The other advantage is that we might be able to promote IDAES within the Anaconda desktop app. |
I'm going to add some resources below for whoever ends up working on an IDAES conda package. Both Pyomo and PyUtilib are distributed as conda packages on conda-forge. The feedstock repos for these packages are linked below in case they are helpful: |
@blnicho: thanks for the pointers! I've used the Pyomo configuration as a reference, and I found it very useful since this was my first time creating a Conda package from scratch. I managed to get started on this, and I was able to successfully build and install an idaes-pse Conda package locally. I've started a Wiki page that at the moment contains the conda-build recipes and my notes on the steps needed to build, and possible ways to distribute, the package. Please feel free to add your feedback or thoughts on this; my impression is that from here setting up the package distribution via conda-forge shouldn't be too problematic, but any input from maintainers with experience will be very welcome. |
@lbianchi-lbl I'd like to revisit this after the great repo migration of 2020. I think I just hosed another conda environment mixing pip (for IDAES) with everything else... I'm teaching a graduate elective starting in February 2020; I'd really to be able to install idaes via conda by then. |
@adowling2 yes, I definitely agree. We actually did some progress on this with @ksbeattie before the Great Migration ( 😆 ) started, and I'm looking forward to finishing once things settle down on that front. I don't think we're very far off, and having things ready and tested by that date seems like a fully realistic goal. |
I think this is something we still want to do. |
Yes, I agree. This is valuable. |
@lbianchi-lbl @ksbeattie I'm teaching a graduate elective (starts in 3 weeks) in which I'd like to use IDAES. Is this something we can get working before then? |
Hi @adowling2, we recently made progress on this and we were able to successfully build the package with all-Conda dependencies and install it from a dedicated channel. We plan to create a new build of the Conda package ready for internal testing later this week when we cut the release. In addition to the general IDAES Conda package, more specifically for the purpose of your course, we were thinking that it could be worth to look into having a dedicated Conda In my experience, this is a simple but effective way to manage setups with non-trivial dependencies: since all dependencies are known when the environment is created, there is less room for conflict compared to creating an empty environment and installing individual packages one at the time. If this sounds like a workable solution, I'm happy to help with setting this up and testing it before the start of the course. |
@ksbeattie @lbianchi-lbl Is this something I can test tomorrow or Monday? Edit: I'll likely be supporting Winows and macOS users. I'll try to direct people to Colab too. Edit: I verified this works! |
@lbianchi-lbl @adowling2 Did we ever get this working? |
I have started the process of adding a |
As of a few hours ago, we are on conda-forge: https://anaconda.org/conda-forge/idaes-pse! I'm going to close this as completed. |
No description provided.
The text was updated successfully, but these errors were encountered: