AttributeError: module 'SCHAModules' has no attribute 'thermodynamic' #184
-
|
Dear developers, When I try to start a sscha calculation or import SCHAModules I get AttributeError: module 'SCHAModules' has no attribute 'thermodynamic' The compilation seems to end well, everything is installed and I can load both cellconstructor and sscha. However, the problem is in SCHAModules as it is not seeing the thermodynamic attribute: Do you have any suggestion on how to solve it? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 22 replies
-
|
Hi, yes we just received another user who reported a similar problem (issue #183 ) |
Beta Was this translation helpful? Give feedback.
-
|
I'll point out that "module thermodynamic" is in 'module_new_termodynamic.f90', so if the fortran compilation failed, there will be no module to import. |
Beta Was this translation helpful? Give feedback.
-
Dear all, I tried doing this but now the python-sscha is not compiling: INFO: gfortran:f90: SCHAModules/module_anharmonic.f90 use thermodynamic I'm attaching the install.log Davide |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Yes, I confirm the error now disappears also in my case. Davide |
Beta Was this translation helpful? Give feedback.
The patch should be (not tested yet):
sed -i 's/"SCHAModules.thermodynamic"/"Thermodynamic"/' Ensemble.pyimport sscha.Thermodynamic as Thermodynamicat the beginning of the file Ensemble.py3. Optional: Edit python-sscha/setup.py to comment the old fortran code "SCHAModules/mod…