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

Hypervolume compile error again. #244

Closed
PaoloBenigni opened this issue Nov 22, 2017 · 13 comments
Closed

Hypervolume compile error again. #244

PaoloBenigni opened this issue Nov 22, 2017 · 13 comments

Comments

@PaoloBenigni
Copy link

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

running install
running bdist_egg
running egg_info
writing deap.egg-info\PKG-INFO
writing dependency_links to deap.egg-info\dependency_links.txt
writing top-level names to deap.egg-info\top_level.txt
reading manifest file 'deap.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.hpp' under directory 'deap'
warning: no files found matching '*.h' under directory 'examples'
no previously-included directories found matching 'doc\_build'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'deap.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\deap
copying deap\algorithms.py -> build\lib.win-amd64-3.6\deap
copying deap\base.py -> build\lib.win-amd64-3.6\deap
copying deap\cma.py -> build\lib.win-amd64-3.6\deap
copying deap\creator.py -> build\lib.win-amd64-3.6\deap
copying deap\gp.py -> build\lib.win-amd64-3.6\deap
copying deap\__init__.py -> build\lib.win-amd64-3.6\deap
creating build\lib.win-amd64-3.6\deap\benchmarks
copying deap\benchmarks\binary.py -> build\lib.win-amd64-3.6\deap\benchmarks
copying deap\benchmarks\gp.py -> build\lib.win-amd64-3.6\deap\benchmarks
copying deap\benchmarks\movingpeaks.py -> build\lib.win-amd64-3.6\deap\benchmarks
copying deap\benchmarks\tools.py -> build\lib.win-amd64-3.6\deap\benchmarks
copying deap\benchmarks\__init__.py -> build\lib.win-amd64-3.6\deap\benchmarks
creating build\lib.win-amd64-3.6\deap\tests
copying deap\tests\test_algorithms.py -> build\lib.win-amd64-3.6\deap\tests
copying deap\tests\test_benchmarks.py -> build\lib.win-amd64-3.6\deap\tests
copying deap\tests\test_creator.py -> build\lib.win-amd64-3.6\deap\tests
copying deap\tests\test_logbook.py -> build\lib.win-amd64-3.6\deap\tests
copying deap\tests\test_pickle.py -> build\lib.win-amd64-3.6\deap\tests
copying deap\tests\__init__.py -> build\lib.win-amd64-3.6\deap\tests
creating build\lib.win-amd64-3.6\deap\tools
copying deap\tools\constraint.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\crossover.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\emo.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\indicator.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\init.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\migration.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\mutation.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\selection.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\support.py -> build\lib.win-amd64-3.6\deap\tools
copying deap\tools\__init__.py -> build\lib.win-amd64-3.6\deap\tools
creating build\lib.win-amd64-3.6\deap\tools\_hypervolume
copying deap\tools\_hypervolume\pyhv.py -> build\lib.win-amd64-3.6\deap\tools\_hypervolume
copying deap\tools\_hypervolume\__init__.py -> build\lib.win-amd64-3.6\deap\tools\_hypervolume
Fixing build\lib.win-amd64-3.6\deap\algorithms.py build\lib.win-amd64-3.6\deap\base.py build\lib.win-amd64-3.6\deap\cma.py build\lib.win-amd64-3.6\deap\creator.py build\lib.win-amd64-3.6\deap\gp.py build\lib.win-amd64-3.6\deap\__init__.py build\lib.win-amd64-3.6\deap\benchmarks\binary.py build\lib.win-amd64-3.6\deap\benchmarks\gp.py build\lib.win-amd64-3.6\deap\benchmarks\movingpeaks.py build\lib.win-amd64-3.6\deap\benchmarks\tools.py build\lib.win-amd64-3.6\deap\benchmarks\__init__.py build\lib.win-amd64-3.6\deap\tests\test_algorithms.py build\lib.win-amd64-3.6\deap\tests\test_benchmarks.py build\lib.win-amd64-3.6\deap\tests\test_creator.py build\lib.win-amd64-3.6\deap\tests\test_logbook.py build\lib.win-amd64-3.6\deap\tests\test_pickle.py build\lib.win-amd64-3.6\deap\tests\__init__.py build\lib.win-amd64-3.6\deap\tools\constraint.py build\lib.win-amd64-3.6\deap\tools\crossover.py build\lib.win-amd64-3.6\deap\tools\emo.py build\lib.win-amd64-3.6\deap\tools\indicator.py build\lib.win-amd64-3.6\deap\tools\init.py build\lib.win-amd64-3.6\deap\tools\migration.py build\lib.win-amd64-3.6\deap\tools\mutation.py build\lib.win-amd64-3.6\deap\tools\selection.py build\lib.win-amd64-3.6\deap\tools\support.py build\lib.win-amd64-3.6\deap\tools\__init__.py build\lib.win-amd64-3.6\deap\tools\_hypervolume\pyhv.py build\lib.win-amd64-3.6\deap\tools\_hypervolume\__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing build\lib.win-amd64-3.6\deap\algorithms.py build\lib.win-amd64-3.6\deap\base.py build\lib.win-amd64-3.6\deap\cma.py build\lib.win-amd64-3.6\deap\creator.py build\lib.win-amd64-3.6\deap\gp.py build\lib.win-amd64-3.6\deap\__init__.py build\lib.win-amd64-3.6\deap\benchmarks\binary.py build\lib.win-amd64-3.6\deap\benchmarks\gp.py build\lib.win-amd64-3.6\deap\benchmarks\movingpeaks.py build\lib.win-amd64-3.6\deap\benchmarks\tools.py build\lib.win-amd64-3.6\deap\benchmarks\__init__.py build\lib.win-amd64-3.6\deap\tests\test_algorithms.py build\lib.win-amd64-3.6\deap\tests\test_benchmarks.py build\lib.win-amd64-3.6\deap\tests\test_creator.py build\lib.win-amd64-3.6\deap\tests\test_logbook.py build\lib.win-amd64-3.6\deap\tests\test_pickle.py build\lib.win-amd64-3.6\deap\tests\__init__.py build\lib.win-amd64-3.6\deap\tools\constraint.py build\lib.win-amd64-3.6\deap\tools\crossover.py build\lib.win-amd64-3.6\deap\tools\emo.py build\lib.win-amd64-3.6\deap\tools\indicator.py build\lib.win-amd64-3.6\deap\tools\init.py build\lib.win-amd64-3.6\deap\tools\migration.py build\lib.win-amd64-3.6\deap\tools\mutation.py build\lib.win-amd64-3.6\deap\tools\selection.py build\lib.win-amd64-3.6\deap\tools\support.py build\lib.win-amd64-3.6\deap\tools\__init__.py build\lib.win-amd64-3.6\deap\tools\_hypervolume\pyhv.py build\lib.win-amd64-3.6\deap\tools\_hypervolume\__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
building 'deap.tools._hypervolume.hv' extension
***************************************************************************
WARNING: The C extensions could not be compiled, speedups won't be available.
Now building without C extensions.
***************************************************************************
running install
running bdist_egg
running egg_info
writing deap.egg-info\PKG-INFO
writing dependency_links to deap.egg-info\dependency_links.txt
writing top-level names to deap.egg-info\top_level.txt
reading manifest file 'deap.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.hpp' under directory 'deap'
warning: no files found matching '*.h' under directory 'examples'
no previously-included directories found matching 'doc\_build'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'deap.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build\lib
creating build\lib\deap
copying deap\algorithms.py -> build\lib\deap
copying deap\base.py -> build\lib\deap
copying deap\cma.py -> build\lib\deap
copying deap\creator.py -> build\lib\deap
copying deap\gp.py -> build\lib\deap
copying deap\__init__.py -> build\lib\deap
creating build\lib\deap\benchmarks
copying deap\benchmarks\binary.py -> build\lib\deap\benchmarks
copying deap\benchmarks\gp.py -> build\lib\deap\benchmarks
copying deap\benchmarks\movingpeaks.py -> build\lib\deap\benchmarks
copying deap\benchmarks\tools.py -> build\lib\deap\benchmarks
copying deap\benchmarks\__init__.py -> build\lib\deap\benchmarks
creating build\lib\deap\tests
copying deap\tests\test_algorithms.py -> build\lib\deap\tests
copying deap\tests\test_benchmarks.py -> build\lib\deap\tests
copying deap\tests\test_creator.py -> build\lib\deap\tests
copying deap\tests\test_logbook.py -> build\lib\deap\tests
copying deap\tests\test_pickle.py -> build\lib\deap\tests
copying deap\tests\__init__.py -> build\lib\deap\tests
creating build\lib\deap\tools
copying deap\tools\constraint.py -> build\lib\deap\tools
copying deap\tools\crossover.py -> build\lib\deap\tools
copying deap\tools\emo.py -> build\lib\deap\tools
copying deap\tools\indicator.py -> build\lib\deap\tools
copying deap\tools\init.py -> build\lib\deap\tools
copying deap\tools\migration.py -> build\lib\deap\tools
copying deap\tools\mutation.py -> build\lib\deap\tools
copying deap\tools\selection.py -> build\lib\deap\tools
copying deap\tools\support.py -> build\lib\deap\tools
copying deap\tools\__init__.py -> build\lib\deap\tools
creating build\lib\deap\tools\_hypervolume
copying deap\tools\_hypervolume\pyhv.py -> build\lib\deap\tools\_hypervolume
copying deap\tools\_hypervolume\__init__.py -> build\lib\deap\tools\_hypervolume
Fixing build\lib\deap\algorithms.py build\lib\deap\base.py build\lib\deap\cma.py build\lib\deap\creator.py build\lib\deap\gp.py build\lib\deap\__init__.py build\lib\deap\benchmarks\binary.py build\lib\deap\benchmarks\gp.py build\lib\deap\benchmarks\movingpeaks.py build\lib\deap\benchmarks\tools.py build\lib\deap\benchmarks\__init__.py build\lib\deap\tests\test_algorithms.py build\lib\deap\tests\test_benchmarks.py build\lib\deap\tests\test_creator.py build\lib\deap\tests\test_logbook.py build\lib\deap\tests\test_pickle.py build\lib\deap\tests\__init__.py build\lib\deap\tools\constraint.py build\lib\deap\tools\crossover.py build\lib\deap\tools\emo.py build\lib\deap\tools\indicator.py build\lib\deap\tools\init.py build\lib\deap\tools\migration.py build\lib\deap\tools\mutation.py build\lib\deap\tools\selection.py build\lib\deap\tools\support.py build\lib\deap\tools\__init__.py build\lib\deap\tools\_hypervolume\pyhv.py build\lib\deap\tools\_hypervolume\__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing build\lib\deap\algorithms.py build\lib\deap\base.py build\lib\deap\cma.py build\lib\deap\creator.py build\lib\deap\gp.py build\lib\deap\__init__.py build\lib\deap\benchmarks\binary.py build\lib\deap\benchmarks\gp.py build\lib\deap\benchmarks\movingpeaks.py build\lib\deap\benchmarks\tools.py build\lib\deap\benchmarks\__init__.py build\lib\deap\tests\test_algorithms.py build\lib\deap\tests\test_benchmarks.py build\lib\deap\tests\test_creator.py build\lib\deap\tests\test_logbook.py build\lib\deap\tests\test_pickle.py build\lib\deap\tests\__init__.py build\lib\deap\tools\constraint.py build\lib\deap\tools\crossover.py build\lib\deap\tools\emo.py build\lib\deap\tools\indicator.py build\lib\deap\tools\init.py build\lib\deap\tools\migration.py build\lib\deap\tools\mutation.py build\lib\deap\tools\selection.py build\lib\deap\tools\support.py build\lib\deap\tools\__init__.py build\lib\deap\tools\_hypervolume\pyhv.py build\lib\deap\tools\_hypervolume\__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\deap
copying build\lib\deap\algorithms.py -> build\bdist.win-amd64\egg\deap
copying build\lib\deap\base.py -> build\bdist.win-amd64\egg\deap
creating build\bdist.win-amd64\egg\deap\benchmarks
copying build\lib\deap\benchmarks\binary.py -> build\bdist.win-amd64\egg\deap\benchmarks
copying build\lib\deap\benchmarks\gp.py -> build\bdist.win-amd64\egg\deap\benchmarks
copying build\lib\deap\benchmarks\movingpeaks.py -> build\bdist.win-amd64\egg\deap\benchmarks
copying build\lib\deap\benchmarks\tools.py -> build\bdist.win-amd64\egg\deap\benchmarks
copying build\lib\deap\benchmarks\__init__.py -> build\bdist.win-amd64\egg\deap\benchmarks
copying build\lib\deap\cma.py -> build\bdist.win-amd64\egg\deap
copying build\lib\deap\creator.py -> build\bdist.win-amd64\egg\deap
copying build\lib\deap\gp.py -> build\bdist.win-amd64\egg\deap
creating build\bdist.win-amd64\egg\deap\tests
copying build\lib\deap\tests\test_algorithms.py -> build\bdist.win-amd64\egg\deap\tests
copying build\lib\deap\tests\test_benchmarks.py -> build\bdist.win-amd64\egg\deap\tests
copying build\lib\deap\tests\test_creator.py -> build\bdist.win-amd64\egg\deap\tests
copying build\lib\deap\tests\test_logbook.py -> build\bdist.win-amd64\egg\deap\tests
copying build\lib\deap\tests\test_pickle.py -> build\bdist.win-amd64\egg\deap\tests
copying build\lib\deap\tests\__init__.py -> build\bdist.win-amd64\egg\deap\tests
creating build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\constraint.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\crossover.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\emo.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\indicator.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\init.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\migration.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\mutation.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\selection.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\tools\support.py -> build\bdist.win-amd64\egg\deap\tools
creating build\bdist.win-amd64\egg\deap\tools\_hypervolume
copying build\lib\deap\tools\_hypervolume\pyhv.py -> build\bdist.win-amd64\egg\deap\tools\_hypervolume
copying build\lib\deap\tools\_hypervolume\__init__.py -> build\bdist.win-amd64\egg\deap\tools\_hypervolume
copying build\lib\deap\tools\__init__.py -> build\bdist.win-amd64\egg\deap\tools
copying build\lib\deap\__init__.py -> build\bdist.win-amd64\egg\deap
byte-compiling build\bdist.win-amd64\egg\deap\algorithms.py to algorithms.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\base.py to base.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\benchmarks\binary.py to binary.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\benchmarks\gp.py to gp.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\benchmarks\movingpeaks.py to movingpeaks.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\benchmarks\tools.py to tools.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\benchmarks\__init__.py to __init__.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\cma.py to cma.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\creator.py to creator.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\gp.py to gp.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tests\test_algorithms.py to test_algorithms.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tests\test_benchmarks.py to test_benchmarks.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tests\test_creator.py to test_creator.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tests\test_logbook.py to test_logbook.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tests\test_pickle.py to test_pickle.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tests\__init__.py to __init__.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\constraint.py to constraint.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\crossover.py to crossover.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\emo.py to emo.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\indicator.py to indicator.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\init.py to init.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\migration.py to migration.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\mutation.py to mutation.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\selection.py to selection.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\support.py to support.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\_hypervolume\pyhv.py to pyhv.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\_hypervolume\__init__.py to __init__.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\tools\__init__.py to __init__.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\deap\__init__.py to __init__.cpython-36.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying deap.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying deap.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying deap.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying deap.egg-info\pbr.json -> build\bdist.win-amd64\egg\EGG-INFO
copying deap.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\deap-1.2.2-py3.6.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing deap-1.2.2-py3.6.egg
Removing c:\program files\python36\lib\site-packages\deap-1.2.2-py3.6.egg
Copying deap-1.2.2-py3.6.egg to c:\program files\python36\lib\site-packages
deap 1.2.2 is already the active version in easy-install.pth

Installed c:\program files\python36\lib\site-packages\deap-1.2.2-py3.6.egg
Processing dependencies for deap==1.2.2
Finished processing dependencies for deap==1.2.2
***************************************************************************
WARNING: The C extensions could not be compiled, speedups won't be available.
Plain-Python installation succeeded.
***************************************************************************
@fmder
Copy link
Member

fmder commented Nov 23, 2017

Is your python aware of your gcc?

@PaoloBenigni
Copy link
Author

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.

@fmder fmder closed this as completed Nov 27, 2017
@data-blade
Copy link

@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
pip install --global-option build_ext --global-option --compiler=mingw32 --verbose deap
in addition to your logs i get

running build_ext
building 'deap.tools._hypervolume.hv' extension
creating build
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\deap
creating build\temp.win-amd64-3.6\Release\deap\tools
creating build\temp.win-amd64-3.6\Release\deap\tools\_hypervolume
C:\bin\MinGW\bin\gcc.exe -mdll -O -Wall -Ic:\bin\python36\include -Ic:\bin\python36\include -c deap/tools/_hypervolume/_hv.c -o build\temp.win-amd64-3.6\Release\deap\tools\_hypervolume\_hv.o
C:\bin\MinGW\bin\gcc.exe -mdll -O -Wall -Ic:\bin\python36\include -Ic:\bin\python36\include -c deap/tools/_hypervolume/hv.cpp -o build\temp.win-amd64-3.6\Release\deap\tools\_hypervolume\hv.o
gcc: error: CreateProcess: No such file or directory
***************************************************************************
WARNING: The C extensions could not be compiled, speedups won't be available.
Now building without C extensions.
***************************************************************************

any idea what could trigger that gcc error?

@PaoloBenigni
Copy link
Author

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.

@data-blade
Copy link

ah, works now, thx!
also came across that incompatibility info.

@jarlva
Copy link

jarlva commented Oct 27, 2018

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)

untitled

@fmder
Copy link
Member

fmder commented Oct 27, 2018 via email

@jarlva
Copy link

jarlva commented Oct 27, 2018

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:

  1. start VS tools CMD console, switch to the python env and activate.
  2. Ran cl.exe to ensure that the VS tools are in the path and able to see that it is,
  3. Re-run the pip command (above).

Still getting the same error when running from tpot import TPOTClassifier

@fmder
Copy link
Member

fmder commented Oct 27, 2018 via email

@jarlva
Copy link

jarlva commented Oct 28, 2018

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?

@fmder
Copy link
Member

fmder commented Oct 28, 2018 via email

@jarlva
Copy link

jarlva commented Oct 28, 2018

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.
c:\users\userx\py\36env\lib\site-packages\sklearn\externals\joblib\externals\cloudpickle\cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

Thanks you!

@fmder
Copy link
Member

fmder commented Oct 28, 2018

The warning is sklearn, not deap :). Glad it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants