Opened 8 years ago

Closed 8 years ago

#51121 closed defect (fixed)

py35-theano is missing dependence on py35-six

Reported by: sporring@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: py-theano

Description (last modified by mf2k (Frank Schima))

Hi, I just did a fresh install of theano, and first example from 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
--->  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
--->  Attempting to fetch python3_select-0.0_1.darwin_15.noarch.tbz2.rmd160 from
--->  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
--->  Attempting to fetch python35-3.5.1_1.darwin_15.x86_64.tbz2.rmd160 from
--->  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
--->  Attempting to fetch py35-cython-0.24_0.darwin_15.x86_64.tbz2.rmd160 from
--->  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
--->  Attempting to fetch py35-setuptools-19.2_0.darwin_15.noarch.tbz2.rmd160 from
--->  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
--->  Attempting to fetch py35-nose-1.3.7_0.darwin_15.noarch.tbz2.rmd160 from
--->  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
--->  Attempting to fetch py35-numpy-1.10.4_0+gfortran.darwin_15.x86_64.tbz2.rmd160 from
--->  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
--->  Attempting to fetch swig-3.0.8_0.darwin_15.x86_64.tbz2.rmd160 from
--->  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
--->  Attempting to fetch swig-python-3.0.8_0.darwin_15.x86_64.tbz2.rmd160 from
--->  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
--->  Attempting to fetch py35-scipy-0.17.0_0+gfortran.darwin_15.x86_64.tbz2.rmd160 from
--->  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
--->  Attempting to fetch py35-theano-0.8.1_0.darwin_15.x86_64.tbz2.rmd160 from
--->  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 "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/theano/", line 42, in <module>
    from theano.configdefaults import config
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/theano/", line 13, in <module>
    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
--->  Attempting to fetch py35-six-1.10.0_0.darwin_15.noarch.tbz2.rmd160 from
--->  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

Change History (4)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Keywords: theano six dependence removed
Owner: changed from macports-tickets@… to stromnov@…
Port: py-theano added

In the future, please use WikiFormatting, fill in the Port field and Cc the port maintainers (port info --maintainers py35-theano), if any.

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:4 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

thanks r147740

Note: See TracTickets for help on using tickets.