Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1048

debian9 api python bindings built for python3 but installed in python2

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.2
    • 1.1.3
    • None
    • None
    • 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.

      root@debian9:~# python
      Python 2.7.13 (default, Jan 19 2017, 14:48:08)
      [GCC 6.3.0 20170118] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import pymcsapi
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/lib/python2.7/dist-packages/pymcsapi.py", line 21, in <module>
          _pymcsapi = swig_import_helper()
        File "/usr/lib/python2.7/dist-packages/pymcsapi.py", line 20, in swig_import_helper
          return importlib.import_module('_pymcsapi')
        File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
          __import__(name)
      ImportError: dynamic module does not define init function (init_pymcsapi)
      >>>
      root@debian9:~# cd /usr/lib/python2.7/dist-packages/
      root@debian9:/usr/lib/python2.7/dist-packages# cp pymcsapi.py _pymcsapi.so ../../python3/dist-packages/
      root@debian9:/usr/lib/python2.7/dist-packages# python3
      Python 3.5.3 (default, Jan 19 2017, 14:11:04)
      [GCC 6.3.0 20170118] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import pymcsapi
      >>>
      >>>
      

      Attachments

        Activity

          People

            dthompson David Thompson (Inactive)
            dthompson David Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.