Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install Animation Nodes. #1240

Closed
OmarEmaraDev opened this issue Nov 24, 2019 · 114 comments
Closed

Can't install Animation Nodes. #1240

OmarEmaraDev opened this issue Nov 24, 2019 · 114 comments
Labels

Comments

@OmarEmaraDev
Copy link
Collaborator

OmarEmaraDev commented Nov 24, 2019

The following guide provides the installation instruction for installing Animation Nodes and the troubleshooting guide to troubleshoot your installation.

How to install Animation Nodes?

  1. Disable then uninstall any version of Animation Nodes already installed.
  2. Download a build of Animation Nodes from the Animation Nodes website.
  3. Go to User Preferences -> Add-ons.
  4. Press install and choose the build you downloaded.

Animation Nodes should now be installed and can be enabled. If you encounter any errors or unexpected behavior during the installation process, read the troubleshooting section below.

Troubleshooting

If an installation error occurred, Animation Nodes should show an error message with a description of the issue that occurred. Below, we present a number of issues the could occur and the procedure to fix them.

Can't find Animation Nodes in the add-ons list

The installed Animation Nodes build is corrupted. First delete the animation_nodes folder from the add-ons directories. See Appendix I. Then follow the installation instructions above.

There are multiple versions of Animation Nodes installed

Multiple version of Animation Nodes can't coexist. To fix this, remove all versions of Animation Nodes. You may need to manually remove the animation_nodes folder from the add-ons directories. See Appendix I. Then follow the installation instructions above.

Import Error: DLL load failed

Install vc_redist.x64 from microsoft's support center.

libpython3.x : Can't Open Shared Object File

Animation Nodes needs the python dynamic library in order to work. Install python3.x or/and libpython3.x from your package manager of choice.

Ubuntu

Ubuntu users may install libpython3.x from the deadsnakes PPA using the following commands. (Making sure to replace x with the target version.)

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update -y && sudo apt upgrade
sudo apt install libpython3.x

This build does not work at the moment

This could be caused due to a number of issue:

  • The build you are using was not built for the platform you are using. Download and install an appropriate build as described above.
  • You don't have the vc_redist.x64 library. See the section about "Import Error: DLL load failed" above.
  • You don't have the python shared libraries. See the section about "libpython3.x : Can't Open Shared Object File" above.

Animation Nodes depends on Numpy

Animation Nodes needs the numpy python module to operate. Install numpy to your python environment through your package manager or through other means. Official Blender builds have numpy installed by default, so you may also use the latest official Blender build to avoid the issue.

Animation Nodes needs at least Blender 2.80

The latest version of Animation Nodes only works with Blender 2.80. Install a newer Blender build.

Animation Nodes is built for another OS

An Animation Nodes build is built for a certain platform and will only work on this platform. Download an Animation Nodes build that is built for your platform.

There is a python version mismatch

An Animation Nodes build is built for a certain python version and will only work on this python version. The official Animation Nodes builds provided are built against the python version used by the official Blender builds. If your Blender build uses a different version, you will have to use a custom Animation Nodes build or build Animation Nodes yourself. Notice that Animation Nodes exists in the AUR for Arch users.

This is just the source code of Animation Nodes

The installed Animation Nodes build is corrupted. First delete the animation_nodes folder from the add-ons directories. See Appendix I. Then follow the installation instructions above.

Still can't install Animation Nodes

If you still can't install Animation Nodes, add a comment to this issue detailing the issue you are having and we will help you resolve your issue.

Appendix I

It is sometimes necessary to delete Animation Nodes from the file system yourself by deleting the animation_nodes folder in the add-ons directories. There are many directories in which add-ons can be installed, you have to go through all of them and remove the animation_nodes folder. The directories at listed in the Blender documentation.

@OmarEmaraDev OmarEmaraDev pinned this issue Nov 24, 2019
This was referenced Nov 27, 2019
@OmarEmaraDev
Copy link
Collaborator Author

@3DSinghVFX If you have the time, we need to debug the daily builds and see why they are not working with Ubuntu. Can you provide any information on the issue? Did the daily builds ever work on ubuntu?

@3DSinghVFX
Copy link
Contributor

Sure :) I do not remember the exact date but this problem has been happening for the end of October. Tomorrow, I'll try to install AN from the daily build on the different Blender versions 2.80 to 2.8x and report back about this issue.

@3DSinghVFX
Copy link
Contributor

@OmarEmaraDev

  1. When I try to install AN from the daily build then it gave this error during enabling in the addon menu,
    Screenshot from 2019-12-07 02-37-48

  2. Next, I replaced the test_compile.cpython-37m-x86_64-linux-gnu.so with the file from the compiled build AN on my pc. Then it gave this error,
    Screenshot from 2019-12-07 02-49-49

  3. If I replaced the compiled files in the algorithms/hashing/ with the files from the compiled build AN on my pc, then it gave this error in the file in another folder,
    Screenshot from 2019-12-07 02-54-18

It looks like there is missing python lib (libpython3.7m.so.1.0) in the online AN daily build.

@OmarEmaraDev
Copy link
Collaborator Author

Can you try installing the libpython3.7 package then? Looking at an installation of Ubuntu 19.04, I can see the following files:

20191207-122031

What is the default system python in Ubuntu 19.04?

@3DSinghVFX
Copy link
Contributor

@OmarEmaraDev I have installed python3.7 (which that libpython3.7) then daily online build of AN worked without any error.

But I do not understand this problem. Does the daily online build of AN's lib path set to /usr/lib and the AN compiled on my pc with anaconda has lib path to lib-directory of the anaconda?

@OmarEmaraDev
Copy link
Collaborator Author

OmarEmaraDev commented Dec 7, 2019

@3DSinghVFX Is libpython3.7 a dependency of python3.7? Also, is python3.7 readily available from the official Ubuntu repository?

I don't fully understand the issue as well, but maybe the linker added the directory to the rpath of the library.

@3DSinghVFX
Copy link
Contributor

Yes, libpython3.7 comes with python3.7. I do not know, maybe the latest version (18.04 or higher) of Ubuntu comes with python3.7 or python3.8.

@OmarEmaraDev
Copy link
Collaborator Author

Ok. Thanks for helping with this! We will add that to the installation guide until we figure out a way to statically link Animation Nodes.

@3DSinghVFX
Copy link
Contributor

Okay.

@enzyme69
Copy link

enzyme69 commented Dec 20, 2019

Trying to update Animation Nodes from master zip, remove the old, bring the new, and after installing the module, cannot see it under addon list. What's wrong with Animation Nodes add-on installation, it seems problematic :(

I have Blender 2.81 and 2.82 alpha in separate folder. Trying to make this latest version running on Blender 2.82 alpha.

@3DSinghVFX
Copy link
Contributor

Hi @enzyme69
From where you download the master zip file? I think you have installed the source code of AN by mistake. You can download the latest AN build zip file from https://animation-nodes.com/ or https://github.com/JacquesLucke/animation_nodes/releases

@limkork
Copy link

limkork commented Feb 2, 2020

So i am running 2.81, on windows 10, with AN downloaded from animation-nodes.com and i also have the latest vc_redist, and this is the error message i get when i try to activate AN after i instal the addon.

" bpy.data.window_managers["WinMan"].addon_search = "ani"
bpy.context.space_data.bookmarks_active = 1
Modules Installed (animation_nodes) from 'E:\Design\Resources\Blender Resources\Add+Ons\animation_nodes_v2_1_windows_py37.zip' into 'C:\Users\lasse\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons'
Traceback (most recent call last):
File "E:\Apps\Blender\2.81\scripts\modules\addon_utils.py", line 351, in enable
mod = import(module_name)
File "C:\Users\lasse\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\animation_nodes_init_.py", line 166, in
auto_load.init()
File "C:\Users\lasse\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\animation_nodes\auto_load.py", line 23, in init
modules = get_all_submodules(Path(file).parent)
File "C:\Users\lasse\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\animation_nodes\auto_load.py", line 51, in get_all_submodules
return list(iter_submodules(directory, directory.name))
File "C:\Users\lasse\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\animation_nodes\auto_load.py", line 55, in iter_submodules
yield importlib.import_module("." + name, package_name)
File "E:\Apps\Blender\2.81\python\lib\importlib_init_.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\lasse\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\animation_nodes\libs\FastNoiseSIMD_init
.py", line 1, in
from . node_base import Noise3DNodeBase
File "C:\Users\lasse\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\animation_nodes\libs\FastNoiseSIMD\node_base.py", line 6, in
from . wrapper import (
ImportError: DLL load failed: module not found.

bpy.context.area.ui_type = 'INFO' "

@OmarEmaraDev
Copy link
Collaborator Author

@limkork Are you sure you have the vc_redist.x64 2019 one?

@limkork
Copy link

limkork commented Feb 4, 2020

yes, I just double-checked and downloaded it again, same problem :(

@limkork
Copy link

limkork commented Feb 8, 2020

quick update, i got it working, i did two things:

one, i went in to C/appdata/blender/addons and removed the AnimationNodes folder from there, and i also redownloaded vc_redist for the third time, but this time i installed as administrator.

Im not sure which one of those cracked it, but at least it works!

@eTaernis
Copy link

Can't enable the addon (git 9d39fa7) in Blender 2.83 alpha:

Traceback (most recent call last):
File "/home/etaernis/blender-git/build_linux/bin/2.83/scripts/modules/addon_utils.py", line 330, in enable
importlib.reload(mod)
File "/home/etaernis/blender-git/build_linux/bin/2.83/python/lib/python3.8/importlib/init.py", line 169, in reload
_bootstrap._exec(spec, module)
File "", line 604, in _exec
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/etaernis/.config/blender/2.83/scripts/addons/animation_nodes/init.py", line 166, in
auto_load.init()
File "/home/etaernis/.config/blender/2.83/scripts/addons/animation_nodes/auto_load.py", line 23, in init
modules = get_all_submodules(Path(file).parent)
File "/home/etaernis/.config/blender/2.83/scripts/addons/animation_nodes/auto_load.py", line 51, in get_all_submodules
return list(iter_submodules(directory, directory.name))
File "/home/etaernis/.config/blender/2.83/scripts/addons/animation_nodes/auto_load.py", line 55, in iter_submodules
yield importlib.import_module("." + name, package_name)
File "/home/etaernis/blender-git/build_linux/bin/2.83/python/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/etaernis/.config/blender/2.83/scripts/addons/animation_nodes/nodes/gpencil/gp_frame_from_strokes.py", line 5, in
from ... data_structures import GPFrame
ImportError: cannot import name 'GPFrame' from 'animation_nodes.data_structures' (/home/etaernis/.config/blender/2.83/scripts/addons/animation_nodes/data_structures/init.py)

@OmarEmaraDev
Copy link
Collaborator Author

@eTaernis I can't replicate the issue. Can you manually remove the animation_nodes folder in /home/etaernis/.config/blender/2.83/scripts/addons/ then reinstall the addon?

@eTaernis
Copy link

eTaernis commented Feb 23, 2020

@OmarEmaraDev That did not work, so I deleted everything, re-cloned the repo and compiled, now it works - thank you! git status did not show any problems, but it seems like there was something wrong with extranodes - sorry, my bad.

@OmarEmaraDev
Copy link
Collaborator Author

@GoldenAdrien That's probably because that build is for x86 Mac. You need an Arm build for the M1 Mac. There is an official arm build here: https://animation-nodes.com/#download

@GoldenAdrien
Copy link

What is weird is that it was working until it randomly corrupted yesterday

@MetalAdvatar
Copy link

Hi, I can't get the Animation Nodes to install on Blender 3.1.2 at all (Intel based Mac OS12.4) https://animation-nodes.com/#download. The reason seems be this version of Blender uses Python 3.10.2 and the latest Animation Nodes only supports Python 3.9.7. An error message shows on attempt to install.

Is there a version in development?
A number of 3rd party add ons seem reliant on this AN add on, and I've got stuck.

Screenshot 2022-06-08 at 15 29 08

@OmarEmaraDev
Copy link
Collaborator Author

@MetalAdvatar The "Latest" version in the download section uses 3.10, so this should work. You probably downloaded the LTS version, which is 3.9.

@MetalAdvatar
Copy link

Thank you Omar! That sorted it. I was trying to install the the LTS version.

It was just a UX issue from the website, it looked like there were only 2 downloads under "Latest", although I should have twigged there were actually 3 download buttons.

PS. Sorry I only notice this discussion was actually closed after commenting, but thank you for your reply. That was most helpful.

@AssezAC
Copy link

AssezAC commented Sep 1, 2022

@OmarEmaraDev @MetalAdvatar

Hey hello !

I tried installing it today and I got a different message since 3.10 isn't the issue anymore.

Capture d’écran 2022-09-01 à 19 20 43

Appreciate any help

<3

@OmarEmaraDev
Copy link
Collaborator Author

@AssezAC I am guessing you are on MacOS. Are you on x86 or an Arm one? Did you make sure to download the appropriate version for Mac?

@AssezAC
Copy link

AssezAC commented Sep 2, 2022

@OmarEmaraDev I'm on an M1 so ARM right ? I couldn't find any choice, just the "latest" button which is 2.3 I guess...

@OmarEmaraDev
Copy link
Collaborator Author

@AssezAC Yes, you want the ARM one. However, the latest version is only x86 for now. The only official build for ARM is the LTS one for 2.93.
You can, however, compile it yourself or use builds created by other users. See #1836.

@AssezAC
Copy link

AssezAC commented Sep 2, 2022

@OmarEmaraDev You sir are a lifesaver. Thank you so much and sorry I couldn't find it by myself !

@Veraellyunjie
Copy link

Operating system - OpenBSD 7.1

> python3 setup.py help
Traceback (most recent call last):
  File "/tmp/animation nodes/animation_nodes-master/setup.py", line 19, in <module>
    from _setuputils.generic import *
  File "/tmp/animation nodes/animation_nodes-master/_setuputils/generic.py", line 17, in <module>
    raise Exception("unknown OS")
Exception: unknown OS

running ./setup.py help freezes display - GUI restart needed
running ./setup.py help from tty:

> ./setup.py help
import: unable to open X server `' @ error/import.c/ImportImageCommand/347.
import: unable to open X server `' @ error/import.c/ImportImageCommand/347.
import: unable to open X server `' @ error/import.c/ImportImageCommand/347.
import: unable to open X server `' @ error/import.c/ImportImageCommand/347.
import: unable to open X server `' @ error/import.c/ImportImageCommand/347.
./setup.py[8]: syntax error: `(' unexpected

@OmarEmaraDev
Copy link
Collaborator Author

@Veraellyunjie Looks like we don't support OpenBSD, not sure if that requires any special handing somewhere or can just be enabled. The last errors are because you are executing the python script as a shell script, which invokes the imagemagick import program.

Can you open a separate issue for OpenBSD support or submit a patch if you can?

@Rochichi
Copy link

Hello, I'm sorry for sending this in but, I have a few questions. First I'm running the M1 mac desktop and I looking to do a walk cycle and tried mixamo and tried to add a few animations together so I could walk, stop, and turn around but, for some reason all the methods I've found on YouTube don't work on my Mac. I thought about downloading Blender on the arm (Windows 11) but, I didn't thnk it would work. Any ideas? Again I am sorry for asking (I am noob)

@OmarEmaraDev
Copy link
Collaborator Author

@Rochichi Are you asking specifically about Animation Nodes or Blender?
For Blender, just download the "Apple Silicon" image from here. https://builder.blender.org/download/daily/

@marfa0off
Copy link

Hello! Newest Blender version (3.5) + Mac M1 Pro + animation_nodes_v2_3_macOS_py310.zip =
Screenshot 2023-04-11 at 13 20 13

Please help:) Isn't that version compatible with arm (as you wrote above about similar issue)?

@OmarEmaraDev
Copy link
Collaborator Author

OmarEmaraDev commented Apr 18, 2023

@marfa0off Only the v2.2 version is supported on ARM. https://animation-nodes.com/#download

@3dcal
Copy link

3dcal commented Apr 27, 2023

Hi,
I tried to install AN 2.3.0 in Blender 3.5, but get this error: “numpy.core.multiarray failed to import”.
Numpy is included in 3.5, so maybe I should use a different version of Blender?
INSTALLERROR

@Rochichi
Copy link

Rochichi commented Apr 27, 2023 via email

@3dcal
Copy link

3dcal commented Apr 27, 2023 via email

@OmarEmaraDev
Copy link
Collaborator Author

@3dcal Did you attempt to install numpy manually? This seems like a corrupt install.
Does executing import aud in Blender's python console has the same issue?

@3dcal
Copy link

3dcal commented Apr 27, 2023 via email

@3dcal
Copy link

3dcal commented Apr 27, 2023

I've tried older versions of Blender, including 2.83 LTS, 2.9, 3.0, but each one gives an error, "Python version mismatch...AN is compiled for Python 3.10.10"

I checked Blender 3.5 uses 3.10.9.
If "AN is compiled for Python 3.10.10", which Blender version can I use to install AN on Windows?

pythonmismatch

@3dcal
Copy link

3dcal commented Apr 28, 2023

Success!
I went back to your download page, and am using AN 2.2 with Blender 2.93.3....
it installed no problem.
Thanks! 😉👍

@VisualisingOne
Copy link

VisualisingOne commented Nov 20, 2023

Hello guys!
I am new here, so please have some patience with me.
I have created some Blender models and like to bring them to life with Animation Nodes. I have watched multiple tutorials on youtube on installing the files and it looks straightforward.

In my case when installing there is always an error pop up message.
I have tried to download multiple different versions of AN, updated my Blender and Python and tried error solving with ChatGPT. Unfortunately my skills are at this stage not enough and I am seeking for your support.

Below are the current versions I am using and the error message.

How can this issue be fixed?


Mac OS 13.3.1
Blender Version 4.0.1 (4.0.1 2023-11-17)
Animation Nodes v2.2 for Blender 2.93 LTS (ARM)
Python 3.11.5


Traceback (most recent call last):
File "/Volumes/Blender/Blender.app/Contents/Resources/4.0/scripts/modules/addon_utils.py", line 364, in enable
mod = importlib.import_module (module_name)
File "/Volumes/Blender/Blender.app/Contents/Resources/4.0/python/lib/python3.10/importlib/_init_py", line 126, in import_module return _bootstrap._gcd_import (name [level:], package, level)
File "‹frozen importlib._bootstraps", line 1050, in _ged_import File "‹frozen importlib._bootstrap>", line 1027, in _find_and_load
File "", line 1006, in _find_and_load _unlocked
File "<frozen importlib._bootstrap›", line 688, in _load_unlocked
File "«frozen importlib._bootstrap_external»", line 883, in exec_module File "", line 241, in _call_with_frames_removed
File "/Users/XXX/Library/Application Support/Blender/4.0/scripts/addons/animation_nodes-3/_init_py", line 52, in raise Exception(message)

@OmarEmaraDev
Copy link
Collaborator Author

@VisualisingOne It seems the problem is that your director name is not called animation_nodes. If you install by exacting manually, you need to make sure the directory is named that way. Otherwise, just install as a zip.

Regardless, AN v2.2 will not work with 4.0. You need the latest version, and we unfortunately do not provide latests builds for ARM. So you will need to compile it yourself, see #1926.
Or try to use a build from the community, like #1887 (comment). But those seem to be for Python 3.10 and are a bit old.

@VisualisingOne
Copy link

@OmarEmaraDev Cheers for the good instructions!
I linked up with a buddy and we got AN build with #1926.

You a G for the quick response! Have a good one!

@lehtis
Copy link

lehtis commented Feb 19, 2024

Blender 4.0.2 gives Python mismatch error with latest AN (2.3v), Blender build uses 3.10.13., when AN uses 3.11.7.

@OmarEmaraDev
Copy link
Collaborator Author

@lehtis Find a py310 build from here. https://github.com/JacquesLucke/animation_nodes/releases/tag/master-cd-build

@lehtis
Copy link

lehtis commented Feb 20, 2024

@lehtis Find a py310 build from here. https://github.com/JacquesLucke/animation_nodes/releases/tag/master-cd-build

Thank you very much, works now! :)

Would be handy if there would be link on homepage under "download".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests