Search code examples
djangopython-3.xlibsass

Python Sass unable to load DLL


On Windows, Python 3.4 64bit. Installed libsass, but unable to run it.
Probably something to do with the 32bit vs 64bit.

pip install libsass
Requirement already satisfied (use --upgrade to upgrade): libsass in c:\python34\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): six in c:\python34\lib\site-packages (from libsass)

python
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import sass
Traceback (most recent call last):
File "", line 1, in 
File "C:\Python34\lib\site-packages\sass.py", line 24, in 
from _sass import OUTPUT_STYLES, compile_filename, compile_string
ImportError: DLL load failed: %1 is not a valid Win32 application.

Help!


Solution

  • You should just install the appropriate wheel from: https://pypi.python.org/pypi/libsass (libsass-0.8.3-cp34-none-win_amd64.whl)