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

AssertionError when running samples #417

Open
liorko87 opened this issue Dec 29, 2019 · 1 comment
Open

AssertionError when running samples #417

liorko87 opened this issue Dec 29, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@liorko87
Copy link

Hi,

When I'm trying to run the powermixing app, using this command:
python3 powermixing.py -d -f ../../conf/sample.json an error raised

The error is:

2019-12-29 20:08:33,437:[misc.py:15]:[CRITICAL]: 
Exception: 
<Task finished coro=<Mpc._run() done, defined at /usr/src/HoneyBadgerMPC/honeybadgermpc/mpc.py:220> exception=AssertionError()> 
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/HoneyBadgerMPC/honeybadgermpc/ipc.py", line 141, in callback
    program_result.set_result(future.result())
  File "/usr/src/HoneyBadgerMPC/honeybadgermpc/mpc.py", line 241, in _run
    return result.result()
  File "powermixing.py", line 17, in all_secrets_phase1
    a = context.preproc.get_rand(context)
  File "/usr/src/HoneyBadgerMPC/honeybadgermpc/preprocessing.py", line 650, in get_rand
    return self._rands.get_value(context, t)
  File "/usr/src/HoneyBadgerMPC/honeybadgermpc/preprocessing.py", line 101, in get_value
    to_return, used = self._get_value(context, key, *args, **kwargs)
  File "/usr/src/HoneyBadgerMPC/honeybadgermpc/preprocessing.py", line 413, in _get_value
    assert self.count[key] >= 1
AssertionError
)

What made this error arise?

@sbellem sbellem self-assigned this Jan 2, 2020
@sbellem sbellem added the bug Something isn't working label Jan 2, 2020
@sbellem
Copy link
Collaborator

sbellem commented Jan 2, 2020

Thanks for reporting the issue @liorko87. We'll look into it as soon as possible.

sbellem added a commit to sbellem/HoneyBadgerMPC that referenced this issue Jan 7, 2020
sbellem added a commit to sbellem/HoneyBadgerMPC that referenced this issue Jan 30, 2020
sbellem added a commit to sbellem/HoneyBadgerMPC that referenced this issue Feb 26, 2020
sbellem added a commit that referenced this issue Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants