Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble installing on Google colab #4

Open
travelmail26 opened this issue Jun 12, 2019 · 2 comments
Open

Trouble installing on Google colab #4

travelmail26 opened this issue Jun 12, 2019 · 2 comments

Comments

@travelmail26
Copy link

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!

@magic-lantern
Copy link
Collaborator

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.

@magic-lantern
Copy link
Collaborator

magic-lantern commented Jun 12, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants