TheLartians / PyPropagate

A paraxial wave propagation framework for python
GNU General Public License v3.0
5 stars 7 forks source link

Unable to install #36

Closed s-sajid-ali closed 6 years ago

s-sajid-ali commented 6 years ago

Unable to install both via pip or by running setup.py after cloning the repo.

pip install failure :

Here is the log.

setup.py failure :

(after removing #mechanize from install_requires)

(py27) python setup.py install                                                                                                                                                
running install                                                                                                                                                               
running bdist_egg                                                                                                                                                             
running egg_info                                                                                                                                                              
writing requirements to pypropagate.egg-info/requires.txt                                                                                                                     
writing pypropagate.egg-info/PKG-INFO                                                                                                                                         
writing top-level names to pypropagate.egg-info/top_level.txt                                                                                                                 
writing dependency_links to pypropagate.egg-info/dependency_links.txt                                                                                                         
reading manifest file 'pypropagate.egg-info/SOURCES.txt'                                                                                                                      
reading manifest template 'MANIFEST.in'                                                                                                                                       
warning: no directories found matching 'libs'                                                                                                                                 
writing manifest file 'pypropagate.egg-info/SOURCES.txt'                                                                                                                      
installing library code to build/bdist.linux-x86_64/egg                                                                                                                       
running install_lib                                                                                                                                                           
running build_py                                                                                                                                                              
running build_ext                                                                                                                                                             
building '_pypropagate' extension                                                                                                                                             
gcc -pthread -fno-strict-aliasing -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Il
ibs/lars/include -Ilibs/lars/modules/NDArray/include -I/raid/home/sajid/packages/spack/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/miniconda3-4.5.4-mnrjuglmkgo4c563kzynlrdmrpme5jz
a/envs/py27/lib/python2.7/site-packages/numpy/core/include -I/raid/home/sajid/packages/spack/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/miniconda3-4.5.4-mnrjuglmkgo4c563kzynlrdmr
pme5jza/envs/py27/include/python2.7 -c source/finite_difference.cpp -o build/temp.linux-x86_64-2.7/source/finite_difference.o -g -std=c++11 -Wno-unknown-pragmas -Wno-unused-l
ocal-typedef -ffast-math -O3                                                                                                                                                  
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ [enabled by default]                                                          
In file included from source/finite_difference.h:12:0,                                                                                                                        
                 from source/finite_difference.cpp:10:                                                                                                                        
source/algebra.h:4:26: fatal error: lars/ndarray.h: No such file or directory                                                                                                 
 #include <lars/ndarray.h>                                                                                                                                                    
                          ^                                                                                                                                                   
compilation terminated.                                                                                                                                                       
error: command 'gcc' failed with exit status 1                                                                                                                                
TheLartians commented 6 years ago

Regarding pip: It seems you are using an old version of gcc (4.8.5). Please update to gcc >= 5.0 and try again.

Regarding git: PyPropagate uses recursive git modules. Did you execute git submodule update --init --recursive after cloning the repo?

s-sajid-ali commented 6 years ago

Thanks! I did the second operation and compiled with gcc@7.3.0.