Two errors (td_brmesolve) in QuTip installation on Mac

109 views
Skip to first unread message

ziwei....@gmail.com

unread,
Sep 14, 2017, 11:32:53 PM9/14/17
to QuTiP: Quantum Toolbox in Python
Hi, 

After installation using pip on my Mac, I run the test and found there are two errors:
td_brmesolve: time-dependent a_ops tuple interp ... ERROR

td_brmesolve: time-dependent a_ops & c_ops interp ... ERROR


I am using python 35. Can anyone help me figure out what is wrong? Thank you very much in advance.


Here is more information:

QuTiP: Quantum Toolbox in Python

Copyright (c) 2011 and later.

A. J. Pitchford, P. D. Nation, R. J. Johansson, A. Grimsmo, and C. Granade


QuTiP Version:      4.2.0

Numpy Version:      1.11.3

Scipy Version:      0.18.1

Cython Version:     0.25.2

Matplotlib Version: 2.0.0

Python Version:     3.5.2

Number of CPUs:     2

BLAS Info:          INTEL MKL

OPENMP Installed:   False

INTEL MKL Ext:      True

Platform Info:      Darwin (x86_64)


ERROR: td_brmesolve: time-dependent a_ops & c_ops interp

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/site-packages/pyximport/pyximport.py", line 217, in load_module

    mod = imp.load_dynamic(name, so_path)

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/imp.py", line 342, in load_dynamic

    return _load(spec)

  File "rhs944610.pyx", line 20, in init rhs944610 (/Users/ziweiqiu/.pyxbld/temp.macosx-10.6-x86_64-3.5/pyrex/rhs944610.cpp:18595)

    cdef double[::1] spline1 = np.array([  1.8301119700402751e-01,  1.6666666666666666e-01,

TypeError: float() argument must be a string or a number, not 'ellipsis'

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/site-packages/nose/case.py", line 198, in runTest

    self.test(*self.arg)

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/site-packages/qutip/tests/test_brmesolve_td.py", line 267, in test_td_brmesolve_aop_tuple3

    medata = brmesolve(H, psi0, tlist, a_ops, e_ops=[a.dag() * a], c_ops=[[a,S_c]])

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/site-packages/qutip/bloch_redfield.py", line 234, in brmesolve

    _safe_mode=_safe_mode)

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/site-packages/qutip/bloch_redfield.py", line 636, in _td_brmesolve

    exec(code, globals())

  File "<string>", line 1, in <module>

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/site-packages/pyximport/pyximport.py", line 445, in load_module

    language_level=self.language_level)

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/site-packages/pyximport/pyximport.py", line 232, in load_module

    raise exc.with_traceback(tb)

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/site-packages/pyximport/pyximport.py", line 217, in load_module

    mod = imp.load_dynamic(name, so_path)

  File "/Users/ziweiqiu/anaconda/envs/py35/lib/python3.5/imp.py", line 342, in load_dynamic

    return _load(spec)

  File "rhs944610.pyx", line 20, in init rhs944610 (/Users/ziweiqiu/.pyxbld/temp.macosx-10.6-x86_64-3.5/pyrex/rhs944610.cpp:18595)

    cdef double[::1] spline1 = np.array([  1.8301119700402751e-01,  1.6666666666666666e-01,

ImportError: Building module rhs944610 failed: ["TypeError: float() argument must be a string or a number, not 'ellipsis'\n"]



Thank you very much in advance!



Paul Nation

unread,
Sep 15, 2017, 12:29:58 AM9/15/17
to QuTiP Group
Well, it seems that there is some issue with how the NumPy array is converted to a string.  This has not been an issue is our testing, nor in the conda-forge packages.  I would try to update your Anaconda files to the latest versions, including going to Py36.  The code in question was developed on a mac, so that is not an issue.  Of course, if you are not going to use time-dependent Bloch-Redfield, then you can also ignore the error.

-P

--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ziwei....@gmail.com

unread,
Sep 15, 2017, 12:36:55 AM9/15/17
to QuTiP: Quantum Toolbox in Python
Ok, I see. Thanks so much!

Mojdeh S. N

unread,
Apr 30, 2020, 4:53:35 PM4/30/20
to QuTiP: Quantum Toolbox in Python
Hi Paul,

I am using the time depend redfield master equation and I get the same eror, ?? I have upgraded my python but still the error is there, I wonder if you could tell me how to get rid of it?

On Friday, September 15, 2017 at 4:29:58 PM UTC+12, Paul Nation wrote:
Well, it seems that there is some issue with how the NumPy array is converted to a string.  This has not been an issue is our testing, nor in the conda-forge packages.  I would try to update your Anaconda files to the latest versions, including going to Py36.  The code in question was developed on a mac, so that is not an issue.  Of course, if you are not going to use time-dependent Bloch-Redfield, then you can also ignore the error.

-P

To unsubscribe from this group and stop receiving emails from it, send an email to qu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages