Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
tgels opened this issue Feb 13, 2015 · 7 comments

Comments

@tgels
Copy link

tgels commented Feb 13, 2015

Keeps hanging at step Running setup.py install for pylearn2

@tgels tgels changed the title pip install -r https://raw.githubusercontent.com/dnouri/kfkd-tutorial/master/requirements-2.txt does ot complete pip install -r https://raw.githubusercontent.com/dnouri/kfkd-tutorial/master/requirements-2.txt does not complete Feb 13, 2015
@chialikuo
Copy link

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

Hope this can be fixed soon.

@tgels
Copy link
Author

tgels commented Feb 14, 2015

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" notifications@github.com
Sent: Saturday, February 14, 2015 4:45am
To: "dnouri/kfkd-tutorial" kfkd-tutorial@noreply.github.com
Cc: "tgels" nnagarajayya@ntangle.com
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 .

@chialikuo
Copy link

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??

@dnouri dnouri closed this as completed in 3b659ff Feb 19, 2015
@flipdazed
Copy link

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: ")

@dnouri
Copy link
Owner

dnouri commented May 26, 2015

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?

@flipdazed
Copy link

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

@slampenny
Copy link

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.

@dnouri dnouri reopened this Oct 7, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants