Course 3 Week 2 Assignment Setup Issue

Graded Programming Assignment 2: Building a Data Lakehouse with AWS Lake Formation and Apache Iceberg

In Cloud 9 terminal, after the assignment download from s3, the bash script to setup the environment and initiate the jupyter notebook did not work, with errors like below (it could be a simple syntax bug but difficult for me to find out).

voclabs:~/environment $ source scripts/setup_jupyter_env.sh
: invalid option
set: usage: set [-abefhkmnptuvxBCEHPT] [-o option-name] [--] [-] [arg ...]

' doesn't match a supported format.

' doesn't match a supported format.
bash: $'\r': command not found

' doesn't match a supported format.
bash: scripts/setup_jupyter_env.sh: line 26: syntax error near unexpected token `fi'
'ash: scripts/setup_jupyter_env.sh: line 26: `fi )
: No such file or directory

' doesn't match a supported format.
bash: $'\r': command not found
bash: $'\r': command not found
: No such file or directory========================================================

' doesn't match a supported format.
bash: $'\r': command not found
bash: scripts/setup_jupyter_env.sh: line 107: unexpected EOF while looking for matching `"'
1 Like

getting the same problem in Course 2 Graded Programming Assignment 3: Testing Data Quality with Great Expectations

2 Likes

Hello @J_Guo_123
You are right. There is an issue with the setup_jupyter_env.sh file, and I have reported it. Sorry for the inconvenience. I will post an update here once it is resolved.

1 Like

Hello @gazaidi
You are right. I will report this one as well.

Hello @gazaidi and @J_Guo_123
For now, you can use the following commands to fix the file before running it.

sudo yum install dos2unix
dos2unix scripts/setup_jupyter_env.sh
3 Likes

thanks, yeah i fixed it

Thank you very much! The solution works great.

For others who may encounter the same issue, after running above dos2unix commands, the setup script is fixed, please run source scripts/setup_jupyter_env.sh as originally instructed.

Thanks.

I got the same error