kfkd-tutorial icon indicating copy to clipboard operation
kfkd-tutorial copied to clipboard

pip install -r https://raw.githubusercontent.com/dnouri/kfkd-tutorial/master/requirements-2.txt does not complete

Open tgels opened this issue 10 years ago • 7 comments

Keeps hanging at step Running setup.py install for pylearn2

tgels avatar Feb 13 '15 14:02 tgels

I encountered the exact same problem. Installation hangs at "Running setup.py install for pylearn2"...

Hope this can be fixed soon.

chialikuo avatar Feb 14 '15 12:02 chialikuo

Very weird, I tried this before and after activating virtualenv but still had the same problem. I have now installed pylearn2 manually but don't have the src for this tutorial as the installation aborted. Maybe the src for the tutorial can be installed as part3 so that if env is setup manually folks can install the tutorial on their own ...

Warm Regards,

-Nagendra Nagarajayya

-----Original Message----- From: "Chia-Li Kuo" [email protected] Sent: Saturday, February 14, 2015 4:45am To: "dnouri/kfkd-tutorial" [email protected] Cc: "tgels" [email protected] Subject: Re: [kfkd-tutorial] pip install -r https://raw.githubusercontent.com/dnouri/kfkd-tutorial/master/requirements-2.txt does not complete (#10)

I encountered the exact same problem. Installation hangs at "Running setup.py install for pylearn2"... Hope this can be fixed soon. — Reply to this email directly or view it on GitHub .

tgels avatar Feb 14 '15 16:02 tgels

I think my problem is with pylearn2. I tried to install pylearn2 on my own with no success, The installation for pylearn2 just hangs forever...

What source to you need for this tutorial? I only see "kfkd.py" in this Github repository. You might want to get the example code from Lasagne too. But what else??

chialikuo avatar Feb 15 '15 20:02 chialikuo

The following is in the file pylearn2/setup.py..

Basically it will hang forever because it is expecting an input as shown on the final line below...

I got around the issue by just following the instructions here

    print("Because Pylearn2 is under heavy development, we generally do "
          "not advice using the `setup.py install` command. Please "
          "consider using the `setup.py develop` command instead for the "
          "following reasons:\n\n1. Using `setup.py install` creates a "
          "copy of the Pylearn2 source code in your Python installation "
          "path. In order to update Pylearn2 afterwards you will need to "
          "rerun `setup.py install` (!). Simply using `git pull` to "
          "update your local copy of Pylearn2 code will not suffice. \n\n"
          "2. When using `sudo` to install Pylearn2, all files, "
          "including the tutorials, will be copied to a directory owned "
          "by root. Not only is running tutorials as root unsafe, it "
          "also means that all Pylearn2-related environment variables "
          "which were defined for the user will be unavailable.\n\n"
          "Pressing enter will continue the installation of Pylearn2 in "
          "`develop` mode instead. Note that this means that you need to "
          "keep this folder with the Pylearn2 code in its current "
          "location. If you know what you are doing, and are very sure "
          "that you want to install Pylearn2 using the `install` "
          "command instead, please type `install`.\n")

    mode = None
    while mode not in ['', 'install', 'develop', 'cancel']:
        if mode is not None:
            print("Please try again")
        mode = input("Installation mode: [develop]/install/cancel: ")

flipdazed avatar May 25 '15 09:05 flipdazed

The following is in the file pylearn2/setup.py..

Basically it will hang forever because it is expecting an input as shown below...

As shown below? Where is it expecting an input?

dnouri avatar May 26 '15 10:05 dnouri

updated to show the next line which asked for input. Just install from source.

flipdazed avatar May 27 '15 02:05 flipdazed

I install to various boxes using "pip install -r requirements.txt", so I didn't want to install from source. Instead, I forked the project to https://github.com/mashupmachine/pylearn2, changed 'mode' to '' from None and it now installs perfectly with pip. Naturally, for production, I'll change mode to 'install' in a separate branch.

slampenny avatar Oct 07 '15 20:10 slampenny