rtmonoaudio2midi icon indicating copy to clipboard operation
rtmonoaudio2midi copied to clipboard

raw

Open grinvaldsjanis opened this issue 5 years ago • 7 comments

NameError: name 'raw_input' is not defined

grinvaldsjanis avatar Jul 24 '19 12:07 grinvaldsjanis

AttributeError: module 'fluidsynth' has no attribute 'Synth'

grinvaldsjanis avatar Jul 24 '19 12:07 grinvaldsjanis

Hi, I'm getting the same error message as the previous comment. When I try to run synth.py, I get AttributeError: module 'fluidsynth' has no attribute 'Synth'. Which version of fluidsynth you are using? Thanks in advance!

vteneva avatar Nov 08 '19 10:11 vteneva

I couldn't fix second error on MacOS, but when used fluidsynth from Mingus library, it worked successfully http://bspaans.github.io/python-mingus/doc/wiki/tutorialFluidsynth.html. Here's PR https://github.com/aniawsz/rtmonoaudio2midi/pull/4

CyxouD avatar Nov 27 '19 17:11 CyxouD

@grinvaldsjanis I think first error happens because your use Python3 instead of Python2

CyxouD avatar Nov 27 '19 17:11 CyxouD

@grinvaldsjanis I'm not 100% sure but it seems that you want to run python 2.x code via python3, there's no raw_input in python3, simply replace it with 'input', or run it with python 2.x

ytneu avatar May 02 '20 17:05 ytneu

pip uninstall pyfluidsynth
pip install -Iv https://files.pythonhosted.org/packages/52/b0/239ec6c909d3902108824bd2fe6859b7cd51bf7a5fbe125df826fd991944/pyFluidSynth-1.3.0.tar.gz

for python 3.8 Note: using environments is suggested

mohammadihabib avatar Feb 26 '21 23:02 mohammadihabib

Traceback (most recent call last): File "C:\Users\body\Downloads\rtmonoaudio2midi-master\rtmonoaudio2midi-master\audiostream.py", line 6, in from past.builtins import raw_input, xrange File "C:\Users\body\Downloads\rtmonoaudio2midi-master\venv\Lib\site-packages\past\builtins_init_.py", line 43, in from past.builtins.noniterators import (filter, map, range, reduce, zip) File "C:\Users\body\Downloads\rtmonoaudio2midi-master\venv\Lib\site-packages\past\builtins\noniterators.py", line 24, in from past.types import basestring File "C:\Users\body\Downloads\rtmonoaudio2midi-master\venv\Lib\site-packages\past\types_init_.py", line 25, in from .oldstr import oldstr File "C:\Users\body\Downloads\rtmonoaudio2midi-master\venv\Lib\site-packages\past\types\oldstr.py", line 5, in from collections import Iterable ImportError: cannot import name 'Iterable' from 'collections' (C:\Users\body\AppData\Local\Programs\Python\Python311\Lib\collections_init_.py)

bebo609 avatar Feb 14 '23 23:02 bebo609