You now have until September 15th to submit your use case or success story to the 2022 Dataiku Frontrunner Awards!ENTER YOUR SUBMISSION

Python project zip extract

muthu11
Level 2
Python project zip extract

I have my python project as a zip file. I have uploaded it to lib/python. Not sure how to extract the zip file inside the Dataiku library.

Can we extract via notebook?

How to get the library directory information?

 

0 Kudos
2 Replies
AlexT
Dataiker
Dataiker

Hi,

The libraries structure does not permit unzipping files directly there.

You can do it in a notebook with:

!unzip DATADIR/config/projects/PROJECT_KEY/lib/path/to/filename.zip 

  • Per-project library folder is in DATA_DIR/config/projects/PROJECT_KEY/lib

  • Global library folder is in DATA_DIR/lib/python

 

0 Kudos
muthu11
Level 2
Author

i have uploaded in lmy project.zip in /lib, /lib/python in 2 locations. 

tried below combinations still not able to point the exact folder,

!unzip DATADIR/config/projects/TESTEXPLORER/lib/myproject.zip

!unzip DATADIR/config/projects/TESTEXPLORER/lib/python/myproject.zip

!unzip DATADIR/config/projects/TESTEXPLORER/lib/path/python/myproject.zip

!unzip DATADIR/config/projects/TESTEXPLORER/lib/path/to/myproject.zip

getting error : 

unzip:  cannot find or open DATADIR/config/projects/TESTEXPLORER/lib/python/myproject.zip, DATADIR/config/projects/TESTEXPLORER/lib/python/myproject.zip.zip or DATADIR/config/projects/TESTEXPLORER/lib/python/myproject.zip.ZIP.

 

 

can you tell how to explore like a terminal to find the exact path?

0 Kudos