'Dash - ImportError: DLL load failed: %1 is not a valid Win32 application
I'm currently facing the below error when trying to import dash
import dash
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\dash\__init__.py", line 1, in <module>
from .dash import Dash, no_update # noqa: F401
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\dash\dash.py", line 20, in <module>
from flask_compress import Compress
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\flask_compress\__init__.py", line 1, in <module>
from .flask_compress import Compress
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\flask_compress\flask_compress.py", line 14, in <module>
import brotli
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\brotli\__init__.py", line 3, in <module>
from .brotli import (
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\brotli\brotli.py", line 5, in <module>
from ._brotli import ffi, lib
ImportError: DLL load failed: %1 is not a valid Win32 application.
I already tried uninstalling/installing brotli packages. However, after some digging I assume that the error is possible due to the fact that I have two different python versions on my laptop. I want the 3.7 one to be the main one. The 3.6 version has been pre-installed by my company and can't be edited/removed. When installing 3.7, I had to use the 32x version as I was experiencing errors with the 64x version. Any suggestion how I can resolve the issue?
C:\Users\>python
Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
C:\Users\AppData\Local\Continuum\anaconda3>python
Python 3.7.0 (default, Aug 14 2018, 19:12:50) [MSC v.1900 32 bit (Intel)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
