A.N.T. Landscape add-on cannot be enabled (2.79) #53537

Closed
opened 2017-12-11 03:14:42 +01:00 by Alex · 12 comments

System Information
Xubuntu (Ubuntu) 16.04, Nvidia GTX 720

Blender Version
2.79

Error:
Attempting to enable the A.N.T. Landscape add-on produces this error:

Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 331, in enable
    mod = __import__(module_name)
  File "/usr/share/blender/2.79/scripts/addons/ant_landscape/__init__.py", line 42, in <module>
    from ant_landscape import add_mesh_ant_landscape
  File "/usr/share/blender/2.79/scripts/addons/ant_landscape/add_mesh_ant_landscape.py", line 33, in <module>
    from .ant_functions import (
  File "/usr/share/blender/2.79/scripts/addons/ant_landscape/ant_functions.py", line 779, in <module>
    class Eroder(bpy.types.Operator):
  File "/usr/share/blender/2.79/scripts/addons/ant_landscape/ant_functions.py", line 937, in Eroder
    stats = Stats()
  File "/usr/share/blender/2.79/scripts/addons/ant_landscape/stats.py", line 16, in __init__
    self.reset()
  File "/usr/share/blender/2.79/scripts/addons/ant_landscape/stats.py", line 19, in reset
    self.lasttime = self._gettime()
  File "/usr/share/blender/2.79/scripts/addons/ant_landscape/stats.py", line 28, in _gettime
    m=self.process.get_cpu_times()
AttributeError: 'Process' object has no attribute 'get_cpu_times'

Reproduce it:
File > User Preferences (or CTRL + ALT + U) > Add-ons > Add Mesh > Enable Add Mesh: A.N.T.Landscape

**System Information** Xubuntu (Ubuntu) 16.04, Nvidia GTX 720 **Blender Version** 2.79 **Error:** Attempting to enable the A.N.T. Landscape add-on produces this error: ``` Traceback (most recent call last): File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 331, in enable mod = __import__(module_name) File "/usr/share/blender/2.79/scripts/addons/ant_landscape/__init__.py", line 42, in <module> from ant_landscape import add_mesh_ant_landscape File "/usr/share/blender/2.79/scripts/addons/ant_landscape/add_mesh_ant_landscape.py", line 33, in <module> from .ant_functions import ( File "/usr/share/blender/2.79/scripts/addons/ant_landscape/ant_functions.py", line 779, in <module> class Eroder(bpy.types.Operator): File "/usr/share/blender/2.79/scripts/addons/ant_landscape/ant_functions.py", line 937, in Eroder stats = Stats() File "/usr/share/blender/2.79/scripts/addons/ant_landscape/stats.py", line 16, in __init__ self.reset() File "/usr/share/blender/2.79/scripts/addons/ant_landscape/stats.py", line 19, in reset self.lasttime = self._gettime() File "/usr/share/blender/2.79/scripts/addons/ant_landscape/stats.py", line 28, in _gettime m=self.process.get_cpu_times() AttributeError: 'Process' object has no attribute 'get_cpu_times' ``` **Reproduce it:** File > User Preferences (or CTRL + ALT + U) > Add-ons > Add Mesh > Enable Add Mesh: A.N.T.Landscape
Author

Added subscriber: @GreenXenith-3

Added subscriber: @GreenXenith-3

Closed as duplicate of #52786

Closed as duplicate of #52786

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

Please check the solutions mentioned in the task (trying the official Linux build from Blender site).

If the add-on cannot be enabled try starting with --factory-startup.

If the add-on can be enabled, it points out to a corrupted saved preferences / start up files.

In cases like this, (when add-on can't be enabled) it is possible that the startup.blend and userpref.blend got corrupted, as it can happen depending when the Startup or User preferences files were saved. Usually the issue arises with developer builds or third party add-ons (add-ons not shipped with Blender).

On Linux for instance, some of the packaging for different distros can use different versions of Blender (developer builds that had issues that since then were addressed). In doubt, it's better to download the official builds as those can eliminate possible issues and are the most current (as there is a daily new version).

As some kind of guidance, when using the developer builds or trying out add-ons not shipped with Blender it's better to save the startup file without the enabled add-ons and use the user_pref file (Save User Settings) for storing their enabled state. Then if some add-on is misbehaving it's easier to address the issue by redoing the userpref with enabling add-ons one by one.

Hope that helps. If there are some further issues please feel free to comment here so we can reopen the task.

Thanks.

Please check the solutions mentioned in the task (trying the official Linux build from Blender site). If the add-on cannot be enabled try starting with **--factory-startup**. If the add-on can be enabled, it points out to a corrupted saved preferences / start up files. In cases like this, (when add-on can't be enabled) it is possible that the `startup.blend` and `userpref.blend` got corrupted, as it can happen depending when the Startup or User preferences files were saved. Usually the issue arises with developer builds or third party add-ons (add-ons not shipped with Blender). On Linux for instance, some of the packaging for different distros can use different versions of Blender (developer builds that had issues that since then were addressed). In doubt, it's better to download the official builds as those can eliminate possible issues and are the most current (as there is a daily new version). As some kind of guidance, when using the developer builds or trying out add-ons not shipped with Blender it's better to save the startup file without the enabled add-ons and use the user_pref file (Save User Settings) for storing their enabled state. Then if some add-on is misbehaving it's easier to address the issue by redoing the userpref with enabling add-ons one by one. Hope that helps. If there are some further issues please feel free to comment here so we can reopen the task. Thanks.
Author

In #53537#474819, @VukGardasevic wrote:
Please check the solutions mentioned in the task (trying the official Linux build from Blender site).

Usually the issue arises with developer builds or third party add-ons (add-ons not shipped with Blender).

it's better to download the official builds as those can eliminate possible issues and are the most current (as there is a daily new version).

As some kind of guidance, when using the developer builds or trying out add-ons not shipped with Blender

Well there's a problem with that - this is the official version, and A.N.T. landscape is shipped with Blender. using --factory-startup produced the same bug.

> In #53537#474819, @VukGardasevic wrote: > Please check the solutions mentioned in the task (trying the official Linux build from Blender site). > > Usually the issue arises with developer builds or third party add-ons (add-ons not shipped with Blender). > > it's better to download the official builds as those can eliminate possible issues and are the most current (as there is a daily new version). > > As some kind of guidance, when using the developer builds or trying out add-ons not shipped with Blender Well there's a problem with that - this *is* the official version, and A.N.T. landscape *is* shipped with Blender. using `--factory-startup` produced the same bug.
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

You sure this is the official version? unless you placed it in /usr/share your self, it kinda feels like is the version your distribution offers?

You sure this is the official version? unless you placed it in /usr/share your self, it kinda feels like is the version your distribution offers?
Author

In #53537#475254, @LazyDodo wrote:
You sure this is the official version? unless you placed it in /usr/share your self, it kinda feels like is the version your distribution offers?

Oh, huh. My bad, sorry.
Tested with one downloaded from the website, it works now :)

> In #53537#475254, @LazyDodo wrote: > You sure this is the official version? unless you placed it in /usr/share your self, it kinda feels like is the version your distribution offers? Oh, huh. My bad, sorry. Tested with one downloaded from the website, it works now :)
Member

Changed status from 'Duplicate' to: 'Archived'

Changed status from 'Duplicate' to: 'Archived'

Added subscriber: @AjiibiStephenAyodele

Added subscriber: @AjiibiStephenAyodele

mine still isn't working ..... please i really need help not just that though, my Mesh Tissue is {F3366886}also not working

mine still isn't working ..... please i really need help not just that though, my Mesh Tissue is {[F3366886](https://archive.blender.org/developer/F3366886/complain.JPG)}also not working
Member

you somehow corrupted your profile folder (possibly by installing some wonky addon).

  1. close blender

  2. rename C:\Users\yournamehere\AppData\Roaming\Blender Foundation\Blender\2.79 to
    C:\Users\yournamehere\AppData\Roaming\Blender Foundation\Blender\2.79.bak

  3. start blender, should be good as new now.

you somehow corrupted your profile folder (possibly by installing some wonky addon). 1) close blender 2) rename C:\Users\yournamehere\AppData\Roaming\Blender Foundation\Blender\2.79 to C:\Users\yournamehere\AppData\Roaming\Blender Foundation\Blender\2.79.bak 3) start blender, should be good as new now.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#53537
No description provided.