# C5W1A3 - need help with function

**URL:** <https://community.deeplearning.ai/t/c5w1a3-need-help-with-function/638130>\
**Category:** Sequence Models\
**Tags:** week-module-1, coursera-platform\
**Created:** [May 31, 2024, 3:21am UTC](https://community.deeplearning.ai/t/c5w1a3-need-help-with-function/638130 "2024-05-31T03:21:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![halibank2](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@halibank2](https://community.deeplearning.ai/u/halibank2)\
**Post date:** [May 31, 2024, 3:21am UTC](https://community.deeplearning.ai/t/c5w1a3-need-help-with-function/638130/1 "2024-05-31T03:21:27Z")

</div>

#C5W1A3

- Description:  
notebook: Improvise\_a\_Jazz\_Solo\_with\_an\_LSTM\_Network\_v4  
Hi I run notebook in _google colab_ but _it does not work_ with function:  
X, Y, n\_values, indices\_values, chords = load\_music\_utils(‘/data/original\_metheny.mid’)  
But the notebook _run ok in Jupiter_ (provided by Course).  
Can anyone explain this, Please.  
Thank you and Best regards,  
AnPham  
 ![hhh](https://global.discourse-cdn.com/dlai/original/3X/6/2/628f00dad77b172724408203411c1cb929851d11.png)

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [May 31, 2024, 3:54am UTC](https://community.deeplearning.ai/t/c5w1a3-need-help-with-function/638130/2 "2024-05-31T03:54:08Z")

</div>

I would guess that you have an incompatible version of some package installed via Colab - maybe via one of the imports in the preprocess.py file.

---

<div class="post-metadata">

**Author:** ![halibank2](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@halibank2](https://community.deeplearning.ai/u/halibank2)\
**Post date:** [May 31, 2024, 9:04am UTC](https://community.deeplearning.ai/t/c5w1a3-need-help-with-function/638130/3 "2024-05-31T09:04:35Z")

</div>

Hi Mr.TMosh,  
It helps alot, thank you so much \<33  
I checked the version used by Course:  
music21==6.5.0  
mido==1.2.9  
pydub==0.24.0  
termcolor==1.1.0

I suggest anyone who use google colab should try this to avoid conflict. Also the dtype in numpy.zeros does not accep np.bool anymore, bool should be used instead.

Thank you Mr.TMosh  
Have a good day \<3
