vishnubob / python-midi

Python MIDI library
MIT License
1.49k stars 370 forks source link

midi.sequencer has no attribute SequencerHardware #135

Open novinsh opened 6 years ago

novinsh commented 6 years ago

I'm receiving this error when trying to run mididumphw.py script at scripts directory of the project:

Traceback (most recent call last):
  File "mididumphw.py", line 7, in <module>
    s = sequencer.SequencerHardware()
AttributeError: module 'midi.sequencer' has no attribute 'SequencerHardware'

This is also my installation log:

/opt/anaconda3/lib/python3.6/site-packages/setuptools/dist.py:351: UserWarning: Normalizing 'v0.2.3' to '0.2.3'
  normalized_version,
running install
running build_ext
running build
running build_py
running build_scripts
running install_lib
running install_egg_info
running egg_info
writing midi.egg-info/PKG-INFO
writing dependency_links to midi.egg-info/dependency_links.txt
writing top-level names to midi.egg-info/top_level.txt
reading manifest file 'midi.egg-info/SOURCES.txt'
writing manifest file 'midi.egg-info/SOURCES.txt'
removing '/opt/anaconda3/lib/python3.6/site-packages/midi-0.2.3-py3.6.egg-info' (and everything under it)
Copying midi.egg-info to /opt/anaconda3/lib/python3.6/site-packages/midi-0.2.3-py3.6.egg-info
running install_scripts
copying build/scripts-3.6/mididump.py -> /opt/anaconda3/bin
copying build/scripts-3.6/mididumphw.py -> /opt/anaconda3/bin
copying build/scripts-3.6/midiplay.py -> /opt/anaconda3/bin
changing mode of /opt/anaconda3/bin/mididump.py to 755
changing mode of /opt/anaconda3/bin/mididumphw.py to 755
changing mode of /opt/anaconda3/bin/midiplay.py to 755

Aditionally, I can confirm that the sequencer.py which resides at /opt/anaconda3/lib/python3.6/site-packages/midi/sequencer includes SequencerHardware class.

I'm using the forked version of the project by louisabraham. I'm running the script using python3 with conda 4.3.30

What am I missing here?

RogerLevy commented 3 years ago

Same problem here, I would also love a hint.

ycat3 commented 1 year ago

I have same kind of problem. python 3.10 I have checked #129 and the related topic "Use relative imports for the sequencer as well".