CUD2V/kungfauxpandas

Trouble installing on Google colab

Opened this issue · 2 comments

I get an error when trying to install this package on Google colab. I couldn't find any missing dependencies in the error (or extended error tracing)

ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-4s8jtufx/

Any idea on what i'm doing wrong? I'm a bit new to google colab. Thanks!

We haven't setup KFP to actually be a python package yet (no setup.py file in our repo). I'm not sure if Google Colab can work with python files that need to be checked out from github but aren't a package.

I'll try to play around with it some to see if there is a way to use it in Colab.

Alternatively, I should create an issue to track creating KFP as a package for pip/conda.

@travelmail26 So I did some testing with colab. I'm guessing you tried to run something like:

! pip install -e git+https://github.com/CUD2V/kungfauxpandas#egg=kungfauxpandas

Since Kung Faux Pandas doesn't have the necessary files to be treated as a package, you have to use this repository as documented on our main README.md. Steps should be something like this:

! git clone https://github.com/CUD2V/kungfauxpandas.git
%cd kungfauxpandas/sourcecode/python/
! pip install -r requirements.txt

Then you should be able to import kungfauxpandas as shown in our sample notebooks (like this)

However, when doing the above, our requirements.txt is in direct conflict with packages already available in Colab. Additionally, it doesn't seem possible to actually create and use a new virtualenv in Colab.

I'll create 2 new issues to help with this:

  • Update requirements.txt (if no conflicts will occur)
  • Update Kung Faux Pandas to allow installation as a package.

So for now, Kung Faux Pandas doesn't work in Colab; however once the above are resolved it likely will work.