Closed sapetnioc closed 4 years ago
Another question on the same topic. How to start Axon with Python 3 ?
Because, simply using python3
lead to the same aims related error.
You basically need to have 2 compilation trees, or two build workflows: one for Python 2, and one for Python 3. This is because sip
will compile a module that is only compatible with the version of Python. You have to pass -DPYTHON_EXECUTABLE=/usr/bin/python3
as cmake_options
in bv_maker.cfg
in order to compile a compatible module…
Another possibility would be to compile a module for both Python 2 and Python 3, but this would require extensive changes to the CMake configuration…
It is what I thought. It may be necessary to make a little readme somewhere to explain how to setup a Python 3 development environment and how to use it (if there is some Python 3 specific options to run some programs).
Here is a reciepe that I have not been able to test (because I locked my BioProj account) to create a CATI build workflow for Python3.
First create a build workflow :
casa_distro create distro_source=cati_platform distro_name=python3 system=ubuntu-16.04 branch=bug_fix
And then edit the svn.secret
to put your BioProj credentials and also edit bv_maker.cfg
to add the following line :
cmake_options = -DPYTHON_EXECUTABLE=/usr/bin/python3
Then you can start to build :
casa_distro bv_maker distro=python3
I have added instructions in brainvisa-cmake doc (https://github.com/brainvisa/brainvisa-cmake/commit/178d3aa643b87a7728e8ad602fc81b84964cc96e) and added the automatic generation of docs on gh-pages (https://github.com/brainvisa/brainvisa-cmake/pull/49). Is it enough to close this issue ?
Some projects that uses pyaims (e.g. QualiCATI) cannot be run on Python 3 because of the following error :
Is there a way to work around this problem (at least with casa_distro) ?