mincong-h / finance-toolkit

Finance Toolkit
3 stars 1 forks source link

Python(12188,0x113e38e00) malloc: can't allocate region #27

Closed mincong-h closed 10 months ago

mincong-h commented 3 years ago
(venv) ➜  finance-toolkit git:(requirements) ft merge
Python(12188,0x113e38e00) malloc: can't allocate region
:*** mach_vm_map(size=18446744072343875584, flags: 100) failed (error code=3)
Python(12188,0x113e38e00) malloc: *** set a breakpoint in malloc_error_break to debug
init_dgelsd failed init
Traceback (most recent call last):
  File "/Users/minconghuang/github/finance-toolkit/venv/bin/finance-toolkit", line 11, in <module>
    load_entry_point('finance-toolkit==0.1.0', 'console_scripts', 'finance-toolkit')()
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2862, in load_entry_point
    return ep.load()
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2462, in load
    return self.resolve()
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2468, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/finance_toolkit-0.1.0-py3.7.egg/finance_toolkit/__main__.py", line 23, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/finance_toolkit-0.1.0-py3.7.egg/finance_toolkit/tx.py", line 5, in <module>
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/pandas/__init__.py", line 11, in <module>
    __import__(dependency)
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/numpy/__init__.py", line 286, in <module>
    raise RuntimeError(msg)
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
mincong-h commented 3 years ago
➜  finance-toolkit git:(requirements) pip3 freeze
appdirs==1.4.4
black==20.8b1
cfgv==3.3.1
click==7.1.2
distlib==0.3.1
filelock==3.0.12
flake8==3.9.0
identify==2.2.14
importlib-metadata==3.4.0
mccabe==0.6.1
mypy-extensions==0.4.3
nodeenv==1.6.0
packaging==20.8
pathspec==0.8.1
pluggy==0.13.1
pre-commit==2.15.0
py==1.10.0
pycodestyle==2.7.0
pyflakes==2.3.1
pyparsing==2.4.7
PyYAML==5.4.1
regex==2021.4.4
six==1.15.0
toml==0.10.2
tox==3.21.1
typed-ast==1.4.2
typing-extensions==3.7.4.3
virtualenv==20.3.1
zipp==3.4.0
mincong-h commented 3 years ago
(venv) ➜  finance-toolkit git:(requirements) python3 --version
Python 3.7.10
(venv) ➜  finance-toolkit git:(requirements) type python3
python3 is /Users/minconghuang/github/finance-toolkit/venv/bin/python3
jingwen-z commented 3 years ago
finance-toolkit (master u=) $ pip3 freeze
appdirs==1.4.4
appnope==0.1.0
atomicwrites==1.3.0
attrs==19.1.0
backcall==0.1.0
bleach==3.1.0
branca==0.3.1
cachetools==4.1.0
certifi==2019.3.9
chardet==3.0.4
Click==7.0
click-plugins==1.1.1
cligj==0.5.0
convertdate==2.2.0
cycler==0.10.0
Cython==0.29.14
decorator==4.4.0
defusedxml==0.6.0
distlib==0.3.1
docopt==0.6.2
emoji==0.5.4
entrypoints==0.3
et-xmlfile==1.0.1
fbprophet==0.5
filelock==3.0.12
finance-toolkit==0.1.0
Fiona==1.8.6
flake8==3.6.0
folium==0.9.1
geojson==2.4.1
geopandas==0.5.0
google-api-core==1.21.0
google-api-python-client==1.9.3
google-auth==1.18.0
google-auth-httplib2==0.0.3
googleapis-common-protos==1.52.0
graphviz==0.14
haversine==2.1.2
holidays==0.9.11
httplib2==0.18.1
idna==2.8
importlib-metadata==0.19
ipykernel==5.1.2
ipython==7.8.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
isoweek==1.3.3
jdcal==1.4.1
jedi==0.15.1
jieba==0.42.1
Jinja2==2.10.1
joblib==0.15.1
jsonschema==3.0.2
jupyter-client==5.3.1
jupyter-contrib-core==0.3.3
jupyter-contrib-nbextensions==0.5.1
jupyter-core==4.5.0
jupyter-highlight-selected-word==0.2.0
jupyter-latex-envs==1.4.6
jupyter-nbextensions-configurator==0.4.1
jupyterthemes==0.20.0
kaggle==1.5.3
kiwisolver==1.0.1
langdetect==1.0.8
lesscpy==0.13.0
lunardate==0.2.0
lxml==4.5.0
mailer==0.8.1
MarkupSafe==1.1.1
matplotlib==3.1.3
mccabe==0.6.1
mistune==0.8.4
mlxtend==0.16.0
mock==4.0.2
more-itertools==7.2.0
munch==2.3.2
nbconvert==5.6.0
nbformat==4.4.0
nltk==3.5
notebook==6.0.1
numpy==1.15.4
objgraph==3.4.1
openpyxl==3.0.2
packaging==19.1
paddlepaddle-tiny==1.6.1
pandas==0.24.2
pandocfilters==1.4.2
parso==0.5.1
patsy==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
Pillow==7.1.2
pipdeptree==1.0.0
plotly==4.8.0
pluggy==0.12.0
ply==3.11
prometheus-client==0.7.1
prompt-toolkit==2.0.9
protobuf==3.12.2
ptyprocess==0.6.0
py==1.8.0
py4j==0.10.7
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycodestyle==2.4.0
pyflakes==2.0.0
Pygments==2.4.2
PyMeeus==0.3.6
pyparsing==2.3.0
pyproj==2.2.0
pyrsistent==0.15.4
pyspark==2.4.5
pystan==2.19.1.1
pytest==5.0.1
python-dateutil==2.7.5
python-slugify==3.0.2
pytz==2018.7
PyYAML==5.1.2
pyzmq==18.1.0
regex==2020.6.8
requests==2.21.0
retrying==1.3.3
rsa==4.6
scikit-learn==0.20.2
scipy==1.2.0
seaborn==0.9.0
selenium==3.141.0
Send2Trash==1.5.0
sentencepiece==0.1.92
Shapely==1.6.4.post2
six==1.15.0
sklearn==0.0
snownlp==0.12.3
squarify==0.4.3
statsmodels==0.10.2
tabulate==0.8.2
teradata==15.10.0.21
terminado==0.8.2
testpath==0.4.2
text-unidecode==1.2
textblob==0.15.3
toml==0.10.1
tornado==6.0.3
tox==3.18.0
tqdm==4.31.1
traitlets==4.3.2
uritemplate==3.0.1
urllib3==1.24.2
virtualenv==20.0.28
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.5.1
wordcloud==1.7.0
xgboost==0.90
xlrd==1.2.0
zipp==0.5.2
jingwen-z commented 3 years ago
finance-toolkit (master u=) $ python3 --version
Python 3.7.9
finance-toolkit (master u=) $ type python3
python3 is hashed (/usr/local/opt/python@3.7/bin/python3)
mincong-h commented 3 years ago

I think the installation should be part of the CI tests

mincong-h commented 3 years ago

I think the installation should be part of the CI tests

It is part of the CI:

python3 -m venv venv
. venv/bin/activate
python3 setup.py install
python3 -m pip install -r requirements-tests.txt

See https://github.com/mincong-h/finance-toolkit/blob/3737543616b5fdc4ab3508ea91cbdcbbe0ea2b3e/.circleci/config.yml#L19-L25

mincong-h commented 3 years ago

If you compiled yourself, see site.cfg.example for information.