Traceback (most recent call last):


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/wsgi.py", line 95, in error_handler

return app.common_static_handler(app, environ, start_response)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/wsgi.py", line 68, in static_handler

return dynamic_handler(app, environ, start_response)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/wsgi.py", line 31, in dynamic_handler

app.route.dispatch()


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/expose.py", line 265, in dispatch

route.f(**reqargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/pipeline.py", line 26, in pipe_flow

output = link.pipe.pipe(link.f, **kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/expose.py", line 426, in pipe

output = next_pipe(**kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/pipeline.py", line 26, in pipe_flow

output = link.pipe.pipe(link.f, **kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/pipeline.py", line 53, in pipe

return next_pipe(**kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/pipeline.py", line 26, in pipe_flow

output = link.pipe.pipe(link.f, **kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/pipeline.py", line 53, in pipe

return next_pipe(**kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/pipeline.py", line 26, in pipe_flow

output = link.pipe.pipe(link.f, **kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/tools/service.py", line 39, in pipe

return self.procedure(next_pipe, **kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/tools/service.py", line 30, in json

data = f(**kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/pipeline.py", line 26, in pipe_flow

output = link.pipe.pipe(link.f, **kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy_rest/helpers.py", line 23, in pipe

return next_pipe(**kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/pipeline.py", line 26, in pipe_flow

output = link.pipe.pipe(link.f, **kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy_rest/helpers.py", line 35, in pipe

self.fetch_record(kwargs)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy_rest/helpers.py", line 43, in fetch_record

).select(self.mod.model.table.ALL).first()


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/weppy/orm/objects.py", line 310, in select

return super(Set, self).select(*fields, **options)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/pydal/objects.py", line 2210, in select

return adapter.select(self.query, fields, attributes)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/pydal/adapters/base.py", line 760, in select

return self._select_aux(sql, fields, attributes, colnames)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/pydal/adapters/base.py", line 716, in _select_aux

rows = self._select_aux_execute(sql)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/pydal/adapters/base.py", line 710, in _select_aux_execute

self.execute(sql)


 "/home/stevens/.virtualenvs/near-field-scanner-web/lib/python3.6/site-packages/pydal/adapters/__init__.py", line 65, in wrap

raise ValueError(args[1])
ValueError: SELECT "Scans"."id", "Scans"."name", "Scans"."date", "Scans"."kind", "Scans"."min_frequency", "Scans"."max_frequency", "Scans"."min_frequency_unit", "Scans"."max_frequency_unit", "Scans"."min_x", "Scans"."min_y", "Scans"."min_z", "Scans"."max_x", "Scans"."max_y", "Scans"."max_z", "Scans"."pcb_filename", "Scans"."status", "Scans"."progress", "Scans"."analyzer", "Scans"."probe" FROM "Scans" WHERE (("Scans"."id" IS NOT NULL) AND ("Scans"."id" = 37));

Traceback (most recent call last):


 "/test.py", line 13, in <module>

pm.sample_prior_predictive(samples=samples)


 "//anaconda3/lib/python3.7/site-packages/pymc3/sampling.py", line 1325, in sample_prior_predictive

values = draw_values([model[name] for name in names], size=samples)


 "//anaconda3/lib/python3.7/site-packages/pymc3/distributions/distribution.py", line 369, in draw_values

size=size)


 "//anaconda3/lib/python3.7/site-packages/pymc3/distributions/distribution.py", line 463, in _draw_value

return param.random(point=point, size=size)


 "//anaconda3/lib/python3.7/site-packages/pymc3/model.py", line 43, in __call__

return getattr(self.obj, self.method_name)(*args, **kwargs)


 "//anaconda3/lib/python3.7/site-packages/pymc3/distributions/continuous.py", line 460, in random

size=size)


 "//anaconda3/lib/python3.7/site-packages/pymc3/distributions/distribution.py", line 584, in generate_samples

broadcast_shape = np.broadcast(*inputs).shape
# size of generator(size=1)
ValueError: shape mismatch: objects cannot be broadcast to a single shape
