Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'xrange' is not defined #12

Open
BigZeroKim opened this issue Nov 25, 2018 · 1 comment
Open

NameError: name 'xrange' is not defined #12

BigZeroKim opened this issue Nov 25, 2018 · 1 comment

Comments

@BigZeroKim
Copy link

Hello, when generator.py is run i get the following error:

Traceback (most recent call last):
File "generator.py", line 193, in
main(sys.argv)
File "generator.py", line 188, in main
generate(data_fn, out_fn, N_epochs)
File "generator.py", line 107, in generate
chords, abstract_grammars = get_musical_data(data_fn)
File "C:\Users\kem63\Documents\Workspace\deepjazz-master\preprocess.py", line 130, in get_musical_data
measures, chords = __parse_midi(data_fn)
File "C:\Users\kem63\Documents\Workspace\deepjazz-master\preprocess.py", line 51, in __parse_midi
for i in xrange(len(comp_stream)):
NameError: name 'xrange' is not defined

I am on Windows 10 Python 3.6

@TVI-BIZ
Copy link

TVI-BIZ commented Jan 14, 2019

change xrange to range
xrange - Python 2
range - Python 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants