← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 1775109] Re: mididings abort by dynamic module fail

 

Probably needs to be repackaged from GitHub source, though project seems
to be largely unmaintained. Last commit was November 16, 2015. Issue
seems to be related to this upstream bug:
https://github.com/dsacre/mididings/issues/26

** Bug watch added: github.com/dsacre/mididings/issues #26
   https://github.com/dsacre/mididings/issues/26

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to The Ubuntu Studio Project.
Matching subscriptions: UbuntuStudio Bugs
https://bugs.launchpad.net/bugs/1775109

Title:
  mididings abort by  dynamic module fail

Status in Ubuntu Studio:
  Invalid
Status in mididings package in Ubuntu:
  New

Bug description:
  when start mididings, then abort by "dynamic module does not define
  error"

  *Exec result:=================================
  $ mididings -f someLiveSetting.py
  Traceback (most recent call last):
    File "/usr/bin/mididings", line 4, in <module>
      __import__('pkg_resources').run_script('mididings==2015+r605d841', 'mididings')
    File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 658, in run_script
      self.require(requires)[0].run_script(script_name, ns)
    File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1438, in run_script
      exec(code, namespace, namespace)
    File "/usr/lib/python2.7/dist-packages/mididings", line 20, in <module>
      import mididings
    File "/usr/lib/python2.7/dist-packages/mididings/__init__.py", line 13, in <module>
      import _mididings
  ImportError: dynamic module does not define init function (init_mididings)
  *Exec result:=================================

  this is compile option bug.
  I fixed and recompile at setup.py in mididngs source, then work fine.

  
  *Fix setup.py:===============================
  at line 115, in function my_customize_compiler,
  commentout compile option "-fvisibility=hidden"

      105 def my_customize_compiler(compiler):
      106     retval = distutils_customize_compiler(compiler)
      107     try:
      108         # -Wstrict-prototypes is not valid for C++
      109         compiler.compiler_so.remove('-Wstrict-prototypes')
      110         # immediately stop on error
      111         compiler.compiler_so.append('-Wfatal-errors')
      112         # some options to reduce the size of the binary
      113         compiler.compiler_so.remove('-g')
      114         compiler.compiler_so.append('-finline-functions')
      115         #compiler.compiler_so.append('-fvisibility=hidden') #<<<<< need comment out!!
      116     except (AttributeError, ValueError):
      117         pass
      118     return retval



  *Platform=======================
  Kernel:  4.15.0-22-lowlatency
  dist: Ubuntu 18.04 LTS
  package: mididings, python-mididings
  python-version:
   python2.7 as 2.7.15-rc1-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntustudio/+bug/1775109/+subscriptions


References