-
Notifications
You must be signed in to change notification settings - Fork 4
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
How should users install Open Babel using conda? #7
Comments
Hi Noel, my preference is to recommend using the conda-forge channel. @njzjz has done a good job at updating the recipe and the conda-forge bots and CI system will detect tagged releases and create PRs - e.g. see conda-forge/openbabel-feedstock#2. There are some outstanding issues right now - I think Windows builds are broken - but I can have a go at fixing that. |
It’s fine to install on Linux and macOS with
conda install openbabel -c conda-forge
However, I faced some problems with Windows builds and had to disable them.
|
I managed to get Windows builds working locally by...
I will try push to my personal repository and see if it builds on the CI and if it all is OK I will make a Pull Request in https://github.com/conda-forge/openbabel-feedstock |
Thanks all - I really appreciate it, as will our users. The official release announcement is Monday. It sounds like I can add these instructions for the Mac/Linux build now, and I can hold off for Windows until the remaining issues are sorted. Again, much appreciated. |
Ok, so the plan is to switch entirely to conda-forge? I'm fine with it, but let's make it clear in the docs on our end too. Appveyor had issues last time I checked, but with conda-forge such issues should be easier to figure out. |
@mwojcikowski Could you please go to https://github.com/orgs/conda-forge/invitation and accept the invitation? You have been added to the list of maintainers. |
So I got everything working at https://github.com/mcs07/conda-recipes using the Azure pipelines CI that conda-forge uses. However, there's a weird CI problem currently blocking my PR that adds windows InChI packages to conda-forge (conda-forge/inchi-feedstock#2). Once that is resolved, it should be very straightforward to update the openbabel recipe. |
Thanks to @fredrikw packages for all platforms are now available on conda-forge. See: |
Removing the old channel might be a bit drastic as it will break older code that points to it. @ghutchis or whoever has ownership on anaconda.org can update the package description by going to Settings -> Summary and change it to something like "DEPRECATED - please use https://anaconda.org/conda-forge/openbabel". Hopefully the google rankings will sort themselves out if plently of links to the conda-forge openbabel anaconda channel are added here on github and on the openbabel web site. |
Good suggestion. I edited the description just now - I'll see what I can do for the new OB site. |
Hi, |
Hi @fredrikw, I'm using python 3.8.5 and conda 4.9.2 . |
I just tried with those versions and everything worked great. Just to be sure, you are activating the conda env correctly? |
I suggest to create a new environment to avoid package conflicts: conda create openbabel -c conda-forge -n openbabel |
Hi, @fredrikw , I'm sure I've activated conda env correctly. Here is the packages in my env:
Hi, @njzjz , I've tried create a new env, but the same error occurred. |
I assume that is the package list from the new env since it's a different Python version than you stated above. But other than that, it looks exactly like the one I have. Do you get the error as soon as you run |
Yeah, It's a new env as suggest by @njzjz. Yes, I get this error when import openbabel. I'm using Windows 10 professional. You remind me that my Windows is not activated. So I tried open cmd using Administrator permissions, it worked now. |
Hello, my conda version is 4.13 and python is 3.7, but I can't install openbabel 3.1 version, the code installed is 2.4.1, do you know the reason? |
@jincanzuitongfeng Make sure that you have the correct conda environment activated ( |
My environment is indeed activated, I tried to install and then update, it is still a low version, I am win11, is it related to the system? |
What happened if you pin the version, i.e. |
And what is the result from |
|
This searched on conda-forge so you can't remove the low version from there... Something looks problematic with your conda environment since you get a "failed" when looking for incompatibilities. Try to create a new with |
OK, thank you very much. |
Can @mwojcikowski, @mcs07 and @njzjz tell me what instructions I should add to the website and docs for users to tell them how to install Open Babel 3.0 using conda?
Think here of the naive user. We need one official way, which one/all of you will be able to help fix if there is a problem. We can add more details about different approaches using different channels but we need to agree on an 'official' approach.
The text was updated successfully, but these errors were encountered: