You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I heard from some people that they have difficulties installing openml-python on Windows.
The problem is that one of the dependencies requires a C compiler to install, so it tells people that they need to install the Visual C Build Tools first. The message is somewhat hidden in the output, though.
The problematic dependency seems to be 'netifaces'. The error you get is basically the first error shown here: mirko/SonOTA#61
Is 'netifaces' a strict dependency or can we get rid of it?
Is it part of cython and if so do we really need cython?
This package isn't a direct dependency of openml-python. It's a dependency of oslo.concurrency, which is necessary to avoid race conditions when writing files from multiple processes. One could potentially use a different locking library, but I'm not an expert here. In order to ensure OpenML working on Windows, it would be good to set up a CI system for Windows.
While CI for Windows would be great, we'd need someone actively working on it. @WilliamRaynaut started doing so in PR #362 if someone wants to take over. However, I'd assume that we would install a custom compiler there or that the CI system provides a compiler.
It is possible to specify a different path with -i like pip install -i https://example.com/pypi. However, the official pypi contains precompiled binaries for Windows for python2.7, python3.4 and python3.5. The website you mention is actually more up-to-date and provides binaries for python3.6 and python3.7 as well. We should mention that in the docs.
I would love to help, but don't own a Windows machine (nor have access to one). I just heard about this issue from students.
IIUC, that means that this is only an issue for python>3.6? Will have to test that...
A simple fix would be to ask people to first git install netifaces using the precompiled binary.
Actually that's also what I'm using and we should probably recommend that in the user guide. However, I'm not sure what happens if you don't have wheel installed and do this in an empty repository (will it then start installing all dependencies one after the other?).
Another potential solution to the overall problem is installing a compiler. Instead of using visual studio, one could also use the compiler shipped with AnaConda (under the assumption your students use AnaConda).
I tried to work on this, but the internet connection here doesn't play nicely with the Windows VM I was trying to configure to reproduce the issue. I'll probably work on this when I have access to a good, wired, connection.
installation guide now specifies to install through pip (even from code) with pip install -e . which should install dependencies correctly regardless of platform.
the main culprit oslo.concurrency is no longer a dependency (for non-developers)
CI on Windows has been running fine for a year now.
Activity
mfeurer commentedon Feb 26, 2018
This package isn't a direct dependency of openml-python. It's a dependency of
oslo.concurrency, which is necessary to avoid race conditions when writing files from multiple processes. One could potentially use a different locking library, but I'm not an expert here. In order to ensure OpenML working on Windows, it would be good to set up a CI system for Windows.joaquinvanschoren commentedon Feb 26, 2018
CI for Windows is a great idea.
Don't know too much about other locking libs either. Maybe the 'treading' package?
Is it possible to specify a different installation path for Windows? It seems you can replace netifaces
with a precompiled binary installed by pip:
https://stackoverflow.com/questions/29846087/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat
For netifaces this can be found here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
That should also solve it?
mfeurer commentedon Feb 27, 2018
While CI for Windows would be great, we'd need someone actively working on it. @WilliamRaynaut started doing so in PR #362 if someone wants to take over. However, I'd assume that we would install a custom compiler there or that the CI system provides a compiler.
It is possible to specify a different path with
-ilikepip install -i https://example.com/pypi. However, the official pypi contains precompiled binaries for Windows for python2.7, python3.4 and python3.5. The website you mention is actually more up-to-date and provides binaries for python3.6 and python3.7 as well. We should mention that in the docs.joaquinvanschoren commentedon Feb 27, 2018
I would love to help, but don't own a Windows machine (nor have access to one). I just heard about this issue from students.
IIUC, that means that this is only an issue for python>3.6? Will have to test that...
A simple fix would be to ask people to first git install netifaces using the precompiled binary.
joaquinvanschoren commentedon Feb 27, 2018
What would be the easiest way to install the openml library? Right now, the documentation says to clone from git and run the setup manually.
In my experience, this also works well:
Is there a reason not to recommend this?
mfeurer commentedon Feb 27, 2018
Actually that's also what I'm using and we should probably recommend that in the user guide. However, I'm not sure what happens if you don't have wheel installed and do this in an empty repository (will it then start installing all dependencies one after the other?).
Another potential solution to the overall problem is installing a compiler. Instead of using visual studio, one could also use the compiler shipped with AnaConda (under the assumption your students use AnaConda).
PGijsbers commentedon Apr 5, 2018
I tried to work on this, but the internet connection here doesn't play nicely with the Windows VM I was trying to configure to reproduce the issue. I'll probably work on this when I have access to a good, wired, connection.
PGijsbers commentedon Apr 17, 2019
Closing this issue as:
pip install -e .which should install dependencies correctly regardless of platform.oslo.concurrencyis no longer a dependency (for non-developers)