{
  "id": 4480,
  "title": "Pylearn2 install",
  "url": "/competitions/challenges-in-representation-learning-the-black-box-learning-challenge/discussion/4480",
  "author_name": "",
  "post_date": "2013-05-01T22:48:43.803Z",
  "votes": null,
  "comment_count": 14,
  "views": 14718,
  "content": "<p>&nbsp;</p>\r\n<p>After see the results of R NN packages I decided give a chance to pylearn2.</p>\r\n<p>I've installed anaconda distribution and theano.</p>\r\n<p>Next step, install pylearn2.</p>\r\n<p>I found this:</p>\r\n<p><span style=\"line-height:1.4em\">&quot;Download and installation</span></p>\r\n<p>No PyPI download yet. You must checkout the version in github for bleeding-edge/development version, available via:</p>\r\n<div class=\"x_highlight-bash\">\r\n<div class=\"x_highlight\">\r\n<pre>git clone git://github.com/lisa-lab/pylearn2.git\r\n</pre>\r\n</div>\r\n</div>\r\n<p>You also need to set your PYLEARN2_DATA_PATH variable. On linux, the best way to do this is to add a line to your .bashrc file:</p>\r\n<div class=\"x_highlight-bash\">\r\n<div class=\"x_highlight\">\r\n<pre><span class=\"x_nb\">export </span><span class=\"x_nv\">PYLEARN2_DATA_PATH</span><span class=\"x_o\">=</span>/data/lisa/data\r\n</pre>\r\n</div>\r\n</div>\r\n<p>Note that this is only an example, and if you are not in the LISA lab, you will need to choose a directory path that is valid on your filesystem. Simply choose a path where it will be convenient for you to store datasets for use with Pylearn2.&quot;</p>\r\n<p>This seems nearly cryptic for me. I haven't git account and don't interested by the moment.</p>\r\n<p>I downloaded the project as zip and copied to the anaconda directory.</p>\r\n<p>I work with W7 64. What do I need to do with&nbsp;PYLEARN2_DATA_PATH variable? Include in the windows PATH?</p>\r\n<p>After that, how register/install pylearn2? PyYAML,PIL...</p>\r\n<p>The doc isn't precisely clear for a first approach to python.</p>\r\n<p><span style=\"line-height:1.4em\">Any help is welcome!</span></p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
  "messages": [
    {
      "id": "23780",
      "postDate": "05/01/2013 22:48:43",
      "content": "<p>&nbsp;</p>\r\n<p>After see the results of R NN packages I decided give a chance to pylearn2.</p>\r\n<p>I've installed anaconda distribution and theano.</p>\r\n<p>Next step, install pylearn2.</p>\r\n<p>I found this:</p>\r\n<p><span style=\"line-height:1.4em\">&quot;Download and installation</span></p>\r\n<p>No PyPI download yet. You must checkout the version in github for bleeding-edge/development version, available via:</p>\r\n<div class=\"x_highlight-bash\">\r\n<div class=\"x_highlight\">\r\n<pre>git clone git://github.com/lisa-lab/pylearn2.git\r\n</pre>\r\n</div>\r\n</div>\r\n<p>You also need to set your PYLEARN2_DATA_PATH variable. On linux, the best way to do this is to add a line to your .bashrc file:</p>\r\n<div class=\"x_highlight-bash\">\r\n<div class=\"x_highlight\">\r\n<pre><span class=\"x_nb\">export </span><span class=\"x_nv\">PYLEARN2_DATA_PATH</span><span class=\"x_o\">=</span>/data/lisa/data\r\n</pre>\r\n</div>\r\n</div>\r\n<p>Note that this is only an example, and if you are not in the LISA lab, you will need to choose a directory path that is valid on your filesystem. Simply choose a path where it will be convenient for you to store datasets for use with Pylearn2.&quot;</p>\r\n<p>This seems nearly cryptic for me. I haven't git account and don't interested by the moment.</p>\r\n<p>I downloaded the project as zip and copied to the anaconda directory.</p>\r\n<p>I work with W7 64. What do I need to do with&nbsp;PYLEARN2_DATA_PATH variable? Include in the windows PATH?</p>\r\n<p>After that, how register/install pylearn2? PyYAML,PIL...</p>\r\n<p>The doc isn't precisely clear for a first approach to python.</p>\r\n<p><span style=\"line-height:1.4em\">Any help is welcome!</span></p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23781",
      "postDate": "05/01/2013 23:07:57",
      "content": "<p>You don't need a github account to clone from the github URL, but you do need git.</p>\r\n<p>Where did you get the zip file from? I don't know what that is.</p>\r\n<p>I don't know anything about Windows, but here is a tutorial on environment variables in Windows 7 that I found with Google:</p>\r\n<p>http://www.itechtalk.com/thread3595.html</p>\r\n<p>You don't need to do anything special with pylearn2 to register or install it, other than make sure it's somewhere your python interpreter can find it.</p>\r\n<p>What is anaconda? That's not something I use. I looked it up on wikipedia and it says it's the installer for Red Hat, but that doesn't make any sense in this context.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23783",
      "postDate": "05/01/2013 23:18:05",
      "content": "<p>Thank you, Ian,</p>\r\n<p>AnacondaCE, a Python distribution recommended for install theano in Windows:</p>\r\n<p><a href=\"http://deeplearning.net/software/theano/install.html#windows-anaconda\">http://deeplearning.net/software/theano/install.html#windows-anaconda</a></p>\r\n<p>I get the zip file from the oficial git site (the cloud icon with 'ZIP')</p>\r\n<p><a href=\"https://github.com/lisa-lab/pylearn2\">https://github.com/lisa-lab/pylearn2</a></p>\r\n<p>I'm going to include my pylearn2 path in th windows path enviroment.</p>\r\n<p>EDIT. Seems my spyder IDE finds pylearn2.</p>\r\n<p>I found theano dir in c:/Anaconda/lib/site-packages/theano so I copied pylearn2 dir in&nbsp;</p>\r\n<p>c:/Anaconda/lib/site-packages/pylearn2 and spyder found it without need add the dir to the windows path! (Probably this is trivial but I haven't read anywhere).</p>\r\n<p>It's too late. Tomorrow will continue.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23784",
      "postDate": "05/01/2013 23:52:28",
      "content": "<p>Hi Ian</p>\r\n<p>I'm also trying to install pylearn2 on a Windows 7 machine, also with cygwin installed.&nbsp; I unzipped the source into the</p>\r\n<p>&nbsp;&nbsp; /cygdrive/c/Python27/Lib/pylearn2-master</p>\r\n<p>directory and tried to run the setup.py script.&nbsp; I get the following error:</p>\r\n<p><br>\r\n$ python setup.py install<br>\r\nTraceback (most recent call last):<br>\r\n&nbsp; File &quot;setup.py&quot;, line 3, in &lt;module&gt;<br>\r\n&nbsp;&nbsp;&nbsp; from Cython.Distutils import build_ext<br>\r\nImportError: No module named Cython.Distutils</p>\r\n<p>Any ideas about what could be wrong?&nbsp; I've (re?)installed Cython but it made no difference.</p>\r\n<p>Thanks</p>\r\n<p>John</p>\r\n<p>&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23785",
      "postDate": "05/01/2013 23:54:17",
      "content": "<p>Don't bother running setup.py, just put pylearn2 somewhere on your PYTHONPATH. Very few features use cython and they'll raise an error message telling you if you try to use one. I'm pretty sure there are literally only two features that use it.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23800",
      "postDate": "05/02/2013 08:59:09",
      "content": "<p>Thanks for that Ian.&nbsp; I also had another issue with setting up PYTHONPATH.&nbsp; I had Windows style directory names and was trying to run from a cygwin terminal which didn't work.&nbsp; Fixed that and now the make_dataset.py script runs far enough to tell that I\r\n have not downloaded the data!</p>\r\n<p>I'll get the data and I expect it'll all be OK.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23835",
      "postDate": "05/02/2013 21:11:04",
      "content": "<p>My first model in python with pylearn2 is running!</p>\r\n<p>I obtained an compiling error:&nbsp;nvcc fatal : Cannot find compiler 'cl.exe' in PATH</p>\r\n<p>but after it the code is running.</p>\r\n<p>I'll try to fix the error. Any tip?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23845",
      "postDate": "05/02/2013 23:47:36",
      "content": "<p>My guess is that you're running with theano configured to use gpu (&quot;device&quot; set to &quot;gpu&quot; in either your .theanorc file or THEANO_FLAGS environment variable) but you don't have the CUDA developer tools installed so theano isn't able to compile the GPU code.\r\n Does that sound like it could be the problem? If so, either just run on CPU, or if you have a GPU, install CUDA and try again.</p>\r\n<p>Another possibility is that you have CUDA installed but theano can't find it.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23890",
      "postDate": "05/04/2013 12:24:51",
      "content": "CUDA for win expect Visual C. Express edition is good enough. Then try ...theano/misc/check_blas.py. When you make theano works, pylearn2 works like a charm. (http://deeplearning.net/software/theano/install.html)",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23902",
      "postDate": "05/04/2013 17:22:09",
      "content": "<p>I am a Python noobie, so sorry if this is a dumb question. &nbsp;I am using Windows so I followed the Ananconda appraoch Jose used. &nbsp;But I am still trying to get this to work. &nbsp;When I run train.py mlp.yaml I get this error:</p>\r\n<pre>c:\\Anaconda\\Lib\\site-packages\\pylearn2\\scripts\\icml_2013_wrepl\\black_box&gt;train.py mlp.yaml<br>usage: train.py [-h] [--level-name] [--timestamp] [--verbose-logging]<br>                [--debug]<br>                config<br>train.py: error: too few arguments</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>Any thoughts?</pre>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23904",
      "postDate": "05/04/2013 17:37:09",
      "content": "<p>That's strange. It looks like for some reason sys.argv isn't getting set right when you run the script from the command line. I don't know anything about python on Windows so I'm afraid I won't be much help.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "23905",
      "postDate": "05/04/2013 18:37:49",
      "content": "<p>[quote=BigNate;23902]</p>\r\n<p>I am a Python noobie, so sorry if this is a dumb question. &nbsp;I am using Windows so I followed the Ananconda appraoch Jose used. &nbsp;But I am still trying to get this to work. &nbsp;When I run train.py mlp.yaml I get this error:</p>\r\n<pre>c:\\Anaconda\\Lib\\site-packages\\pylearn2\\scripts\\icml_2013_wrepl\\black_box&gt;train.py mlp.yaml<br>usage: train.py [-h] [--level-name] [--timestamp] [--verbose-logging]<br>                [--debug]<br>                config<br>train.py: error: too few arguments</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>Any thoughts?</pre>\r\n<p>[/quote]</p>\r\n<p>Hi, BigNate,</p>\r\n<p>Try this:&nbsp;</p>\r\n<p>python ..\\..\\train.py mlp.yaml</p>\r\n<p>I included the scripts dir in path and the .py in pathext but don't work. The workaround is include the relative path in the call.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "24483",
      "postDate": "05/19/2013 09:33:22",
      "content": "<p>more pylearn2 install issues.</p>\r\n<p>ubuntu 12.04</p>\r\n<p>theano seems to work fine</p>\r\n<p>I go to try and run the /tutorials/grbm_smd and after downloading the data it pickles it up...</p>\r\n<p>question/issue 1: to run the tutorials, do I run them in the unzipped folder in which I called setup.py install or do I drill down into the lib-python-dist..... folder?</p>\r\n<p>they both seen to behave the same after a bit of chmodding.</p>\r\n<p></p>\r\n<p>issue 2: I run:</p>\r\n<p>train.py cifar_grbm_smd.yaml</p>\r\n<p>and the output is the following...</p>\r\n<p><br>\r\nTraceback (most recent call last):<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/scripts/train.py&quot;, line 95, in &lt;module&gt;<br>\r\n&nbsp;&nbsp;&nbsp; train_obj = serial.load_train_file(args.config)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/utils/serial.py&quot;, line 435, in load_train_file<br>\r\n&nbsp;&nbsp;&nbsp; return yaml_parse.load_path(config_file_path)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 87, in load_path<br>\r\n&nbsp;&nbsp;&nbsp; return load(content, **kwargs)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 49, in load<br>\r\n&nbsp;&nbsp;&nbsp; proxy_graph = yaml.load(processed_string, **kwargs)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/__init__.py&quot;, line 71, in load<br>\r\n&nbsp;&nbsp;&nbsp; return loader.get_single_data()<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 39, in get_single_data<br>\r\n&nbsp;&nbsp;&nbsp; return self.construct_document(node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 43, in construct_document<br>\r\n&nbsp;&nbsp;&nbsp; data = self.construct_object(node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 90, in construct_object<br>\r\n&nbsp;&nbsp;&nbsp; data = constructor(self, tag_suffix, node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 272, in multi_constructor<br>\r\n&nbsp;&nbsp;&nbsp; mapping = loader.construct_mapping(node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 208, in construct_mapping<br>\r\n&nbsp;&nbsp;&nbsp; return BaseConstructor.construct_mapping(self, node, deep=deep)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 133, in construct_mapping<br>\r\n&nbsp;&nbsp;&nbsp; value = self.construct_object(value_node, deep=deep)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 90, in construct_object<br>\r\n&nbsp;&nbsp;&nbsp; data = constructor(self, tag_suffix, node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 277, in multi_constructor<br>\r\n&nbsp;&nbsp;&nbsp; classname = try_to_import(tag_suffix)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 236, in try_to_import<br>\r\n&nbsp;&nbsp;&nbsp; raise ImportError(base_msg &#43; '. Original exception: '&#43;str(e))<br>\r\nImportError: Could not import pylearn2.models but could import pylearn2. Original exception: No module named compat.python2x<br>\r\n</p>\r\n<p>many hours have been spent on this...anyone have a similar issue?</p>\r\n<p></p>\r\n<p></p>\r\n<p>--&nbsp; edit&nbsp; ===================resolved!</p>\r\n<p>OK, I think I found the issue.&nbsp; The default install on the theano website installs a version that does not have the compat package.</p>\r\n<p>Taking the bleeding edge from github and rebuilding fixed the issue!</p>\r\n<p></p>\r\n<p></p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "25147",
      "postDate": "06/05/2013 03:31:34",
      "content": "<p>Zero_errors, thanks a lot &nbsp;for posting the solution to that problem. &nbsp;I had the exact &nbsp;same problem</p>\r\n<p>would have never found the solution to the problem myself. &nbsp;Thank You!</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "135754",
      "postDate": "09/16/2016 16:53:01",
      "content": "<p>Hi all\nI am facing difficulty in understanding this python data path variable settings. I am using windows 10 and i need some help finishing this pylearn2 installation. any help will be much appreciated.</p>\n\n<p>Waleed sial</p>",
      "rawMarkdown": "Hi all\r\nI am facing difficulty in understanding this python data path variable settings. I am using windows 10 and i need some help finishing this pylearn2 installation. any help will be much appreciated.\r\n\r\nWaleed sial",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 23781,
      "author_name": "iangoodfellow",
      "author_url": "",
      "post_date": "05/01/2013 23:07:57",
      "content": "<p>You don't need a github account to clone from the github URL, but you do need git.</p>\r\n<p>Where did you get the zip file from? I don't know what that is.</p>\r\n<p>I don't know anything about Windows, but here is a tutorial on environment variables in Windows 7 that I found with Google:</p>\r\n<p>http://www.itechtalk.com/thread3595.html</p>\r\n<p>You don't need to do anything special with pylearn2 to register or install it, other than make sure it's somewhere your python interpreter can find it.</p>\r\n<p>What is anaconda? That's not something I use. I looked it up on wikipedia and it says it's the installer for Red Hat, but that doesn't make any sense in this context.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23783,
      "author_name": "blindape",
      "author_url": "",
      "post_date": "05/01/2013 23:18:05",
      "content": "<p>Thank you, Ian,</p>\r\n<p>AnacondaCE, a Python distribution recommended for install theano in Windows:</p>\r\n<p><a href=\"http://deeplearning.net/software/theano/install.html#windows-anaconda\">http://deeplearning.net/software/theano/install.html#windows-anaconda</a></p>\r\n<p>I get the zip file from the oficial git site (the cloud icon with 'ZIP')</p>\r\n<p><a href=\"https://github.com/lisa-lab/pylearn2\">https://github.com/lisa-lab/pylearn2</a></p>\r\n<p>I'm going to include my pylearn2 path in th windows path enviroment.</p>\r\n<p>EDIT. Seems my spyder IDE finds pylearn2.</p>\r\n<p>I found theano dir in c:/Anaconda/lib/site-packages/theano so I copied pylearn2 dir in&nbsp;</p>\r\n<p>c:/Anaconda/lib/site-packages/pylearn2 and spyder found it without need add the dir to the windows path! (Probably this is trivial but I haven't read anywhere).</p>\r\n<p>It's too late. Tomorrow will continue.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23784,
      "author_name": "johnclarke",
      "author_url": "",
      "post_date": "05/01/2013 23:52:28",
      "content": "<p>Hi Ian</p>\r\n<p>I'm also trying to install pylearn2 on a Windows 7 machine, also with cygwin installed.&nbsp; I unzipped the source into the</p>\r\n<p>&nbsp;&nbsp; /cygdrive/c/Python27/Lib/pylearn2-master</p>\r\n<p>directory and tried to run the setup.py script.&nbsp; I get the following error:</p>\r\n<p><br>\r\n$ python setup.py install<br>\r\nTraceback (most recent call last):<br>\r\n&nbsp; File &quot;setup.py&quot;, line 3, in &lt;module&gt;<br>\r\n&nbsp;&nbsp;&nbsp; from Cython.Distutils import build_ext<br>\r\nImportError: No module named Cython.Distutils</p>\r\n<p>Any ideas about what could be wrong?&nbsp; I've (re?)installed Cython but it made no difference.</p>\r\n<p>Thanks</p>\r\n<p>John</p>\r\n<p>&nbsp;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23785,
      "author_name": "iangoodfellow",
      "author_url": "",
      "post_date": "05/01/2013 23:54:17",
      "content": "<p>Don't bother running setup.py, just put pylearn2 somewhere on your PYTHONPATH. Very few features use cython and they'll raise an error message telling you if you try to use one. I'm pretty sure there are literally only two features that use it.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23800,
      "author_name": "johnclarke",
      "author_url": "",
      "post_date": "05/02/2013 08:59:09",
      "content": "<p>Thanks for that Ian.&nbsp; I also had another issue with setting up PYTHONPATH.&nbsp; I had Windows style directory names and was trying to run from a cygwin terminal which didn't work.&nbsp; Fixed that and now the make_dataset.py script runs far enough to tell that I\r\n have not downloaded the data!</p>\r\n<p>I'll get the data and I expect it'll all be OK.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23835,
      "author_name": "blindape",
      "author_url": "",
      "post_date": "05/02/2013 21:11:04",
      "content": "<p>My first model in python with pylearn2 is running!</p>\r\n<p>I obtained an compiling error:&nbsp;nvcc fatal : Cannot find compiler 'cl.exe' in PATH</p>\r\n<p>but after it the code is running.</p>\r\n<p>I'll try to fix the error. Any tip?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23845,
      "author_name": "iangoodfellow",
      "author_url": "",
      "post_date": "05/02/2013 23:47:36",
      "content": "<p>My guess is that you're running with theano configured to use gpu (&quot;device&quot; set to &quot;gpu&quot; in either your .theanorc file or THEANO_FLAGS environment variable) but you don't have the CUDA developer tools installed so theano isn't able to compile the GPU code.\r\n Does that sound like it could be the problem? If so, either just run on CPU, or if you have a GPU, install CUDA and try again.</p>\r\n<p>Another possibility is that you have CUDA installed but theano can't find it.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23890,
      "author_name": "djajetic",
      "author_url": "",
      "post_date": "05/04/2013 12:24:51",
      "content": "CUDA for win expect Visual C. Express edition is good enough. Then try ...theano/misc/check_blas.py. When you make theano works, pylearn2 works like a charm. (http://deeplearning.net/software/theano/install.html)",
      "votes": null,
      "replies": []
    },
    {
      "id": 23902,
      "author_name": "bignate",
      "author_url": "",
      "post_date": "05/04/2013 17:22:09",
      "content": "<p>I am a Python noobie, so sorry if this is a dumb question. &nbsp;I am using Windows so I followed the Ananconda appraoch Jose used. &nbsp;But I am still trying to get this to work. &nbsp;When I run train.py mlp.yaml I get this error:</p>\r\n<pre>c:\\Anaconda\\Lib\\site-packages\\pylearn2\\scripts\\icml_2013_wrepl\\black_box&gt;train.py mlp.yaml<br>usage: train.py [-h] [--level-name] [--timestamp] [--verbose-logging]<br>                [--debug]<br>                config<br>train.py: error: too few arguments</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>Any thoughts?</pre>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23904,
      "author_name": "iangoodfellow",
      "author_url": "",
      "post_date": "05/04/2013 17:37:09",
      "content": "<p>That's strange. It looks like for some reason sys.argv isn't getting set right when you run the script from the command line. I don't know anything about python on Windows so I'm afraid I won't be much help.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 23905,
      "author_name": "blindape",
      "author_url": "",
      "post_date": "05/04/2013 18:37:49",
      "content": "<p>[quote=BigNate;23902]</p>\r\n<p>I am a Python noobie, so sorry if this is a dumb question. &nbsp;I am using Windows so I followed the Ananconda appraoch Jose used. &nbsp;But I am still trying to get this to work. &nbsp;When I run train.py mlp.yaml I get this error:</p>\r\n<pre>c:\\Anaconda\\Lib\\site-packages\\pylearn2\\scripts\\icml_2013_wrepl\\black_box&gt;train.py mlp.yaml<br>usage: train.py [-h] [--level-name] [--timestamp] [--verbose-logging]<br>                [--debug]<br>                config<br>train.py: error: too few arguments</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>Any thoughts?</pre>\r\n<p>[/quote]</p>\r\n<p>Hi, BigNate,</p>\r\n<p>Try this:&nbsp;</p>\r\n<p>python ..\\..\\train.py mlp.yaml</p>\r\n<p>I included the scripts dir in path and the .py in pathext but don't work. The workaround is include the relative path in the call.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 24483,
      "author_name": "zerozero",
      "author_url": "",
      "post_date": "05/19/2013 09:33:22",
      "content": "<p>more pylearn2 install issues.</p>\r\n<p>ubuntu 12.04</p>\r\n<p>theano seems to work fine</p>\r\n<p>I go to try and run the /tutorials/grbm_smd and after downloading the data it pickles it up...</p>\r\n<p>question/issue 1: to run the tutorials, do I run them in the unzipped folder in which I called setup.py install or do I drill down into the lib-python-dist..... folder?</p>\r\n<p>they both seen to behave the same after a bit of chmodding.</p>\r\n<p></p>\r\n<p>issue 2: I run:</p>\r\n<p>train.py cifar_grbm_smd.yaml</p>\r\n<p>and the output is the following...</p>\r\n<p><br>\r\nTraceback (most recent call last):<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/scripts/train.py&quot;, line 95, in &lt;module&gt;<br>\r\n&nbsp;&nbsp;&nbsp; train_obj = serial.load_train_file(args.config)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/utils/serial.py&quot;, line 435, in load_train_file<br>\r\n&nbsp;&nbsp;&nbsp; return yaml_parse.load_path(config_file_path)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 87, in load_path<br>\r\n&nbsp;&nbsp;&nbsp; return load(content, **kwargs)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 49, in load<br>\r\n&nbsp;&nbsp;&nbsp; proxy_graph = yaml.load(processed_string, **kwargs)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/__init__.py&quot;, line 71, in load<br>\r\n&nbsp;&nbsp;&nbsp; return loader.get_single_data()<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 39, in get_single_data<br>\r\n&nbsp;&nbsp;&nbsp; return self.construct_document(node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 43, in construct_document<br>\r\n&nbsp;&nbsp;&nbsp; data = self.construct_object(node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 90, in construct_object<br>\r\n&nbsp;&nbsp;&nbsp; data = constructor(self, tag_suffix, node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 272, in multi_constructor<br>\r\n&nbsp;&nbsp;&nbsp; mapping = loader.construct_mapping(node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 208, in construct_mapping<br>\r\n&nbsp;&nbsp;&nbsp; return BaseConstructor.construct_mapping(self, node, deep=deep)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 133, in construct_mapping<br>\r\n&nbsp;&nbsp;&nbsp; value = self.construct_object(value_node, deep=deep)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/yaml/constructor.py&quot;, line 90, in construct_object<br>\r\n&nbsp;&nbsp;&nbsp; data = constructor(self, tag_suffix, node)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 277, in multi_constructor<br>\r\n&nbsp;&nbsp;&nbsp; classname = try_to_import(tag_suffix)<br>\r\n&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/pylearn2-0.1dev-py2.7.egg/pylearn2/config/yaml_parse.py&quot;, line 236, in try_to_import<br>\r\n&nbsp;&nbsp;&nbsp; raise ImportError(base_msg &#43; '. Original exception: '&#43;str(e))<br>\r\nImportError: Could not import pylearn2.models but could import pylearn2. Original exception: No module named compat.python2x<br>\r\n</p>\r\n<p>many hours have been spent on this...anyone have a similar issue?</p>\r\n<p></p>\r\n<p></p>\r\n<p>--&nbsp; edit&nbsp; ===================resolved!</p>\r\n<p>OK, I think I found the issue.&nbsp; The default install on the theano website installs a version that does not have the compat package.</p>\r\n<p>Taking the bleeding edge from github and rebuilding fixed the issue!</p>\r\n<p></p>\r\n<p></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 25147,
      "author_name": "yogurt",
      "author_url": "",
      "post_date": "06/05/2013 03:31:34",
      "content": "<p>Zero_errors, thanks a lot &nbsp;for posting the solution to that problem. &nbsp;I had the exact &nbsp;same problem</p>\r\n<p>would have never found the solution to the problem myself. &nbsp;Thank You!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 135754,
      "author_name": "waleedsial",
      "author_url": "",
      "post_date": "09/16/2016 16:53:01",
      "content": "<p>Hi all\nI am facing difficulty in understanding this python data path variable settings. I am using windows 10 and i need some help finishing this pylearn2 installation. any help will be much appreciated.</p>\n\n<p>Waleed sial</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "23780": "",
    "23781": "",
    "23783": "",
    "23784": "",
    "23785": "",
    "23800": "",
    "23835": "",
    "23845": "",
    "23890": "",
    "23902": "",
    "23904": "",
    "23905": "",
    "24483": "",
    "25147": "",
    "135754": "Hi all\r\nI am facing difficulty in understanding this python data path variable settings. I am using windows 10 and i need some help finishing this pylearn2 installation. any help will be much appreciated.\r\n\r\nWaleed sial"
  },
  "source": "meta"
}