Author Topic: The ImportError: cannot import name 'DataObject'  (Read 143 times)

Qriver

  • Newbie
  • *
  • Posts: 19
The ImportError: cannot import name 'DataObject'
« on: June 07, 2018, 10:41:48 PM »
Hi everyone,
When I run the Ovito coding, the error: cannot import name 'DataObject' always exists.
How can I do about it.
Thanks!
Shuai

Alexander Stukowski

  • Administrator
  • Sr. Member
  • *****
  • Posts: 475
Re: The ImportError: cannot import name 'DataObject'
« Reply #1 on: June 08, 2018, 07:10:13 AM »
Hi Shuai,

This error is quite unusual and could be the result of a broken installation.
 
Which program version of Ovito did you install? Note that, for Windows, there also exists a zip archive with the program, which can be downloaded form the ovito.org website. This archive can be extracted in any location on your computer without installation. Maybe you want to try this one again.

-Alex

P.S.: It's not guaranteed that Ovito will work when you install it over an older installation in the same directory. It's currently recommend to remove the old version first before installing the new one.
« Last Edit: June 08, 2018, 07:12:42 AM by Alexander Stukowski »

Qriver

  • Newbie
  • *
  • Posts: 19
Re: The ImportError: cannot import name 'DataObject'
« Reply #2 on: June 08, 2018, 07:21:14 PM »
Thank you very much!