libsass-python: Can't install
i get this when i try to pip install:
Collecting libsass
Using cached https://files.pythonhosted.org/packages/76/04/ecad53596a118fd77c9d8d00fcb81e4ea0ae0829d2bf87216c80948ed88e/libsass-0.15.1.tar.gz
Requirement already satisfied: six in /Users/luis/anaconda3/lib/python3.6/site-packages (from libsass) (1.11.0)
Building wheels for collected packages: libsass
Running setup.py bdist_wheel for libsass ... error
Complete output from command /Users/luis/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/4q/ckq292wn3g9g_z25831wj5_h0000gn/T/pip-install-b2h0ethe/libsass/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/4q/ckq292wn3g9g_z25831wj5_h0000gn/T/pip-wheel-itgpsktw --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
copying pysassc.py -> build/lib.macosx-10.7-x86_64-3.6
copying sass.py -> build/lib.macosx-10.7-x86_64-3.6
copying sassc.py -> build/lib.macosx-10.7-x86_64-3.6
copying sasstests.py -> build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/builder.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/_compat.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/distutils.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/wsgi.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
running build_ext
building '_sass' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/libsass
creating build/temp.macosx-10.7-x86_64-3.6/libsass/src
creating build/temp.macosx-10.7-x86_64-3.6/libsass/src/memory
clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/luis/anaconda3/include -arch x86_64 -I/Users/luis/anaconda3/include -arch x86_64 -I./libsass/include -I/Users/luis/anaconda3/include/python3.6m -c libsass/src/ast.cpp -o build/temp.macosx-10.7-x86_64-3.6/libsass/src/ast.o -c -O3 -fPIC -std=gnu++0x -Wall -Wno-parentheses -Werror=switch -stdlib=libc++ -mmacosx-version-min=10.7 -Wno-error=unused-command-line-argument-hard-error-in-future -DLIBSASS_VERSION="3.5.4"
warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
In file included from libsass/src/ast.cpp:1:
In file included from libsass/src/sass.hpp:49:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/string:470:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/string_view:171:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/__string:56:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/algorithm:638:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/cstring:61:
/Users/luis/anaconda3/bin/../include/c++/v1/string.h:61:15: fatal error: 'string.h' file not found
#include_next <string.h>
^~~~~~~~~~
1 warning and 1 error generated.
error: command 'clang++' failed with exit status 1
----------------------------------------
Failed building wheel for libsass
Running setup.py clean for libsass
Failed to build libsass
Installing collected packages: libsass
Running setup.py install for libsass ... error
Complete output from command /Users/luis/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/4q/ckq292wn3g9g_z25831wj5_h0000gn/T/pip-install-b2h0ethe/libsass/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/4q/ckq292wn3g9g_z25831wj5_h0000gn/T/pip-record-afdcl23j/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
copying pysassc.py -> build/lib.macosx-10.7-x86_64-3.6
copying sass.py -> build/lib.macosx-10.7-x86_64-3.6
copying sassc.py -> build/lib.macosx-10.7-x86_64-3.6
copying sasstests.py -> build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/builder.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/_compat.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/distutils.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
copying sassutils/wsgi.py -> build/lib.macosx-10.7-x86_64-3.6/sassutils
running build_ext
building '_sass' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/libsass
creating build/temp.macosx-10.7-x86_64-3.6/libsass/src
creating build/temp.macosx-10.7-x86_64-3.6/libsass/src/memory
clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/luis/anaconda3/include -arch x86_64 -I/Users/luis/anaconda3/include -arch x86_64 -I./libsass/include -I/Users/luis/anaconda3/include/python3.6m -c libsass/src/ast.cpp -o build/temp.macosx-10.7-x86_64-3.6/libsass/src/ast.o -c -O3 -fPIC -std=gnu++0x -Wall -Wno-parentheses -Werror=switch -stdlib=libc++ -mmacosx-version-min=10.7 -Wno-error=unused-command-line-argument-hard-error-in-future -DLIBSASS_VERSION="3.5.4"
warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
In file included from libsass/src/ast.cpp:1:
In file included from libsass/src/sass.hpp:49:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/string:470:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/string_view:171:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/__string:56:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/algorithm:638:
In file included from /Users/luis/anaconda3/bin/../include/c++/v1/cstring:61:
/Users/luis/anaconda3/bin/../include/c++/v1/string.h:61:15: fatal error: 'string.h' file not found
#include_next <string.h>
^~~~~~~~~~
1 warning and 1 error generated.
error: command 'clang++' failed with exit status 1
----------------------------------------
Command "/Users/luis/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/4q/ckq292wn3g9g_z25831wj5_h0000gn/T/pip-install-b2h0ethe/libsass/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/4q/ckq292wn3g9g_z25831wj5_h0000gn/T/pip-record-afdcl23j/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/4q/ckq292wn3g9g_z25831wj5_h0000gn/T/pip-install-b2h0ethe/libsass/```
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (8 by maintainers)
It works. 😄
since this doesn’t appear to be a
libsass-pythonissue I’m going to close this – thanks for the issue nonetheless!