You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble reading the cthyb solver from hdf5, but only when using it outside the cmake testing environment. In the cmake test phase the newly built cthyb solver is accessible as cthyb.solver_core.SolverCore while when we then install it the module path is triqs_cthyb.solver_core.SolverCore. In the wrapped solver_core_wrap.cxx the first module path is hard coded.
When I store the solver to hdf5 and try to read it again it fails complaining that:
Traceback (most recent call last):
File "h5_read_write.py", line 41, in <module>
solver_ref = A['solver']
File "/mnt/home/hstrand/apps/x86_64/triqs_unstable/lib/python2.7/site-packages/pytriqs/archive/hdf_archive.py", line 228, in __getitem__
return self.__getitem1__(key,self._reconstruct_python_objects)
File "/mnt/home/hstrand/apps/x86_64/triqs_unstable/lib/python2.7/site-packages/pytriqs/archive/hdf_archive.py", line 263, in __getitem1__
exec("from %s import %s as r_class" %(r_module_name,r_class_name)) in globals(), locals()
File "<string>", line 1, in <module>
ImportError: No module named cthyb.solver_core
How do we make these two things work together, 1. running the cmake test with different module name path and 2. getting the cpp2py wrapping to pick up the correct module path for the actual installation?
Best, Hugo
The text was updated successfully, but these errors were encountered:
Because it existed before the ctint code. The rationale for having a separately named python module in the cmake test phase is also to avoid picking up any previously installed version of the application. Right now the tests of ctint will be using whatever ctint python module that comes first in the pythonpath, rather than the one that has been built...
In the cmake test phase the newly built cthyb solver is accessible as cthyb.solver_core.SolverCore while when we then install it the module path is triqs_cthyb.solver_core.SolverCore.
In my opinion we should not use different names in the first place. I find this quite inconsistent.
I was just looking at the structure of the cthyb application. I will make a pull request for these changes in a bit.
Dear Olivier,
I am having trouble reading the cthyb solver from hdf5, but only when using it outside the cmake testing environment. In the cmake test phase the newly built cthyb solver is accessible as
cthyb.solver_core.SolverCore
while when we then install it the module path istriqs_cthyb.solver_core.SolverCore
. In the wrappedsolver_core_wrap.cxx
the first module path is hard coded.When I store the solver to hdf5 and try to read it again it fails complaining that:
How do we make these two things work together, 1. running the cmake test with different module name path and 2. getting the cpp2py wrapping to pick up the correct module path for the actual installation?
Best, Hugo
The text was updated successfully, but these errors were encountered: