Closed jmmshn closed 2 years ago
Oops, this is my fault. I added the pytest
import in https://github.com/materialsproject/fireworks/pull/478/commits/f0b7a4779f7fdb803f3b6dc873156088c111b642. At the time, I wasn't aware of fireworks
deserialization machinery and what consequences this import would have.
Though I still don't understand why searching test files for load_objects
is even necessary. Surely the things people might want to hydrate are all in the fireworks package itself, not its tests? So I removed "fireworks.utilities.tests"
from USER_PACKAGES
in https://github.com/materialsproject/fireworks/pull/480/commits/e42fab166c91a3af41d5e9c2cba22f21a5ba0b06. I asked in https://github.com/materialsproject/fireworks/pull/480#discussion_r799779211 if this is ok to do and it appears so since @computron merged.
ok, cool so the big problem is solved! Thanks! @janosh
No one seems to know why "fireworks.utilities.tests"
was there in the first place, i.e. what the use case for serializing test objects might have been. But changing stuff without knowing leaves a bad feeling. Occurs to me I didn't ask @mkhorton who liked this PR. Any insight you could give?
@computron, whenever you have a moment, would you mind making a new version? qlaunch
doesn't work with 2.0.2 but is fixed in main
.
@computron @mkhorton can we please merge and release this?
I'm not a maintainer here, apologies (would if I could!)
hey really sorry I didn't see this, merging now!
All good, thanks for handling @computron! :)
qlaunch not working on a fresh install
It appears a
pytest
import was added in the path ofUSER_PACKAGES
https://github.com/materialsproject/fireworks/blob/51aa296dff9cd0411ad9165973dd4bc5c4a5c7aa/fireworks/fw_config.py#L20
And the part of the code that is meant to deal with the exception has a call to
traceback.print_exc(ex)
which is treating theex
exception as thelimit
parameter.https://github.com/materialsproject/fireworks/blob/635fca928777610e5933a4f197c0be024aaa82ef/fireworks/utilities/fw_serializers.py#L362
Code for
print_exc
:Full output of the error