question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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/```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Kevin-Mokcommented, Nov 18, 2018

It works. 😄

1reaction
asottilecommented, Nov 2, 2018

since this doesn’t appear to be a libsass-python issue I’m going to close this – thanks for the issue nonetheless!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Install Apps or Software on Windows? Here's What ...
Unable to Install Apps or Software on Windows? Here's What to Do · 1. Reboot Your Computer · 2. Check App Installer Settings...
Read more >
Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >
Can't Install Anything on Windows 10: 7 Easy Expert fixes
How do I fix Windows 10 if it can't install anything? · 1. Terminate the Windows Installer process · 2. Disable Fast Startup...
Read more >
I can't install programs in Windows 10 - Microsoft Community
Try installing the app again. If that does not work: Open Start Type: cmd. Right click CMD Click Run as administrator. At the...
Read more >
Top 6 Ways to Fix Unable to Install Programs or Software on ...
Top 6 Ways to Fix Unable to Install Programs or Software on Windows 11 · 1. Check Program Compatibility · 2. Run Installer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found