QuantEcon / QuantEcon/quantecon-book-theme
Release for 0.3 series breaks local compilation on Windows due to libsass
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 56
- Forks
- 24
- Avg merge
- 4h 33m
- Merged PRs (30d)
- 4
Description
The quantecon-book-theme==0.3.1 or quantecon-book-theme==0.3.2 dependency is breaking local compilation on windows. If you downgrade to quantecon-book-theme==0.2 this doesn't cause any trouble.
Some of the listed errors are:
requirements.txt (line 1)) (0.2.2)
Building wheels for collected packages: libsass
Building wheel for libsass (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
You probably need Visual Studio 2015 (14.0) or higher
C:\Users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running bdist_wheel
running build
running build_py
creating build
copying pysassc.py -> build\lib.win-amd64-cpython-39
copying sass.py -> build\lib.win-amd64-cpython-39
copying sassc.py -> build\lib.win-amd64-cpython-39
copying sasstests.py -> build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\sassutils
copying sassutils\builder.py -> build\lib.win-amd64-cpython-39\sassutils
copying sassutils\distutils.py -> build\lib.win-amd64-cpython-39\sassutils
copying sassutils\wsgi.py -> build\lib.win-amd64-cpython-39\sassutils
copying sassutils\_compat.py -> build\lib.win-amd64-cpython-39\sassutils
copying sassutils\__init__.py -> build\lib.win-amd64-cpython-39\sassutils
running build_ext
building '_sass' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for libsass
Running setup.py clean for libsass
Failed to build libsass
Installing collected packages: libsass, web-compile, quantecon-book-theme
Attempting uninstall: libsass
Found existing installation: libsass 0.22.0
Uninstalling libsass-0.22.0:
Successfully uninstalled libsass-0.22.0
Running setup.py install for libsass ... error
error: subprocess-exited-with-error
× Running setup.py install for libsass did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
You probably need Visual Studio 2015 (14.0) or higher
C:\Users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running install
C:\Users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
copying pysassc.py -> build\lib.win-amd64-cpython-39
copying sass.py -> build\lib.win-amd64-cpython-39
copying sassc.py -> build\lib.win-amd64-cpython-39
copying sasstests.py -> build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\sassutils
copying sassutils\builder.py -> build\lib.win-amd64-cpython-39\sassutils
copying sassutils\distutils.py -> build\lib.win-amd64-cpython-39\sassutils
copying sassutils\wsgi.py -> build\lib.win-amd64-cpython-39\sassutils
copying sassutils\_compat.py -> build\lib.win-amd64-cpython-39\sassutils
copying sassutils\__init__.py -> build\lib.win-amd64-cpython-39\sassutils
running build_ext
building '_sass' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of libsass
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\__pycache__\pysassc.cpython-39.pyc
from C:\Users\jesse\AppData\Local\Temp\pip-uninstall-fcztvo7u\pysassc.cpython-39.pyc
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\__pycache__\sass.cpython-39.pyc
from C:\Users\jesse\AppData\Local\Temp\pip-uninstall-fcztvo7u\sass.cpython-39.pyc
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\__pycache__\sasstests.cpython-39.pyc
from C:\Users\jesse\AppData\Local\Temp\pip-uninstall-fcztvo7u\sasstests.cpython-39.pyc
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\_sass.pyd
from C:\Users\jesse\AppData\Local\Temp\pip-uninstall-kzcz82zy\_sass.pyd
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\libsass-0.22.0.dist-info\
from C:\Users\jesse\anaconda3\envs\lecture-julia.myst\Lib\site-packages\~ibsass-0.22.0.dist-info
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\pysassc.py
from C:\Users\jesse\AppData\Local\Temp\pip-uninstall-kzcz82zy\pysassc.py
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\sass.py
from C:\Users\jesse\AppData\Local\Temp\pip-uninstall-kzcz82zy\sass.py
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\sasstests.py
from C:\Users\jesse\AppData\Local\Temp\pip-uninstall-kzcz82zy\sasstests.py
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\lib\site-packages\sassutils\
from C:\Users\jesse\anaconda3\envs\lecture-julia.myst\Lib\site-packages\~assutils
Moving to c:\users\jesse\anaconda3\envs\lecture-julia.myst\scripts\pysassc.exe
from C:\Users\jesse\AppData\Local\Temp\pip-uninstall-tkhhg5dd\pysassc.exe
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> libsass
The comment to You probably need Visual Studio 2015 (14.0) or higher isn't especially helpful since installing new versions of those didn't seem to fix the problem. This might be in part because the libsass binary is deprecated? https://sass-lang.com/libsass but hard to track
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect requirements.txt line 1 and the quantecon-book-theme 0.3.1/0.3.2 dependency chain, then reproduce the libsass wheel failure on Windows. Done means local compilation succeeds for the affected dependency versions without the reported installation failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100