mididings abort by dynamic module fail

Bug #1775109 reported by fgtsystems
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mididings (Ubuntu)
Invalid
Low
Unassigned

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

Tags: bionic
Revision history for this message
fgtsystems (fgtsystems) wrote :
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

When filing bug reports, best practice is to file against the package. The bug is upstream of Ubuntu Studio.

Changed in ubuntustudio:
status: New → Invalid
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

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

Revision history for this message
fgtsystems (fgtsystems) wrote :

Ok, I'll commit to mididings pj source.
thx!

Revision history for this message
Mathew Hodson (mhodson) wrote :

The mididings package has been removed from Ubuntu Focal.

Changed in mididings (Ubuntu):
importance: Undecided → Low
status: New → Invalid
tags: added: bionic
no longer affects: ubuntustudio
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.