This repository was archived by the owner on Oct 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Building gbasis Fails #25
Copy link
Copy link
Open
Description
Setup on "macOS High Sierra" using conda environments:
Python=3.64 and 2.7.14
Cython=0.27.3
Numpy=1.14.0
Trying ./setup.py build_ext -i, you get:
Traceback (most recent call last):
File "./setup.py", line 31, in <module>
version=get_version(),
File "./setup.py", line 15, in get_version
with open('gbasis/version.py', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'gbasis/version.py'
I added gbasis.version.py by hand, and then you get:
/Users/farnaz.heidarzadeh/anaconda3/lib/python3.6/site-packages/setuptools/dist.py:364: UserWarning: The version specified ('"0.1.0"') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
running build_ext
cythoning gbasis/cext.pyx to gbasis/cext.cpp
building 'gbasis.cext' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/gbasis
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/farnaz.heidarzadeh/anaconda3/include -arch x86_64 -I/Users/farnaz.heidarzadeh/anaconda3/include -arch x86_64 -I/Users/farnaz.heidarzadeh/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/Users/farnaz.heidarzadeh/anaconda3/include/python3.6m -c gbasis/cext.cpp -o build/temp.macosx-10.7-x86_64-3.6/gbasis/cext.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /Users/farnaz.heidarzadeh/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
from /Users/farnaz.heidarzadeh/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /Users/farnaz.heidarzadeh/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gbasis/cext.cpp:539:
/Users/farnaz.heidarzadeh/anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
In file included from gbasis/gbasis.h:26:0,
from gbasis/cext.cpp:550:
gbasis/ints.h:26:21: fatal error: libint2.h: No such file or directory
#include "libint2.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels