C3_W4_Lab_2_TFX_Evaluator permissions error

Hello everyone!

I have an issue in C3_W4_Lab_2_TFX_Evaluator lab where the third cell

# Create the TFX pipeline files directory
!mkdir {_pipeline_root}

# Create the dataset directory
!mkdir -p {_data_root}

gives following error:

“mkdir: cannot create directory ‘./data/census’: Permission denied”

Any ideas?


Try resetting the kernel as a first thing to do and the next thing would be to use another directory not that one if still problems persist.

Hi, thanks for the response.

Resetting the kernel did not help.

I was able to complete the lab setting

_data_root = './census/'

instead of ‘./data/census’ and after running the next cell:

# Define filename and URL
TAR_NAME = 'C3_W4_Lab_2_data.tar.gz'
DATA_PATH = f'https://storage.googleapis.com/mlep-public/course_3/week4/{TAR_NAME}'

# Download dataset
!wget -nc {DATA_PATH}

# Extract archive
!tar xvzf 'C3_W4_Lab_2_data.tar.gz'

# Delete archive
!rm {TAR_NAME}

which downloads the data and outputs the error (data.csv lies in /data/census in the tar file):

tar: ./data/census: Cannot mkdir: Permission denied
tar: ./data/census/data.csv: Cannot open: No such file or directory
tar: Exiting with failure status due to previous errors

I downloaded the '‘C3_W4_Lab_2_data.tar.gz’ file that was saved in the root folder, extracted locally data.csv and uploaded it to /census.

After that, everything worked.

I am facing the same issue. How did you upload the extracted data.csv into the /census repository which is on the server?


Assuming you have downloaded and extracted data.csv:

-in the notebook menu you select “File” → “Open…”

-The folder tree is opening. You navigate into /census that is created using

_data_root = './census/'

in the scond cell and select on the upper right side “Upload”.

-You select the data.csv file and press the blue “Upload” button to confirm the action.

-After finishing you return to the notebook by pressing “Home” on the upper and left side.