mhoffman / kmos

kMC on steroids: A vigorous attempt to make lattice kinetic Monte Carlo modelling easier
http://mhoffman.github.com/kmos/
GNU General Public License v3.0
53 stars 34 forks source link

TypeError when running kmos view #66

Closed stabilowl closed 6 years ago

stabilowl commented 6 years ago

When trying to visualize model with kmos view, a TypeError related to View._ init _() is returned. Seems to occur in the view.py file.

Expected behavior

Display the model

Actual behavior

Traceback (most recent call last): File "/home/williaml/.local/bin/kmos", line 21, in main() File "/home/williaml/.local/lib/python2.7/site-packages/kmos/cli.py", line 426, in main view.main(steps_per_frame=options.steps_per_frame) File "/home/williaml/.local/lib/python2.7/site-packages/kmos/view.py", line 452, in main viewer = KMC_Viewer(model, steps_per_frame=steps_perframe) File "/home/williaml/.local/lib/python2.7/site-packages/kmos/view.py", line 398, in init self.vbox, self.window) File "/home/williaml/.local/lib/python2.7/site-packages/kmos/view.py", line 174, in init View. init (self, self.vbox, rotations) TypeError: init _() takes exactly 2 arguments (3 given)

Steps to reproduce the issue

  1. Have both .so and kmc_settings.py in the directory
  2. type kmc view on terminal at the folder

System information

mieand commented 6 years ago

It sounds like a compatibility issue with the atomic simulation environment (ase). kmos is not yet compatible with the newest version, so try installing an older ase version. For me version 3.8 works.

stabilowl commented 6 years ago

Thanks! That looked like it fixed the issue. Thanks for the quick reply