id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,port 51121,py35-theano is missing dependence on py35-six,sporring@…,stromnov,"Hi, I just did a fresh install of theano, and first example from http://deeplearning.net/software/theano/tutorial/adding.html did not work due to missing library, py35-six. After installing mentioned package, then theano example works. Below are output of the installation process and error from python: ------------------------------------------------------- {{{ FN11194:~ sporring$ sudo port install py35-theano Password: ---> Computing dependencies for py35-theano ---> Dependencies to be installed: py35-numpy py35-cython python35 python3_select py35-nose py35-setuptools py35-scipy swig-python swig ---> Fetching archive for python3_select ---> Attempting to fetch python3_select-0.0_1.darwin_15.noarch.tbz2 from http://osl.no.packages.macports.org/python3_select ---> Attempting to fetch python3_select-0.0_1.darwin_15.noarch.tbz2.rmd160 from http://osl.no.packages.macports.org/python3_select ---> Installing python3_select @0.0_1 ---> Activating python3_select @0.0_1 ---> Cleaning python3_select ---> Fetching archive for python35 ---> Attempting to fetch python35-3.5.1_1.darwin_15.x86_64.tbz2 from http://osl.no.packages.macports.org/python35 ---> Attempting to fetch python35-3.5.1_1.darwin_15.x86_64.tbz2.rmd160 from http://osl.no.packages.macports.org/python35 ---> Installing python35 @3.5.1_1 ---> Activating python35 @3.5.1_1 To make this the default Python or Python 3 (i.e., the version run by the 'python' or 'python3' commands), run one or both of: sudo port select --set python python35 sudo port select --set python3 python35 ---> Cleaning python35 ---> Fetching archive for py35-cython ---> Attempting to fetch py35-cython-0.24_0.darwin_15.x86_64.tbz2 from http://osl.no.packages.macports.org/py35-cython ---> Attempting to fetch py35-cython-0.24_0.darwin_15.x86_64.tbz2.rmd160 from http://osl.no.packages.macports.org/py35-cython ---> Installing py35-cython @0.24_0 ---> Activating py35-cython @0.24_0 To make the Python 3.5 version of Cython the one that is run when you execute the commands without a version suffix, e.g. 'cython', run: port select --set cython cython35 ---> Cleaning py35-cython ---> Fetching archive for py35-setuptools ---> Attempting to fetch py35-setuptools-19.2_0.darwin_15.noarch.tbz2 from http://osl.no.packages.macports.org/py35-setuptools ---> Attempting to fetch py35-setuptools-19.2_0.darwin_15.noarch.tbz2.rmd160 from http://osl.no.packages.macports.org/py35-setuptools ---> Installing py35-setuptools @19.2_0 ---> Activating py35-setuptools @19.2_0 ---> Cleaning py35-setuptools ---> Fetching archive for py35-nose ---> Attempting to fetch py35-nose-1.3.7_0.darwin_15.noarch.tbz2 from http://osl.no.packages.macports.org/py35-nose ---> Attempting to fetch py35-nose-1.3.7_0.darwin_15.noarch.tbz2.rmd160 from http://osl.no.packages.macports.org/py35-nose ---> Installing py35-nose @1.3.7_0 ---> Activating py35-nose @1.3.7_0 ---> Cleaning py35-nose ---> Fetching archive for py35-numpy ---> Attempting to fetch py35-numpy-1.10.4_0+gfortran.darwin_15.x86_64.tbz2 from http://osl.no.packages.macports.org/py35-numpy ---> Attempting to fetch py35-numpy-1.10.4_0+gfortran.darwin_15.x86_64.tbz2.rmd160 from http://osl.no.packages.macports.org/py35-numpy ---> Installing py35-numpy @1.10.4_0+gfortran ---> Activating py35-numpy @1.10.4_0+gfortran ---> Cleaning py35-numpy ---> Fetching archive for swig ---> Attempting to fetch swig-3.0.8_0.darwin_15.x86_64.tbz2 from http://osl.no.packages.macports.org/swig ---> Attempting to fetch swig-3.0.8_0.darwin_15.x86_64.tbz2.rmd160 from http://osl.no.packages.macports.org/swig ---> Installing swig @3.0.8_0 ---> Activating swig @3.0.8_0 ---> Cleaning swig ---> Fetching archive for swig-python ---> Attempting to fetch swig-python-3.0.8_0.darwin_15.x86_64.tbz2 from http://osl.no.packages.macports.org/swig-python ---> Attempting to fetch swig-python-3.0.8_0.darwin_15.x86_64.tbz2.rmd160 from http://osl.no.packages.macports.org/swig-python ---> Installing swig-python @3.0.8_0 ---> Activating swig-python @3.0.8_0 ---> Cleaning swig-python ---> Fetching archive for py35-scipy ---> Attempting to fetch py35-scipy-0.17.0_0+gfortran.darwin_15.x86_64.tbz2 from http://osl.no.packages.macports.org/py35-scipy ---> Attempting to fetch py35-scipy-0.17.0_0+gfortran.darwin_15.x86_64.tbz2.rmd160 from http://osl.no.packages.macports.org/py35-scipy ---> Installing py35-scipy @0.17.0_0+gfortran ---> Activating py35-scipy @0.17.0_0+gfortran ---> Cleaning py35-scipy ---> Fetching archive for py35-theano ---> Attempting to fetch py35-theano-0.8.1_0.darwin_15.x86_64.tbz2 from http://osl.no.packages.macports.org/py35-theano ---> Attempting to fetch py35-theano-0.8.1_0.darwin_15.x86_64.tbz2.rmd160 from http://osl.no.packages.macports.org/py35-theano ---> Installing py35-theano @0.8.1_0 ---> Activating py35-theano @0.8.1_0 ---> Cleaning py35-theano ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. FN11194:~ sporring$ python python python2.7 python3.5m pythonw2.6 python-config python2.7-config python3.5m-config pythonw2.7 python2.6 python3.5 pythontex python2.6-config python3.5-config pythonw FN11194:~ sporring$ python3.5 Python 3.5.1 (default, Mar 2 2016, 03:38:02) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type ""help"", ""copyright"", ""credits"" or ""license"" for more information. >>> import numpy >>> import theano.tensor as T >>> Traceback (most recent call last): File """", line 1, in File ""/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/theano/__init__.py"", line 42, in from theano.configdefaults import config File ""/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/theano/configdefaults.py"", line 13, in from six import string_types ImportError: No module named 'six' ------------------------------------------------------- FN11194:~ sporring$ sudo port install py35-six ---> Computing dependencies for py35-six ---> Fetching archive for py35-six ---> Attempting to fetch py35-six-1.10.0_0.darwin_15.noarch.tbz2 from http://osl.no.packages.macports.org/py35-six ---> Attempting to fetch py35-six-1.10.0_0.darwin_15.noarch.tbz2.rmd160 from http://osl.no.packages.macports.org/py35-six ---> Installing py35-six @1.10.0_0 ---> Activating py35-six @1.10.0_0 ---> Cleaning py35-six ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. FN11194:~ sporring$ python3.5 Python 3.5.1 (default, Mar 2 2016, 03:38:02) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type ""help"", ""copyright"", ""credits"" or ""license"" for more information. >>> import numpy >>> import theano.tensor as T >>> from theano import function >>> x = T.dscalar('x') >>> y = T.dscalar('y') >>> z = x + y >>> f = function([x, y], z) >>> f(2, 3) >>> array(5.0) numpy.allclose(f(16.3, 12.1), 28.4) >>> True }}} ",defect,closed,Normal,,ports,2.3.4,fixed,,kurthindenburg,py-theano