-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hello,
I am new to pycaret, so i've using it on google Colab and it works just fine. However when I started using the package on my local machine using Windows 7 64 bits as OS. Once I write this line of code :
from pycaret.classification import *
I get this error :
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-3-a8cb12878b37> in <module>
----> 1 from pycaret.classification import *
~\AppData\Roaming\Python\Python38\site-packages\pycaret\classification.py in <module>
8 import numpy as np
9
---> 10 import pycaret.internal.tabular
11 from pycaret.internal.Display import Display, is_in_colab, enable_colab
12 from typing import List, Tuple, Any, Union, Optional, Dict
~\AppData\Roaming\Python\Python38\site-packages\pycaret\internal\tabular.py in <module>
45 import pycaret.containers.models.clustering
46 import pycaret.containers.models.anomaly
---> 47 import pycaret.internal.preprocess
48 import pandas as pd
49 import numpy as np
~\AppData\Roaming\Python\Python38\site-packages\pycaret\internal\preprocess.py in <module>
32 from sklearn.ensemble import RandomForestClassifier as rfc
33 from sklearn.ensemble import RandomForestRegressor as rfr
---> 34 from lightgbm import LGBMClassifier as lgbmc
35 from lightgbm import LGBMRegressor as lgbmr
36 import sys
~\AppData\Roaming\Python\Python38\site-packages\lightgbm\__init__.py in <module>
6 import os
7
----> 8 from .basic import Booster, Dataset, register_logger
9 from .callback import early_stopping, print_evaluation, record_evaluation, reset_parameter
10 from .engine import CVBooster, cv, train
~\AppData\Roaming\Python\Python38\site-packages\lightgbm\basic.py in <module>
93
94
---> 95 _LIB = _load_lib()
96
97
~\AppData\Roaming\Python\Python38\site-packages\lightgbm\basic.py in _load_lib()
84 if len(lib_path) == 0:
85 return None
---> 86 lib = ctypes.cdll.LoadLibrary(lib_path[0])
87 lib.LGBM_GetLastError.restype = ctypes.c_char_p
88 callback = ctypes.CFUNCTYPE(None, ctypes.c_char_p)
~\.conda\envs\my_env\lib\ctypes\__init__.py in LoadLibrary(self, name)
457
458 def LoadLibrary(self, name):
--> 459 return self._dlltype(name)
460
461 cdll = LibraryLoader(CDLL)
~\.conda\envs\my_env\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error, winmode)
379
380 if handle is None:
--> 381 self._handle = _dlopen(self._name, mode)
382 else:
383 self._handle = handle
OSError: [WinError 193] %1 n’est pas une application Win32 valide
How could I fix this please ! Thank you in advance
I am using Pycaret pycaret.__version__
== 2.3.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working