Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release for 0.3 series breaks local compilation on Windows due to libsass #185

Open
jlperla opened this issue Jan 3, 2023 · 0 comments
Open

Comments

@jlperla
Copy link
Member

jlperla commented Jan 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant