aws-samples / aws-deepcomposer-samples

Other
339 stars 261 forks source link

requirements.sh is not working correctly #8

Open arrickx opened 4 years ago

arrickx commented 4 years ago

FileNotFoundError: [Errno 2] No such file or directory: './requirements.sh': './requirements.sh'

arrickx commented 4 years ago

solution

subprocess.call(['./requirements.sh'], shell=True)


even it's not showing the error, but it does not install any packages as well.


so I switch back to your initial attempts.

!conda update --all --y !pip install tensorflow-gpu==1.14.0 !pip install numpy==1.16.4 !pip install pretty_midi !pip install pypianoroll !pip install music21 !pip install seaborn !pip install --ignore-installed moviepy

atefth commented 4 years ago

FileNotFoundError: [Errno 2] No such file or directory: './requirements.sh': './requirements.sh'

Same issue, after using shell=True, pianoroll is not installed..

weisurya commented 4 years ago

I tried to add a new line to upgrade the pip into the latest version and it fixed my issue.

As simple as adding pip install --upgrade pip after conda update

desirajusantosh commented 4 years ago

ImportError: cannot import name 'Video' by running from IPython.display import Video Any resolution?

VladT-Tempest commented 4 years ago

FileNotFoundError: [Errno 2] No such file or directory: './requirements.sh': './requirements.sh'

Same issue, after using shell=True, pianoroll is not installed..

MikZdanovich commented 4 years ago

Please update requirements, remove version of numpy, some of dependencies didn't work with this old version. Sry, haven't captured a screenshot, or trace for u. And add !conda install ffmpeg -y , to solve pypianoroll issue.

s8 commented 4 years ago

Solved by changing to conda_tensorflow_p36 kernel and moving everything from the ./requirements.sh straight into the notebook this way:

import subprocess
subprocess.call(["conda update --all --y"], shell=True)
subprocess.call(["pip install tensorflow-gpu==1.14.0"], shell=True)
subprocess.call(["pip install numpy==1.16.4"], shell=True)
subprocess.call(["pip install pretty_midi"], shell=True)
subprocess.call(["pip install pypianoroll"], shell=True)
subprocess.call(["pip install music21"], shell=True)
subprocess.call(["pip install seaborn"], shell=True)
subprocess.call(["pip install --ignore-installed moviepy"], shell=True)
VladT-Tempest commented 4 years ago

It works! thx.

GregIzzo commented 4 years ago

@s8 Thanks for solving this!

Sparten-Ashvinee commented 4 years ago

Instead of using subprocess, simply running this command in jupyter notebook can also help !bash requirements.sh