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

Problem with Installation High Sierra #38

Open
Screpach opened this issue Jan 6, 2018 · 3 comments
Open

Problem with Installation High Sierra #38

Screpach opened this issue Jan 6, 2018 · 3 comments

Comments

@Screpach
Copy link

Screpach commented Jan 6, 2018

I'm completely new in this world, but I'm Musicologist and Historically Informed Performance violin player. And I've decided to try this program with some Renaissance music. I've followed installation requirements but when I typed:
python3 deepBach.py -l 100

this message appeared:

Using TensorFlow backend.
Namespace(batch_size_train=128, dataset='', ext='', length=100, midi_file=None, name='deepbach', num_dense=200, num_iterations=20000, num_units_lstm=[200, 200], output_file='', overwrite=False, parallel=1, reharmonization=None, steps_per_epoch=500, timesteps=16, train=0, validation_steps=20)
Creating dataset
Traceback (most recent call last):
  File "deepBach.py", line 183, in <module>
    main()
  File "deepBach.py", line 97, in main
    voice_ids=[0, 1, 2, 3])
  File "/Users/screpach/DeepBach/DeepBach/data_utils.py", line 658, in initialization
    corpus.getBachChorales(fileExtensions='xml'))
AttributeError: module 'music21.corpus' has no attribute 'getBachChorales'

How can I make it work, or can you give me more detalles information about installation, please?

Installed on my comp:

MacOS: 10.13.2
Tensorflow: 1.4.1 (w/ SSE4.1, SSE4.2, AVX, AVX2, FMA) from: lakshayg/tensorflow-build
Flask: 0.12
Music21: v5.0.5a2
Keras: 2.1.2

@Ghadjeres
Copy link
Owner

Hi,
Thanks for your interest and sorry for the late answer.
The problem comes from the recent update of music21 (v5) which has removed the getBachChorales command, see http://web.mit.edu/music21/doc/moduleReference/moduleCorpusChorales.html.
You can either install the previous version of music21 or directly
replace corpus.getBachChorales by corpus.chorales.ChoraleList().
I'll fix this later.

@iooops
Copy link

iooops commented Jun 7, 2018

Seems it's not yet fixed..

@bbbmusic
Copy link

Downloading Music21 v.4 Release (4.1.0) worked on my machine.
High Sierra 10.13.6

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