[MCOL-1048] debian9 api python bindings built for python3 but installed in python2 Created: 2017-11-21 Updated: 2023-10-26 Resolved: 2018-01-12 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.2 |
| Fix Version/s: | 1.1.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Thompson (Inactive) | Assignee: | David Thompson (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-25, 2018-01 |
| Description |
|
If you do a package install of mcsapi on debian9 then the python bindings are built against python3 but installed to the python2 dist-packages directory.
|
| Comments |
| Comment by David Thompson (Inactive) [ 2017-11-21 ] | ||||||||||
|
on debian 9, cmake detects pythonlibs as 3 by default even though 2.7 also installed:
| ||||||||||
| Comment by David Thompson (Inactive) [ 2017-12-08 ] | ||||||||||
|
A sort of workaround is to copy the module to the correct python 3.5 directory and use python3:
| ||||||||||
| Comment by Jens Röwekamp (Inactive) [ 2017-12-20 ] | ||||||||||
|
Should be fixed, but no compilation for both Python 2.7 and Python 3 through CMake. New ticket? | ||||||||||
| Comment by David Thompson (Inactive) [ 2017-12-20 ] | ||||||||||
|
jens.rowekamp can you add the details of what now happens which is at least usable | ||||||||||
| Comment by Jens Röwekamp (Inactive) [ 2018-01-02 ] | ||||||||||
|
When compiled in Debian9 (or any other distro) with the packet python3-dev (or equivalent) installed, _pymcsapi.so is compiled against python3 and put in /usr/lib/python3/dist-packages/. If no python3-dev can be found but libpython-dev / python2.7-dev is installed, _pymcsapi.so is compiled against python2.7. | ||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-01-12 ] | ||||||||||
|
Due to | ||||||||||
| Comment by Jens Röwekamp (Inactive) [ 2018-01-12 ] | ||||||||||
|
That's correct my |