python 3.x - PyInstaller statsmodels.stats.diagnostic import kstest_normal -


i'm using pyinstaller on 1 of scripts i'm getting error on line of code wrote:

from statsmodels.stats.diagnostic import kstest_normal 

the command used

pyinstaller fitness_of_statistical_tests.py --hidden-import=scipy.linalg.cython_blas --hidden-import=scipy.linalg.cython_lapack 

the full error is:

traceback (most recent call last):   file "c:\python34\lib\site-packages\pandas\__init__.py", line 7, in <module>     pandas import hashtable, tslib, lib importerror: cannot import name 'lib'  during handling of above exception, exception occurred:  traceback (most recent call last):   file "<string>", line 9, in <module>   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "d:\seds\gahndiwashingtonmethod\fitness_of_statistical_tests_view.py", line 11, in <module>     statsmodels.stats.diagnostic import kstest_normal   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "c:\python34\lib\site-packages\statsmodels\__init__.py", line 8, in <module>     .tools.sm_exceptions import (convergencewarning, cachewritewarning,   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "c:\python34\lib\site-packages\statsmodels\tools\__init__.py", line 1, in <module>     .tools import add_constant, categorical   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "c:\python34\lib\site-packages\statsmodels\tools\tools.py", line 11, in <module>     statsmodels.datasets import webuse   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "c:\python34\lib\site-packages\statsmodels\datasets\__init__.py", line 5, in <module>     . import (anes96, cancer, committee, ccard, copper, cpunish, elnino,   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "c:\python34\lib\site-packages\statsmodels\datasets\anes96\__init__.py", line 1, in <module>     .data import *   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "c:\python34\lib\site-packages\statsmodels\datasets\anes96\data.py", line 90, in <module>     statsmodels.datasets import utils du   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "c:\python34\lib\site-packages\statsmodels\datasets\utils.py", line 13, in <module>     pandas import read_csv, dataframe, index   file "c:\python34\lib\site-packages\pyinstaller\loader\pyimod03_importers.py", line 311, in load_module     exec(bytecode, module.__dict__)   file "c:\python34\lib\site-packages\pandas\__init__.py", line 13, in <module>     "extensions first.".format(module)) importerror: c extension: 'lib' not built. if want import pandas source directory, may need run 'python setup.py build_ext --inplace' build c extensions first. fitness_of_statistical_tests returned -1 

all of these imports work in python interpreter, it's when run exe pyinstaller stuff breaks.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -