wassimj / TopologicSverchok

Topologic custom nodes for sverchok on Blender3D
GNU Affero General Public License v3.0
83 stars 18 forks source link

Why is Anaconda needed on Linux? #6

Closed scotus-49 closed 3 years ago

scotus-49 commented 3 years ago

From the setup file:

if platform == 'linux' or platform == 'linux2' or platform == 'darwin':
  conda = '/opt/anaconda3/envs'

My setup: System: Ubuntu 21.04 Blender: 2.93.0 Beta (Appimage) Blender Python version: 3.9

Why is it necessary to install Anaconda to run this addon? I have already installed topologicPy with no problems, but your init.py setup won't run without Anaconda. The setup is also looking for the /opt directory in my home directory:

FileNotFoundError: [Errno 2] No such file or directory: '/home/scotus/opt/anaconda3/envs'
wassimj commented 3 years ago

Hi @scotus-49. It is just how I set it up because sometimes the Blender python version is different from the system python version. If you know what you are doing, you can modify the init.py file to suit your environment. Do you know how to do this or do you need help?

scotus-49 commented 3 years ago

Thanks for your quick reply. I am not an expert on Blender Python and the addon system, so any help would be much appreciated.

However, checking the terminal window after starting Blender, I noticed that many of the Sverchok nodes were not available, owing to missing python packages. So I have now installed Anaconda.

Even running Blender from the command line with --python-use-system-env had made no difference. I am now looking at your guidelines for using Anaconda with Blender, but with Blender running Python 3.9.2 and Anaconda on version 3.8, and I'll have to find out how this works.

Kind regards from Berlin Francis Sim

scotus-49 commented 3 years ago

The add-on now works for me with Anaconda, on my Ubuntu 21.04 with the 2.93.0 Beta Appimage from Blender.

I made a minor alteration to the python install script to account for the location of the 'site-packages' folder in my Blenderxxx Anaconda envs folder, and manually copied the topologic-0.4-py3.9.egg file from ~/topologicbim/TopologicPy/cpython/dist. I renamed the Blender python folder in the Appimage installation setup, but did not copy over the Anaconda env Blenderxxx folder as you suggested. Activating the conda Blender environment in the terminal before starting Blender seemed to work fine.

There's still a whole list of errors coming up in the terminal, but Blender let me activate the addon, and it shows up as a submenu under Sverchok. I still have to find and install some missing libraries for Sverchok, but Anaconda makes the job a bit easier.

topologic-sverchok blender addon

Now the question is - what can I do with it?