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

which version of python? #3

Open
michelson opened this issue Mar 12, 2017 · 3 comments
Open

which version of python? #3

michelson opened this issue Mar 12, 2017 · 3 comments

Comments

@michelson
Copy link

michelson commented Mar 12, 2017

Hi Siraj , amazing work you are doing on youtube!
just have a question , I've tried to run your examples in python 3.5 but it does not work , which version of python do you recommend to run your examples ?

@mrkimkim
Copy link

I also used python 3.5 on windows Anaconda.
You have to modify original source to work with python 3.5.
Maybe original code works with 2.x.

@PandaWhoCodes
Copy link

I have uploaded a python3 version here - for anyone who needs it

@nguyenvinh0604
Copy link

I have uploaded a python3 version here - for anyone who needs it

hi, PandaWhoCodes, have you really run it? it works? i coded the same as Siraj showed on Youtube, and used your Python 3, but some errors happened, can you help check?
when i coded: "
data_fn = "original_metheny.mid"
abstract_grammars = get_musical_data(data_fn)
X,Y = get_corpus_data(abstract_grammars)"

the error is as below, if you have the codes which worked, can you help please upload? :)

thank you so much
best regards
V
"

AttributeError Traceback (most recent call last)
in
1 data = "midi/" + "original_metheny.mid"
2 abstract_grammars = get_musical_data(data_fn)
----> 3 X,Y = get_corpus_data(abstract_grammars)

~\preprocess.py in get_corpus_data(abstract_grammars)
135
136 ''' Get corpus data from grammatical data '''
--> 137 def get_corpus_data(abstract_grammars):
138 corpus = [x for sublist in abstract_grammars for x in sublist.split(' ')]
139 values = set(corpus)

~\preprocess.py in (.0)
135
136 ''' Get corpus data from grammatical data '''
--> 137 def get_corpus_data(abstract_grammars):
138 corpus = [x for sublist in abstract_grammars for x in sublist.split(' ')]
139 values = set(corpus)

AttributeError: 'collections.OrderedDict' object has no attribute 'split' "

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

4 participants