Closed Abel-Ding closed 7 years ago
I took a quick look and it looks like somewhere between ase version 3.12.0b1 (the one I happen to have in my workstation) and the current version, they changed the signature for ase.gui.view.View from
def __init__(self, vbox, rotations):
to
def __init__(self, rotations):
Sadly, I am not familiar with how this class works on ase and/or the significance of the vbox parameter for kmos. If you need to use the viewer as soon as possible, I would recommend reverting to and older ase version for now.
An alternative quick hack that could work, but is definitely not guarranteed to is to change
View.__init__(self, self.vbox, rotations)
to
View.__init__(self, rotations)
.
If you test this and works, you could then wrap this line in a try-except block, that calls the function without the vbox arguments in case of an exception.
However, I doubt this will work. I guess @mhoffman should be able to come up with an estimate on how difficult implementing support for this newer ase version would be.
Hope this helps, Juan
Thank you for your suggestion, I will try as you said and response to you as soon as possible.
Have a nice day,
DING Haoran
Expected behavior
run thekMC model about CO adsorption and desorption according to the tutorials: A first kMC Model- the API way (http://kmos.readthedocs.io/en/latest/tutorials/index.html)
Actual behavior
I installed the kmos and the dependencies on ubuntu 16.04, and learn the tutorials "A first kMC Model-the API way"
while, after I export the xml, and try to view the model, it rised an TypeError, the error info is shown as followed:
It seems to be related to the ase.view, but I don't know how to deal with it. How could I fix this problem? Did I do something wrong in installation? Looking forward to your solution and suggestion.
Steps to reproduce the issue
1. 2. 3.
System information
kmos version
, operating system, version, python version, possibly link to model file