Installing on windows fails
See original GitHub issueFollowing https://clifford.readthedocs.io/en/latest/Installation.html, I tried the following in a Conda Python 3 environment:
pip install clifford
It fails with the following error(only the relevant part ):
Building wheels for collected packages: future, llvmlite
(omitted)
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:9 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "E:/Temp/pip-install-zgckej4r/llvmlite/ffi/build/CMakeFiles/CMakeOutput.log".
Trying generator 'Visual Studio 14 2015 Win64'
Traceback (most recent call last):
File "E:\Temp\pip-install-zgckej4r\llvmlite\ffi\build.py", line 167, in <module>
main()
File "E:\Temp\pip-install-zgckej4r\llvmlite\ffi\build.py", line 155, in main
main_win32()
File "E:\Temp\pip-install-zgckej4r\llvmlite\ffi\build.py", line 93, in main_win32
try_cmake(here_dir, build_dir, generator)
File "E:\Temp\pip-install-zgckej4r\llvmlite\ffi\build.py", line 28, in try_cmake
subprocess.check_call(['cmake', '-G', generator, cmake_dir])
File "E:\Miniconda3\envs\py3\lib\subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-G', 'Visual Studio 14 2015 Win64', 'E:\\Temp\\pip-install-zgckej4r\\llvmlite\\ffi']' returned non-zero exit status 1.
error: command 'E:\\Miniconda3\\envs\\py3\\python.exe' failed with exit status 1
----------------------------------------
Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Successfully built future
Failed to build llvmlite
I believe this dependencies and possible trouble shooting should be addressed in doc. But anyway, as long as it’s a native building problem, we can alway see if conda can help:
conda install clifford
Then there’s PackagesNotFoundError.
So I take a look at https://github.com/pygae/clifford/blob/master/azure-pipelines.yml and tried the following:
conda install -y future h5py nose pytest setuptools scipy numpy
conda install -y numba=0.40.1
pip install clifford
Everything went smoothly, time to use clifford
! Unfortunately:
>python
Python 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from clifford.tools.g3c import random_line
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\Miniconda3\envs\py3\lib\site-packages\clifford\tools\g3c\__init__.py", line 133, in <module>
from clifford.tools.g3 import quaternion_to_rotor, random_euc_mv, \
File "E:\Miniconda3\envs\py3\lib\site-packages\clifford\tools\g3\__init__.py", line 49, in <module>
from clifford.g3c import *
File "E:\Miniconda3\envs\py3\lib\site-packages\clifford\g3c.py", line 3, in <module>
layout_orig, blades_orig = Cl(3)
File "E:\Miniconda3\envs\py3\lib\site-packages\clifford\__init__.py", line 2286, in Cl
layout = Layout(sig, bladeTupList, firstIdx=firstIdx, names=names)
File "E:\Miniconda3\envs\py3\lib\site-packages\clifford\__init__.py", line 620, in __init__
self._genTables()
File "E:\Miniconda3\envs\py3\lib\site-packages\clifford\__init__.py", line 719, in _genTables
np.array(self.sig))
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\dispatcher.py", line 367, in _compile_for_args
raise e
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\dispatcher.py", line 324, in _compile_for_args
return self.compile(tuple(argtypes))
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler_lock.py", line 32, in _acquire_compile_lock
return func(*args, **kwargs)
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\dispatcher.py", line 655, in compile
cres = self._compiler.compile(args, return_type)
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\dispatcher.py", line 82, in compile
pipeline_class=self.pipeline_class)
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler.py", line 904, in compile_extra
return pipeline.compile_extra(func)
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler.py", line 367, in compile_extra
return self._compile_bytecode()
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler.py", line 835, in _compile_bytecode
return self._compile_core()
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler.py", line 822, in _compile_core
res = pm.run(self.status)
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler_lock.py", line 32, in _acquire_compile_lock
return func(*args, **kwargs)
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler.py", line 253, in run
raise patched_exception
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler.py", line 244, in run
stage()
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\compiler.py", line 539, in stage_parfor_pass
parfor_pass.run()
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\parfor.py", line 682, in run
self.array_analysis.run(self.func_ir.blocks)
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\array_analysis.py", line 906, in run
equiv_set = equiv_set.intersect(from_set)
File "E:\Miniconda3\envs\py3\lib\site-packages\numba\array_analysis.py", line 537, in intersect
assert(len(varlist) > 0)
AssertionError: Failed in nopython mode pipeline (step: convert to parfors)
I haven’t figured out what these mean yet, just searched that there’s no similar issue and opened this one.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
[SOLVED] Windows 10 Installation Has Failed - Driver Easy
[SOLVED] Windows 10 Installation Has Failed · Try these fixes… · Fix 1: Remove the peripheral devices · Fix 2: Clear an attribute...
Read more >How to Fix "Windows 10 Installation has Failed" Error? - Appuals
One potential reason you might see the error message “Windows 10 Installation has Failed” is if a key system dependency, process, or service...
Read more >4 Solutions to Fix Windows 10/11 Installation Has Failed
4 Solutions to Fix the "Windows 10/11 installation has failed" Error · Solution 1: Run a Clean Boot Installation · Solution 2: Create...
Read more >Windows 10 Installation Has Failed [Easily FIXED]
How do I fix Windows 10 installation failed? · 1. Unplug all peripheral devices · 2. Uninstall the language pack · 3. Uninstall...
Read more >[SOLVED] Windows 10 Could Not Complete the Installation + ...
Case 2: Windows 10 Installation Has Failed · Fix 1. Check Whether Your Computer Meets the Minimum Requirements · Fix 2. Clear Certain...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, that went very well. Yes, I’ve already tried it in a jupyter notebook in binder and under Windows, it’s awesome! Great work!
I’ll close this issue as it’s now solved and could be served as temp doc for someone who encounter the same issue.
The latest release of numba (0.43) which came out today should fix all the problems with clifford on windows 😃 https://anaconda.org/numba/numba/ https://pypi.org/project/numba/ Give it a try!