Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local error after updating to 1.0.2 #660

Closed
GoFroggyRun opened this issue Sep 20, 2017 · 31 comments
Closed

Local error after updating to 1.0.2 #660

GoFroggyRun opened this issue Sep 20, 2017 · 31 comments

Comments

@GoFroggyRun
Copy link
Contributor

After updating to 1.0.2 version, I wasn't able to run TaxBrain locally. See:

screen shot 2017-09-20 at 3 41 09 pm

py.test is also failing. Investigating.

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

@GoFroggyRun interesting. How did you get this error? Is this a file upload?

@GoFroggyRun
Copy link
Contributor Author

@hdoupe Nope. I just run the calculator without any reform. It seem that this has something to do with my environment setting, since the tests are failing as well.

@GoFroggyRun
Copy link
Contributor Author

@hdoupe do you mind copy your environment here?

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

Maybe, did you re-run ./install_taxbrain_server? Tax-Calculator and B-tax were both updated.

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

Try re-running ./install_taxbrain_server.sh. That should reset your environment

cd deploy/
./install_taxbrain_server.sh
cd ..
source activate aei_dropq && source webapp_env.sh

@GoFroggyRun
Copy link
Contributor Author

@hdoupe Thanks for the tips. It looks like there're problems with my conda. Working on it.

@GoFroggyRun
Copy link
Contributor Author

Okay. Problem solved after reseting the environment. Thanks @hdoupe. Closing.

@GoFroggyRun
Copy link
Contributor Author

GoFroggyRun commented Sep 20, 2017

NVM. After resetting the environment and updating to 1.0.2, I receive the following on my local. regardless of what reforms I submitted (even with no reform submitted):

screen shot 2017-09-20 at 4 22 34 pm

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

Which taxcalc package are you using?

@GoFroggyRun
Copy link
Contributor Author

@hdoupe:

taxcalc                   0.10.2                   py27_0    ospc

@GoFroggyRun
Copy link
Contributor Author

A list of my env:

amqp                      2.2.2                     <pip>
asn1crypto                0.22.0                    <pip>
backports                 1.0                      py27_0    defaults
backports-abc             0.5                       <pip>
backports.ssl-match-hostname 3.5.0.1                   <pip>
backports_abc             0.5                      py27_0    defaults
bcrypt                    3.1.3                     <pip>
beautifulsoup4            4.6.0                     <pip>
billiard                  3.5.0.3                   <pip>
bkcharts                  0.2                      py27_0    defaults
bokeh                     0.12.7                   py27_0    defaults
boto                      2.48.0                    <pip>
btax                      0.1.9                    py27_0    ospc
celery                    4.1.0                     <pip>
certifi                   2016.2.28                py27_0    defaults
cffi                      1.11.0                    <pip>
click                     6.7                      py27_0    defaults
cryptography              2.0.3                     <pip>
cycler                    0.10.0                   py27_0    defaults
decorator                 4.1.2                     <pip>
diff-match-patch          20121119                  <pip>
dj-database-url           0.3.0                     <pip>
dj-static                 0.0.6                     <pip>
django                    1.8.2                     <pip>
django-appconf            1.0.2                     <pip>
django-debug-toolbar      1.2.1                     <pip>
django-flatblocks (/Users/seanwang/Documents/GIT/webapp-public/deploy/src/django-flatblocks) 0.9.4                     <pip>
django-hermes             1.4.2                     <pip>
django-htmlmin            0.10.0                    <pip>
django-import-export      0.5.1                     <pip>
django-ipware             1.1.6                     <pip>
django-queryset-csv       0.2.10                    <pip>
django-storages           1.6.5                     <pip>
django-toolbelt           0.0.1                     <pip>
django-user-accounts      2.0.3                     <pip>
django-uuidfield          0.5.0                     <pip>
enum-compat               0.0.2                     <pip>
enum34                    1.1.6                    py27_0    defaults
et-xmlfile                1.0.1                     <pip>
eventlet                  0.20.0                    <pip>
fabric                    1.14.0                    <pip>
flask                     0.12.2                   py27_0    defaults
freetype                  2.5.5                         2    defaults
funcsigs                  1.0.2                    py27_0    defaults
functools32               3.2.3.2                  py27_0    defaults
futures                   3.1.1                    py27_0    defaults
gevent                    1.2.2                    py27_0    defaults
gnureadline               6.3.3                     <pip>
greenlet                  0.4.12                   py27_0    defaults
gunicorn                  19.7.1                    <pip>
html5lib                  0.999999999               <pip>
icu                       54.1                          0    defaults
idna                      2.6                       <pip>
ipaddress                 1.0.18                    <pip>
ipdb                      0.8                       <pip>
ipython                   2.2.0                     <pip>
ipython-genutils          0.2.0                     <pip>
itsdangerous              0.24                     py27_0    defaults
jbig                      2.1                           0    defaults
jdcal                     1.3                       <pip>
jinja2                    2.9.6                    py27_0    defaults
jpeg                      9b                            0    defaults
jsonfield                 2.0.2                     <pip>
jsonschema                2.6.0                     <pip>
jupyter-core              4.3.0                     <pip>
kombu                     4.1.0                     <pip>
libpng                    1.6.30                        1    defaults
libtiff                   4.0.6                         3    defaults
llvmlite                  0.18.0                   py27_0    defaults
markupsafe                1.0                      py27_0    defaults
matplotlib                2.0.2               np112py27_0    defaults
meld3                     1.0.2                     <pip>
mkl                       2017.0.3                      0    defaults
mock                      2.0.0                     <pip>
nbformat                  4.4.0                     <pip>
newrelic                  2.58.2.45                 <pip>
nomkl                     1.0                           0    defaults
numba                     0.33.0              np112py27_0    defaults
numpy                     1.12.1             py27_nomkl_0  [nomkl]  defaults
odfpy                     1.3.5                     <pip>
ogusa                     0.5.9                    py27_0    ospc
olefile                   0.44                     py27_0    defaults
openpyxl                  2.4.8                     <pip>
openssl                   1.0.2l                        0    defaults
pandas                    0.20.3                   py27_0    defaults
paramiko                  2.3.0                     <pip>
pbr                       3.1.1                     <pip>
pdfkit                    0.4.1                     <pip>
pillow                    4.2.1                    py27_0    defaults
pip                       9.0.1                    py27_1    defaults
plotly                    2.0.15                    <pip>
psycopg2                  2.7.3.1                   <pip>
py                        1.4.34                   py27_0    defaults
pyasn1                    0.3.5                     <pip>
pycparser                 2.18                      <pip>
pynacl                    1.1.2                     <pip>
pyparsing                 2.2.0                    py27_0    defaults
pyqt                      5.6.0                    py27_2    defaults
pytest                    3.2.1                    py27_0    defaults
pytest-django             3.1.2                     <pip>
python                    2.7.13                        0    defaults
python-dateutil           2.6.1                    py27_0    defaults
python-http-client        3.0.0                     <pip>
pytz                      2017.2                   py27_0    defaults
pyyaml                    3.12                     py27_0    defaults
qt                        5.6.2                         2    defaults
readline                  6.2                           2    defaults
redis                     3.2.0                         0    defaults
requests                  2.14.2                   py27_0    defaults
requests-mock             1.3.0                     <pip>
retrying                  1.3.3                     <pip>
scipy                     0.19.1          np112py27_nomkl_0  [nomkl]  defaults
sendgrid                  3.6.5                     <pip>
sendgrid-django           4.0.4                     <pip>
setuptools                36.4.0                   py27_0    defaults
singledispatch            3.4.0.3                  py27_0    defaults
sip                       4.18                     py27_0    defaults
six                       1.10.0                   py27_0    defaults
sqlite                    3.13.0                        0    defaults
sqlparse                  0.2.3                     <pip>
ssl_match_hostname        3.5.0.1                  py27_0    defaults
static3                   0.5.1                     <pip>
subprocess32              3.2.7                    py27_0    defaults
supervisor                3.3.3                     <pip>
tablib                    0.12.1                    <pip>
taxbrain-server (/Users/seanwang/Documents/GIT/webapp-public/deploy) unknown                   <pip>
taxcalc                   0.10.2                   py27_0    ospc
taxpuf                    1.3.0                    py27_0    opensourcepolicycenter
tk                        8.5.18                        0    defaults
toolz                     0.8.2                    py27_0    defaults
tornado                   4.5.2                    py27_0    defaults
traitlets                 4.3.2                     <pip>
unicodecsv                0.14.1                    <pip>
vine                      1.1.4                     <pip>
waitress                  1.0.2                     <pip>
webencodings              0.5.1                     <pip>
werkzeug                  0.12.2                   py27_0    defaults
wheel                     0.29.0                   py27_0    defaults
xlrd                      1.1.0                    py27_0    defaults
xlwt                      1.3.0                     <pip>
xz                        5.2.3                         0    defaults
yaml                      0.1.6                         0    defaults
yolk                      0.4.3                     <pip>
zlib                      1.2.11                        0    defaults

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

Did you run source webapp_env.sh?

@GoFroggyRun
Copy link
Contributor Author

@hdoupe Yup.

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

@GoFroggyRun do you know where it's failing? You can check the log file in taxbrain_server/logs/celery-stderr--...log to see if the jobs are being sent to taxcalc.

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

@GoFroggyRun new variables were added to the models. You may need to run

python manage.py makemigrations
python manage.py migrate

@GoFroggyRun
Copy link
Contributor Author

@hdoupe, I have already ran these two.

Here's a copy of my most recent log:

[2017-09-20 16:34:33,471: INFO/MainProcess] Connected to redis://localhost:6379//
[2017-09-20 16:34:33,479: INFO/MainProcess] mingle: searching for neighbors
[2017-09-20 16:34:34,498: WARNING/MainProcess] /Users/seanwang/anaconda2/envs/aei_dropq/lib/python2.7/site-packages/celery/app/control.py:45: DuplicateNodenameWarning: Received multiple replies from node name: [email protected].
Please make sure you give each node a unique nodename using
the celery worker `-n` option.
  pluralize(len(dupes), 'name'), ', '.join(sorted(dupes)),
[2017-09-20 16:34:34,498: INFO/MainProcess] mingle: all alone
[2017-09-20 16:34:34,503: INFO/MainProcess] [email protected] ready.
[2017-09-20 16:34:34,510: INFO/MainProcess] pidbox: Connected to redis://localhost:6379//.
[2017-09-20 16:35:04,574: INFO/MainProcess] Received task: celery_tasks.dropq_task_async[f29da6d1-845b-4d0f-bec6-05815f675427]  
[2017-09-20 16:35:04,575: WARNING/MainProcess] dropq_task_async
[2017-09-20 16:35:04,575: WARNING/MainProcess] 0
[2017-09-20 16:35:04,575: WARNING/MainProcess] {u'2017': {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}
[2017-09-20 16:35:04,576: WARNING/MainProcess] 2017
[2017-09-20 16:35:04,576: WARNING/MainProcess] {u'growdiff_response': {}, u'consumption': {}, u'behavior': {}, u'growdiff_baseline': {}}
[2017-09-20 16:35:04,576: WARNING/MainProcess] user mods:
[2017-09-20 16:35:04,576: WARNING/MainProcess] {u'2017': {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}
[2017-09-20 16:35:04,576: WARNING/MainProcess] first_year
[2017-09-20 16:35:04,576: WARNING/MainProcess] 2017
[2017-09-20 16:35:04,576: WARNING/MainProcess] user_reform
[2017-09-20 16:35:04,576: WARNING/MainProcess] {u'policy': {2017: {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}}
[2017-09-20 16:35:04,576: WARNING/MainProcess] {2017: {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}
[2017-09-20 16:35:04,576: WARNING/MainProcess] keywords to dropq
[2017-09-20 16:35:04,577: WARNING/MainProcess] {'start_year': 2017, 'user_mods': {u'growdiff_response': {}, u'consumption': {}, u'growdiff_baseline': {}, u'behavior': {}, u'policy': {2017: {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}, u'gdp_elasticity': {}}, 'year_n': 0}
[2017-09-20 16:35:06,111: WARNING/MainProcess] You loaded data for 2009.
[2017-09-20 16:35:06,284: WARNING/MainProcess] Tax-Calculator startup automatically extrapolated your data to 2013.
[2017-09-20 16:35:35,669: WARNING/MainProcess] You loaded data for 2009.
[2017-09-20 16:35:35,847: WARNING/MainProcess] Tax-Calculator startup automatically extrapolated your data to 2013.
[2017-09-20 16:35:39,160: WARNING/MainProcess] You loaded data for 2009.
[2017-09-20 16:35:39,420: WARNING/MainProcess] Tax-Calculator startup automatically extrapolated your data to 2013.
[2017-09-20 16:35:42,890: WARNING/MainProcess] seed=1780236380
[2017-09-20 16:36:14,213: WARNING/MainProcess] elapsed time for this run:
[2017-09-20 16:36:14,214: WARNING/MainProcess] 69.6351840496
[2017-09-20 16:36:14,473: INFO/MainProcess] Received task: celery_tasks.dropq_task_async[884e7d77-78cd-4914-b531-a85f561b8af3]  
[2017-09-20 16:36:14,476: INFO/MainProcess] Task celery_tasks.dropq_task_async[f29da6d1-845b-4d0f-bec6-05815f675427] succeeded in 69.89900498s: '{"fiscal_tot_ref": {"combined_tax_0": "2779083044806.68", "payroll_tax_0": "1079031962617.58", "ind_tax_0": "1700051082189.10"}, "pdf_bin": {"hundred_twohundred_0": ["21252714", "0", "23008859", "-203.49", "-4682030809.51", "0.00%", "92.37%", "34.42%"], "all_0": ["128707089", "0", "170054950", "n/a", "-13602975844.22", "n/a", "n/a", "100.00%"], "less_than_10_0": ["17217006", "0", "23169562", "-6.91", "-159994898.64", "0.00%", "74.31%", "1.18%"], "seventyfive_hundred_0": ["11481872", "0", "13551033", "-116.59", "-1579851746.90", "0.00%", "84.73%", "11.61%"], "fivehundred_thousand_0": ["1097546", "0", "1178061", "-307.38", "-362110170.41", "0.00%", "93.17%", "2.66%"], "thirty_forty_0": ["11655515", "0", "16252180", "-41.79", "-679128714.78", "0.00%", "71.72%", "4.99%"], "twenty_thirty_0": ["13047413", "0", "19063738", "-28.98", "-552440785.26", "0.00%", "68.44%", "4.06%"], "fifty_seventyfive_0": ["17911966", "0", "22761515", "-78.21", "-1780153961.66", "0.00%", "78.69%", "13.09%"], "twohundred_fivehundred_0": [...'
[2017-09-20 16:36:14,479: WARNING/MainProcess] dropq_task_async
[2017-09-20 16:36:14,479: WARNING/MainProcess] 3
[2017-09-20 16:36:14,479: WARNING/MainProcess] {u'2017': {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}
[2017-09-20 16:36:14,479: WARNING/MainProcess] 2017
[2017-09-20 16:36:14,480: WARNING/MainProcess] {u'growdiff_response': {}, u'consumption': {}, u'behavior': {}, u'growdiff_baseline': {}}
[2017-09-20 16:36:14,480: WARNING/MainProcess] user mods:
[2017-09-20 16:36:14,480: WARNING/MainProcess] {u'2017': {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}
[2017-09-20 16:36:14,480: WARNING/MainProcess] first_year
[2017-09-20 16:36:14,480: WARNING/MainProcess] 2017
[2017-09-20 16:36:14,480: WARNING/MainProcess] user_reform
[2017-09-20 16:36:14,480: WARNING/MainProcess] {u'policy': {2017: {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}}
[2017-09-20 16:36:14,480: WARNING/MainProcess] {2017: {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}
[2017-09-20 16:36:14,481: WARNING/MainProcess] keywords to dropq
[2017-09-20 16:36:14,481: WARNING/MainProcess] {'start_year': 2017, 'user_mods': {u'growdiff_response': {}, u'consumption': {}, u'growdiff_baseline': {}, u'behavior': {}, u'policy': {2017: {u'_CTC_new_refund_limited': [0.0], u'_NIIT_PT_taxed': [0.0], u'_FICA_ss_trt': [0.122], u'_ID_BenefitCap_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_ALD_InvInc_ec_base_RyanBrady': [0.0], u'_EITC_indiv': [0.0], u'_ID_BenefitSurtax_Switch': [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]], u'_II_no_em_nu18': [0.0], u'_CG_nodiff': [0.0]}}, u'gdp_elasticity': {}}, 'year_n': 3}
[2017-09-20 16:36:16,234: WARNING/MainProcess] You loaded data for 2009.
[2017-09-20 16:36:16,403: WARNING/MainProcess] Tax-Calculator startup automatically extrapolated your data to 2013.
[2017-09-20 16:36:18,200: WARNING/MainProcess] You loaded data for 2009.
[2017-09-20 16:36:18,339: WARNING/MainProcess] Tax-Calculator startup automatically extrapolated your data to 2013.
[2017-09-20 16:36:20,175: WARNING/MainProcess] You loaded data for 2009.
[2017-09-20 16:36:20,278: WARNING/MainProcess] Tax-Calculator startup automatically extrapolated your data to 2013.
[2017-09-20 16:36:22,203: WARNING/MainProcess] seed=1780236380
[2017-09-20 16:36:39,155: WARNING/MainProcess] elapsed time for this run:
[2017-09-20 16:36:39,155: WARNING/MainProcess] 24.6738028526
[2017-09-20 16:36:39,321: INFO/MainProcess] Task celery_tasks.dropq_task_async[884e7d77-78cd-4914-b531-a85f561b8af3] succeeded in 24.841520078s: '{"fiscal_tot_ref": {"payroll_tax_3": "1208490938741.70", "combined_tax_3": "3092325524016.06", "ind_tax_3": "1883834585274.36"}, "pdf_bin": {"seventyfive_hundred_3": ["12992908", "0", "15556443", "-115.35", "-1794360620.31", "0.00%", "83.52%", "11.78%"], "less_than_10_3": ["16610693", "0", "21908964", "-6.99", "-153101264.39", "0.00%", "75.82%", "1.01%"], "all_3": ["133271186", "0", "177650713", "n/a", "-15226649600.23", "n/a", "n/a", "100.00%"], "hundred_twohundred_3": ["23166070", "0", "25411020", "-205.09", "-5211528740.11", "0.00%", "91.17%", "34.23%"], "thirty_forty_3": ["12578388", "0", "17673389", "-41.73", "-737520662.86", "0.00%", "71.17%", "4.84%"], "twenty_thirty_3": ["12807169", "0", "19160371", "-27.55", "-527889974.94", "0.00%", "66.84%", "3.47%"], "fifty_seventyfive_3": ["18710884", "0", "24467567", "-75.29", "-1842157259.94", "0.00%", "76.47%", "12.10%"], "twohundred_fivehundred_3": ["9092766", "0", "9575592", "-327.89", "-3139722151.91", "0.00%", "94.96%", "20.62%"], "forty_fifty_3": ["931874...'

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

Ok, it looks like everything submitted and you got results. So something went wrong between getting the results and submitting to the results page. I'm not really sure what's going on here. Most of the work from #641 was on processing the parameters and sending them to taxcalc and not the part of receiving them.

@GoFroggyRun
Copy link
Contributor Author

I tried to reset everything, but the same error persists: regardlessly, TaxBrain is not showing the result page. There's an error message reads: "Sorry! Your calculation failed. Please re-enter parameters and try again :(."

@brittainhard, do you have output on this?

@brittainhard
Copy link
Contributor

@GoFroggyRun what error message is showing below the part with "Sorry your calculation failed"?

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

@GoFroggyRun did you get the following error message at the end of your ./install_taxbrain_server.sh command

Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    import versioneer
ImportError: No module named versioneer
FAILED

@GoFroggyRun
Copy link
Contributor Author

@brittainhard: nothing. That's all what I got.

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 20, 2017

PR #655 removes some references to the versioneer.py file that was removed in #622 and #655 hasn't been merged yet.

@GoFroggyRun
Copy link
Contributor Author

GoFroggyRun commented Sep 20, 2017

@hdoupe Nope:

...
Installing taxbrain-celery-worker script to /Users/seanwang/anaconda2/envs/aei_dropq/bin

Installed /Users/seanwang/Documents/GIT/webapp-public/deploy
Processing dependencies for taxbrain-server===unknown
Finished processing dependencies for taxbrain-server===unknown
Local server installation complete!

@brittainhard
Copy link
Contributor

@GoFroggyRun did you migrate your database?

@GoFroggyRun
Copy link
Contributor Author

@brittainhard Yup.

@brittainhard
Copy link
Contributor

@GoFroggyRun what is the output from flask server when that happens?

@GoFroggyRun
Copy link
Contributor Author

GoFroggyRun commented Sep 20, 2017

@brittainhard Flask keeps repeating the following message, with a different pid each cycle:

2017-09-20 17:34:52,650 INFO exited: flask (exit status 1; not expected)
2017-09-20 17:34:53,657 INFO spawned: 'flask' with pid 53726
2017-09-20 17:34:54,659 INFO success: flask entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

@brittainhard
Copy link
Contributor

@GoFroggyRun try running all the services separately and see what is causing flask to do that.

@GoFroggyRun
Copy link
Contributor Author

Restart my laptop solves the problem. Closing. Thanks @hdoupe @brittainhard .

@brittainhard
Copy link
Contributor

@hdoupe
Copy link
Collaborator

hdoupe commented Sep 21, 2017

@brittainhard Very funny. Restarting the computer--the gut reaction of every good computer scientist when an inexplicable bug is encountered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants