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
Hypervolume compile error again. #244
Comments
Is your python aware of your gcc? |
So it seems to be a bigger issue with python 3.6 not being compatible with mingw. Installing MSVC 14 (2015) and installing through the c++ command prompt works for compiling and geting rid of this error. Maybe there should be a note regarding python/compiler versions and incompatibilities that exist. |
@PaoloBenigni i'm running into the same problem, with the exact same setup as yours (afaics). i have NOT tried your MSVC14 solution yet, but but i have a bit more logging. upon running
any idea what could trigger that gcc error? |
Yes, the problem is that ming32 is not compatible with python 3.6, so you have to replace it with mscv2014. I dont recall having to specify the compiler on windows, if its in your PATH correctly it should work. |
ah, works now, thx! |
The solution in #240 did not work. Using Windows 10/Python 3.6.6/pip (not conda). pip install --upgrade --upgrade-strategy "eager" --force-reinstall --ignore-installed --compile --process-dependency-links --no-binary :all: deap Error: |
Do you have a compiler in your path?
Le sam. 27 oct. 2018 02 h 45, jheffez <notifications@github.com> a écrit :
… The solution in <#240> did not work.
Using Windows 10/Python 3.6.6/pip (not conda).
pip install --upgrade --upgrade-strategy "eager" --force-reinstall
--ignore-installed --compile --process-dependency-links --no-binary :all:
deap
Error:
c:\users\userx\py\36env\lib\site-packages\deap\tools_hypervolume\pyhv.py:33:
ImportWarning: Falling back to the python version of hypervolume module.
Expect this to be very slow.
"module. Expect this to be very slow.", ImportWarning)
C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\importlib_bootstrap.py:219:
ImportWarning: can't resolve package from *spec* or *package*, falling
back on *name* and *path*
return f(*args, **kwds)
[image: untitled]
<https://user-images.githubusercontent.com/26058035/47600604-a0417400-d9cc-11e8-89e2-687572e972a5.png>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#244 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA6rwkqWY-lxWr9PLarKqWfyTNvUosiCks5upAEdgaJpZM4Qn83Z>
.
|
Can you please elaborate which compiler (I'm on Windows 10 64bit) and if there is a way to verify that the path is working? Installed VS 2017 community. before had just MS Visual C++ 2017 redistributeable installed. Tried the following:
Still getting the same error when running |
Do you have Microsoft visual studio installed?
Le sam. 27 oct. 2018 10 h 24, jheffez <notifications@github.com> a écrit :
… Can you please elaborate which compiler (I'm on Windows 10 64bit)?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#244 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA6rwgzPxtk6k1r9StX61_QW4y1auJQvks5upGy5gaJpZM4Qn83Z>
.
|
Yes, I detailed above that I installed it and tried again. Again, would you please elaborate a bit more what is required and a quick way to verify that it works? |
Here would be the steps to ensure you have a proper compiler on your path.
Ensure you have the C++ toolset installed.
https://www.cs.mcgill.ca/~mxia3/2017/04/05/Compiling-Python-package-with-C-extension-on-Windows-10-and-Visual-Studio-2017/
Le dim. 28 oct. 2018 à 02:23, jheffez <notifications@github.com> a écrit :
… Yes, I detailed above that I installed it and tried again.
Again, would you please elaborate a bit more what is required and a quick
way to verify that it works?
Is there a how-to link that explains the steps to accomplish this?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#244 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA6rwvtgP5K0HjyJJ9kY2sarCXJ-xe8hks5upU1GgaJpZM4Qn83Z>
.
|
Worked! I had some VS 2017 components missing. Added them according to the link and reran the command above! I noted the following a few times. Thanks you! |
The warning is sklearn, not deap :). Glad it worked! |
My windows 10 running py 3.6 is having issues compiling hypervolume. I cant seem to find the error.
Here is a copy of the verbose output when following the recommendation in #240. Mingw is in path, gcc -- version reads 6.3.0
The text was updated successfully, but these errors were encountered: