I am trying to deploy a small website I've been working on using Heroku.
When I run the 'git push heroku master' command from the terminal, however, the following import error message comes up:
ImportError: No module named numpy
From what I understand, the error occurs when this process tries to install the CVXcanon module from the 'requirements.txt' file, which is dependent on numpy. I'm not sure how to resolve this issue.
A similar question was posted by someone a while back, however the solution provided involved manually installing the module dependency before proceeding with the remaining installation of 'requirement.txt' modules1
EDIT Here are the contents of the 'requirements.txt' file:
backports-abc==0.4
bokeh==0.12.1
certifi==2016.8.8
click==6.6
CVXcanon==0.1.1
cvxpy==0.4.3
dill==0.2.5
ecos==2.0.4
fastcache==1.0.2
Flask==0.11.1
futures==3.0.5
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
multiprocess==0.70.4
numpy==1.11.1
pandas==0.18.1
pandas-datareader==0.2.1
patsy==0.4.1
python-dateutil==2.5.3
pytz==2016.6.1
PyYAML==3.11
requests==2.11.0
requests-file==1.4
scipy==0.18.0
scs==1.2.6
singledispatch==3.4.0.3
six==1.10.0
statsmodels==0.6.1
toolz==0.8.0
tornado==4.4.1
Werkzeug==0.11.10
WTForms==2.1
And here's the error message in more detail:
Complete output from command python setup.py egg_info:
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "/tmp/pip-build-hyC0O_/CVXcanon/setup.py", line 4, in <module>
remote: import numpy
remote: ImportError: No module named numpy
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hyC0O_/CVXcanon/