Page 1 of 1

Python problem on Ubuntu Linux

PostPosted: Fri Feb 02, 2018 10:17 pm
by Dan Bethell
Hi,

Has anyone managed to get Fusion installed and Python working on a flavour of Ubuntu Linux?

Both pythons are installed on my system...
Code: Select all
$ python
Python 2.7.14 (default, Sep 23 2017, 22:06:14)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Code: Select all
$ python3
Python 3.6.3 (default, Oct  3 2017, 21:45:48)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

Heck, the Fusion installer even tells me it's found them...
Fusion_PythonInstallProblem.png
Fusion_PythonInstallProblem.png (68.49 KiB) Viewed 478 times

Fusion runs just fine, but when I flip to the Py2 or Py3 Console tab I get an error popup saying 'Python 2.7 not found.' and a similar message for 3.6.
Fusion_PythonInstallProblem2.png
Fusion_PythonInstallProblem2.png (14.96 KiB) Viewed 478 times


I'm running Fusion 9.0.2 and vanilla Ubuntu 17.10 (although found the same problem with 16.04). As far as I can tell the Python installation on this distro is pretty standard - do i need to set a PYTHONPATH or somesuch for Fusion to pick up Python at runtime?

Any help, much appreciated.
Dan

Re: Python problem on Ubuntu Linux

PostPosted: Mon Feb 05, 2018 10:12 pm
by Abdelrahman Magdy
I have tried to get it working, but I failed entirely.. had to move to CentOS mainly because of that, as Blackmagic insisted they don't support any other Linux distro. But keep in mind, on CentOS, I only managed to get Python2.7 to work. I am no where near doing the same with Python3, and the Blackmagic support have been totally clueless about this problem. In Fusion, it says that it needs Python3.6, but their support says that I need Python3.3. I have installed both, and I still couldn't get any of them to work.

Re: Python problem on Ubuntu Linux

PostPosted: Mon May 21, 2018 5:35 am
by gunk0001
not really concern on python3 since python2.7 is still vfx standard.

Re: Python problem on Ubuntu Linux

PostPosted: Tue May 29, 2018 4:32 pm
by Abdelrahman Magdy
gunk0001 wrote:not really concern on python3 since python2.7 is still vfx standard.

Actually, the transition to Python 3 is about to start. According to the VFX Reference Platform, software vendors are encouraged to start releasing tech review versions of their programs with Python 3 support, as the transition is going to happen in 2020.

So, it is not a bad time to start dipping your toe into Python 3. But as I said, 2.7 is working for me on Windows and CentOS, but not on Linux Mint when I last tried it.

Re: Python problem on Ubuntu Linux

PostPosted: Wed Aug 15, 2018 11:11 am
by Jimmy Christensen
I think I found out why it doesn't work in Ubuntu

First it looks for "libpython2.7.so" with `ldconfig -p`

It finds it in "/usr/lib/x86_64-linux-gnu" and then assumes that all the modules are located in "/usr/lib/x86_64-linux-gnu/python2.7" which is not the case as this is in "/usr/lib/python2.7".

If you link "/usr/lib/python2.7" to "/usr/lib/x86_64-linux-gnu/python2.7" it then has some more assumptions and tries to find the python2.7 directory in "/usr/lib/lib"