ElectionAuditWare/audit-conductor

AJAX Error

Closed this issue · 9 comments

If I run FLASK_APP=server.py flask run, then click save, I get the following error:

image

I think this was fixed with git submodule init, right?

@nealmcb is this the same sampler error you were seeing? We're pulling in from a submodule of OpenRLA so we shouldn't need to pip install.

This is what I got:

  File "/srv/s/electionaudits/audit-conductor/server.py", line 38, in <module>
    import sampler                                            
ModuleNotFoundError: No module named 'sampler'                         

So I referred instead to my own version of sampler from the well-tested python3-port branch of https://github.com/nealmcb/rivest-sampler-tests/tree/python3-port

see nealmcb/rivest-sampler-tests#1

The submodule problem may be a red herring but do you mind trying with git submodule update --init --recursive?

@nealmcb great, I'll probably switch to your python3-port version. It looks similar to the by-hand python3 update I did on a different fork: ElectionAuditWare/OpenRLA@3041c96

Mine doesn't get fixed even after the update.

The git submodule update, at least for me, does not import Neal's version of the sampler algorithm. Rather, it's pulling from the master branch, which causes all kinds of problems. As a heads-up, I actually had to remove the rivest-sampler-tests directory and clone from the right branch with:

git clone --single-branch --branch python3-port https://github.com/nealmcb/rivest-sampler-tests.git

resolved.