Skip to content
This repository was archived by the owner on Jun 27, 2021. It is now read-only.
This repository was archived by the owner on Jun 27, 2021. It is now read-only.

3 different results from same pyimport command issued 3 times in a row #12

Description

@eflister

this is matlab 2015a, macports python 2.7, osx 10.10.3

>> pyimport sima            
Error using pymex
Python:RuntimeError -> Interface initialization failed (Not a datatype object)


Error in pyimport (line 6)
    imp = pymex('IMPORT', name);

>> pyimport sima
Error using pymex
Python:ImportError ->
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/special/_ufuncs.so, 2): Symbol not
found: __gfortran_stop_numeric_f08
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/special/_ufuncs.so
  Expected in: /Applications/MATLAB_R2015a.app/sys/os/maci64/libgfortran.3.dylib
 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/special/_ufuncs.so


Error in pyimport (line 6)
    imp = pymex('IMPORT', name);

>> pyimport sima
Error using pymex
Python:ImportError -> cannot import name hough_ellipse

to show pymex is working:

>> pyimport numpy
>> numpy.asarray(rand(2,3,4))

ans = 

[[[ 0.81472369  0.27849822  0.95716695  0.79220733]
  [ 0.12698682  0.95750684  0.80028047  0.6557407 ]
  [ 0.63235925  0.15761308  0.42176128  0.84912931]]

 [[ 0.90579194  0.54688152  0.48537565  0.95949243]
  [ 0.91337586  0.96488854  0.14188634  0.03571168]
  [ 0.0975404   0.97059278  0.91573553  0.93399325]]]
>> ans.shape

ans = 

(2, 3, 4)

and

~/pymex$ make test
/Applications/MATLAB_R2015a.app/bin/matlab -nojvm -nodisplay \
    -r "pyimport nose; exit(unpy(~nose.run()));"

                                                         < M A T L A B (R) >
                                               Copyright 1984-2015 The MathWorks, Inc.
                                                R2015a (8.5.0.197613) 64-bit (maci64)
                                                          February 12, 2015


For online documentation, see http://www.mathworks.com/support
For product information, visit www.mathworks.com.


    Academic License

.....S..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 696 tests in 0.841s

OK (SKIP=1)

note the pymex py package is unusable, cuz it conflicts with matlab's new python bridge.

i am trying pymex cuz of this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions