Linux installation

1,290 views
Skip to first unread message

Alex Pitchford

unread,
Oct 23, 2015, 12:39:51 PM10/23/15
to QuTiP: Quantum Toolbox in Python
Please use this thread to discuss problems with and solutions to installing QuTiP on Linux

Xiaodong Qi

unread,
May 10, 2016, 4:36:33 PM5/10/16
to QuTiP: Quantum Toolbox in Python
@Alex, 

Copied from the Conda-forge question where I have mentioned the failure of running Stochastic equation examples on Linux from Source with Jupyter notebooks. Could you point out a detailed instruction to make it work? I was running similar tasks on Ubuntu 12.04 back to the day when IPython was still alive, but seems I have missed something on my new Ubuntu 16.04 and Jupyter installation. All tests have been passed without any error after QuTiP installation.

FYI ...
I tried to build QuTiP from the master branch of the source, but it generated errors on all of the stochastic equation example notebooks. For example, I will have the following error which indicates a miss of qutip.cyQ module:

>>> from qutip.cyQ.spmatfuncs import cy_expect, spmv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'qutip.cyQ'

I will also find errors like *** function not defined and so forth on other example notebooks.

Hopefully you can shadow a light on the correct configuration with Jupyter notebook environment to run the latest QuTiP. Thanks!

nonher...@gmail.com

unread,
May 10, 2016, 4:55:54 PM5/10/16
to qu...@googlegroups.com
There has not been a cyq module since qutip 2.2. It seems like your versions are mixed up. You should remove all previous qutip versions and reinstall. 

-Paul
--
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.

Xiaodong Qi

unread,
May 10, 2016, 5:22:46 PM5/10/16
to QuTiP: Quantum Toolbox in Python
Do you mean The notebook was not updated since qutip 2.2? Check, for example, https://github.com/qutip/qutip-notebooks/blob/master/development/development-smesolve-milstein.ipynb All stochastic equation related development notebook failed on my trial with various errors. I not sure if they are just outdated from maintenance, or the way I use Jupyter notebook was problematic. 

I only have 3.1 installed from Conda and 3.2 compiled from source on my new computer, all installed with default setting. Jupyter was installed from Conda as the instruction told me to do. Thank Paul for your prompt response.

nonher...@gmail.com

unread,
May 10, 2016, 5:40:21 PM5/10/16
to qu...@googlegroups.com
Yep, looks like it needs to be updated. 

cyQ -> cy

tsw...@sheffield.ac.uk

unread,
Jun 15, 2016, 6:22:14 AM6/15/16
to QuTiP: Quantum Toolbox in Python
Hi,

When I ran the qutip tests I got three compile errors

ImportError: Building module rhs63819 failed: ["distutils.errors.CompileError: command 'gcc' failed with exit status 1\n"]

I also got this error on the randomized reference & standard test for superoperators

ValueError: On entry to ZHBRDB parameter number 12 had an illegal value

Any suggestions for what might be causing these issues? These are on Ubuntu 16.04 with Anaconda 4.0.0 running Python 3.5.

Thanks

nonher...@gmail.com

unread,
Jun 15, 2016, 7:51:22 AM6/15/16
to qu...@googlegroups.com
That was an issue with using the wrong norm. It has been fixed in the development version on github. 

Paul
--

Timothy Wray

unread,
Jun 15, 2016, 8:55:57 AM6/15/16
to QuTiP: Quantum Toolbox in Python
Installing the development version did indeed fix all the listed errors.

Thanks!

Perhaps it should be noted somewhere for those willing to risk the development version that it fixes these things? (Other than git I mean)

henri....@gmail.com

unread,
Aug 18, 2016, 2:16:38 PM8/18/16
to QuTiP: Quantum Toolbox in Python
Where do you get the dev version ?
I got the git version and can't get it working in jupyter (python2 and 3), but very strange : I installed jupyterlab and it does work inside it and its  even very speedy.

nonher...@gmail.com

unread,
Aug 18, 2016, 2:17:41 PM8/18/16
to qu...@googlegroups.com
The git version is the dev version. On linux everything should work fine. 

-P
--

Henri Girard

unread,
Aug 24, 2016, 8:44:52 AM8/24/16
to qu...@googlegroups.com

That's what I get for python2 and 3

But if I take jupyterlab it works (python2) ? (I got only this warning :

Populating the interactive namespace from numpy and matplotlib
/usr/local/lib/python2.7/dist-packages/IPython/parallel.py:13: ShimWarning: The `IPython.parallel` package has been deprecated. You should import from ipyparallel instead.
  "You should import from ipyparallel instead.", ShimWarning)

---That's what I get for python2 and 3

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

%pylab inline
from qutip import *
from qutip.ipynbtools import plot_animation

Populating the interactive namespace from numpy and matplotlib
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-b813f7c9b55d> in <module>()
      1 get_ipython().magic(u'pylab inline')
----> 2 from qutip import *
      3 from qutip.ipynbtools import plot_animation

ImportError: No module named qutip

You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/xeXuQa13m0k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.

nonher...@gmail.com

unread,
Aug 24, 2016, 8:50:41 AM8/24/16
to qu...@googlegroups.com
This looks like an issue with jupyterlab and not qutip. If qutip loads from the python command line then you know it is installed properly. Jupyterlab is currently alphaware so some issues are not surprising. 

Henri Girard

unread,
Aug 24, 2016, 11:24:36 AM8/24/16
to qu...@googlegroups.com

It's solved. Kernel python's must be installed.

Thanks

Henri

simones...@gmail.com

unread,
Dec 8, 2016, 1:02:18 PM12/8/16
to QuTiP: Quantum Toolbox in Python
I'm having a weird problem. I used QuTiP without a problem until a few minutes ago. Then I upgraded Scipy to the latest version (from 0.17 to 0.18.1) and suddenly when I try to import qutip I get:

Segmentation fault (core dumped)

and my Python interpreter crashes. I tried uninstalling and reinstalling qutip, to no avail. I'm now trying to downgrade Scipy, but even if it were to work it's annoying to be forced to do this. Any suggestions?


On Friday, 23 October 2015 17:39:51 UTC+1, Alex Pitchford wrote:

Paul Nation

unread,
Dec 8, 2016, 1:05:56 PM12/8/16
to QuTiP Group
Very strange.  QuTiP is tested against the lastest versions of all the packages, so we know it works.  Maybe delete the entire qutip directory in the python site-packages dir and try to install again.

-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+unsubscribe@googlegroups.com.

simones...@gmail.com

unread,
Dec 8, 2016, 1:10:40 PM12/8/16
to QuTiP: Quantum Toolbox in Python
I don't know if this is related, but when uninstalling and reinstalling I get an error message that crashes the installation process when building the bdist_wheel. I think this is the crucial bit:

    File "/home/phony_stark/miniconda2/lib/python2.7/site-packages/wheel/archive.py", line 7, in <module>
      import logging
    File "/tmp/pip-build-fn9DjS/qutip/qutip/logging.py", line 43, in <module>
      import qutip.settings
    File "/tmp/pip-build-fn9DjS/qutip/qutip/__init__.py", line 51, in <module>
      import qutip.settings
    File "/tmp/pip-build-fn9DjS/qutip/qutip/settings.py", line 71, in <module>
      _logger = logging.getLogger(__name__)
  AttributeError: 'module' object has no attribute 'getLogger'

Now when I launch Python regularly and try "import logging" the resulting module does indeed have the getLogger function. It seems to me that what's going on here is that there's a naming ambiguity - qutip has its own "logging.py" and this confuses things as setuptools tries to load the "logging" module.

I'll try cleaning up the installation directory but problem is I use conda, so I'm not sure what effect that will have. If push comes to shove I can try create a fresh environment and reinstall on that one.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.

simones...@gmail.com

unread,
Dec 8, 2016, 1:12:03 PM12/8/16
to QuTiP: Quantum Toolbox in Python
(by the way, downgrading Scipy didn't work, so that's not it)


On Thursday, 8 December 2016 18:05:56 UTC, Paul Nation wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.

simones...@gmail.com

unread,
Dec 8, 2016, 1:50:01 PM12/8/16
to QuTiP: Quantum Toolbox in Python
As an additional piece of the puzzle: I installed qutip on a fresh conda environment and while the bdist_wheel issue with logging still comes up, the library itself seems to work. So it's clearly something else that broke.


On Friday, 23 October 2015 17:39:51 UTC+1, Alex Pitchford wrote:

Alex Pitchford

unread,
Dec 8, 2016, 8:46:25 PM12/8/16
to qu...@googlegroups.com
For quite a long time now, certainly in any 4.0 dev version, qutip's logging module has been called logging_utils.py in order to avoid this clash with Python's own logging. So you should not find any logging.py within the qutip install.

--
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+unsubscribe@googlegroups.com.

simones...@gmail.com

unread,
Dec 9, 2016, 4:11:01 AM12/9/16
to QuTiP: Quantum Toolbox in Python
Ah, might be because I'm using the version from pip. I'll try the newest one.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.

Prasanna Venkatesh B

unread,
Mar 22, 2017, 1:46:19 PM3/22/17
to QuTiP: Quantum Toolbox in Python
Dear Alex/Paul,

I attempted an installation of qutip 3.1.0 version on a remote Linux cluster with OS version:
>> uname -or
2.6.32-642.15.1.el6.x86_64 GNU/Linux

qutip installed ok from source and this is the configuration:


>>> about()


QuTiP: Quantum Toolbox in Python
Copyright (c) 2011 and later.
Paul D. Nation & Robert J. Johansson

QuTiP Version:      3.1.0
Numpy Version:      1.11.3
Scipy Version:      0.19.0
Cython Version:     0.25.2
Matplotlib Version: 2.0.0
Fortran mcsolver:   False
scikits.umfpack:    False
Python Version:     2.7.3
Platform Info:      Linux (x86_64)
Installation path:  /net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip


When I ran the test routines, I got a few errors given below:


======================================================================
ERROR: correlation: comparing me and mc for driven oscillator in ground state
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/tests/test_correlation.py", line 122, in test_compare_solvers_coherent_state_memc
    solver="mc")[0]
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/correlation.py", line 238, in correlation_2op_2t
    solver=solver, args=args, options=options)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/correlation.py", line 1091, in _correlation_2t
    args=args, options=options)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/correlation.py", line 1297, in _correlation_mc_2t
    1j*c_tau[1] + 1j*c_tau[3])
TypeError: ufunc 'add' output (typecode 'O') could not be coerced to provided output parameter (typecode 'D') according to the casting rule ''same_kind''

======================================================================
ERROR: Monte-carlo: Time-dependent H (str format)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/tests/test_mcsolve.py", line 362, in test_TDStr
    ntraj=ntraj)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/mcsolve.py", line 274, in mcsolve
    _mc_func_load(config)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/mcsolve.py", line 1001, in _mc_func_load
    exec(code, globals())
  File "<string>", line 1, in <module>
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyximport.py", line 445, in load_module
    language_level=self.language_level)
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyximport.py", line 234, in load_module
    exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyximport.py", line 216, in load_module
    inplace=build_inplace, language_level=language_level)
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyximport.py", line 192, in build_module
    reload_support=pyxargs.reload_support)
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
    dist.run_commands()
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 185, in run
    _build_ext.build_ext.run(self)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
    self.build_extension(ext)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/command/build_ext.py", line 498, in build_extension
    depends=ext.depends)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/ccompiler.py", line 572, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/unixccompiler.py", line 180, in _compile
    raise CompileError, msg
ImportError: Building module rhs154007 failed: ["CompileError: command 'gcc' failed with exit status 1\n"]

======================================================================
ERROR: mesolve: time-dependence as string list
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/tests/test_mesolve.py", line 432, in testMETDDecayAsStrList
    medata = mesolve(H, psi0, tlist, c_op_list, [a.dag() * a], args=args)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/mesolve.py", line 270, in mesolve
    progress_bar)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/mesolve.py", line 619, in _mesolve_list_str_td
    exec(code, globals())
  File "<string>", line 1, in <module>
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyximport.py", line 445, in load_module
    language_level=self.language_level)
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyximport.py", line 234, in load_module
    exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyximport.py", line 216, in load_module
    inplace=build_inplace, language_level=language_level)
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyximport.py", line 192, in build_module
    reload_support=pyxargs.reload_support)
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
    dist.run_commands()
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 185, in run
    _build_ext.build_ext.run(self)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
    self.build_extension(ext)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/command/build_ext.py", line 498, in build_extension
    depends=ext.depends)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/ccompiler.py", line 572, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/net/apps64/epd-7.3-2/lib/python2.7/distutils/unixccompiler.py", line 180, in _compile
    raise CompileError, msg
ImportError: Building module rhs154009 failed: ["CompileError: command 'gcc' failed with exit status 1\n"]

======================================================================
ERROR: Superoperator: Randomized comparison of standard and reference
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/tests/test_superoper.py", line 184, in testLiouvillianImplem
    assert_((L1 - L2).norm() < 1e-8)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/qobj.py", line 805, in norm
    sparse=sparse, tol=tol, maxiter=maxiter)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/sparse.py", line 370, in sp_eigs
    num_large, num_small)
  File "/net/jerrie1/x2241044/.local/lib/python2.7/site-packages/qutip/sparse.py", line 181, in _dense_eigs
    evals = la.eigvalsh(data)
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/scipy/linalg/decomp.py", line 734, in eigvalsh
    check_finite=check_finite)
  File "/net/apps64/epd-7.3-2/lib/python2.7/site-packages/scipy/linalg/decomp.py", line 384, in eigh
    iu=a1.shape[0], overwrite_a=overwrite_a)

ValueError: On entry to ZHBRDB parameter number 12 had an illegal value

----------------------------------------------------------------------
Ran 320 tests in 3855.063s

FAILED (SKIP=7, errors=4)

I was wondering if these are a). fixes for these errors that I can attempt/ b). are they serious enough that I should worry about them presently!

Thanks so much for your help.

Cheers,

Prasanna

Paul Nation

unread,
Mar 22, 2017, 1:53:13 PM3/22/17
to QuTiP Group
You should update to the latest version 4.1.  Also, the last error is a lapack error so you need to update your blas/lapack versions.

-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+unsubscribe@googlegroups.com.

grah...@googlemail.com

unread,
May 17, 2017, 2:13:29 PM5/17/17
to QuTiP: Quantum Toolbox in Python
I am trying to install QuTiP from source on Fedora 25 using the system python 3.5.3. I believe I have installed all the dependencies, and the installation (with openmp and openblas) works fine. However, when I run the testing program, I get failures on a number of tests. If I use Anaconda with QuTiP 4.1.0, all tests pass (although there are a number of errors about -Wstrict-prototypes begin a C/ObjC and not a C++ feature).

The system information is:
QuTiP Version:      4.2.0
Numpy Version:      1.12.1
Scipy Version:      0.19.0
Cython Version:     0.25.2
Matplotlib Version: 1.5.2rc2
Python Version:     3.5.3
Number of CPUs:     2
BLAS Info:          OPENBLAS
OPENMP Installed:   True
INTEL MKL Ext:      False
Platform Info:      Linux (x86_64)
Installation path:  /usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip

And the failed tests are:
Check Qobj eigs and direct eig solver transformations match ... FAIL
Check Qobj eigs and direct eig solver reverse transformations match ... FAIL
correlation: legacy me and es for oscillator in coherent initial state ... FAIL
Entropy: von-Neumann entropy ... FAIL
Entropy: Linear entropy ... FAIL
Entropy: Mutual information ... FAIL
gates: expand 2 to N (using cnot, iswap, sqrtswap) ... FAIL
Metrics: Fidelity, mixed state inequality ... /usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py:107: RuntimeWarning: invalid value encountered in sqrt
  assert_(1-F <= sqrt(1-F**2))
FAIL
Metrics: Fidelity, invariance under unitary trans. ... ERROR
Metrics: Fidelity of a pure state w/ itself should be 1. ... FAIL
Metrics: Fidelity of mixed states within [0, 1]. ... FAIL
Metrics: Trace dist., invariance under unitary trans. ... FAIL
Metrics: Tests that for random unitaries U, AGF(U, U) = 1. ... FAIL
qft: compare qft and product of qft steps ... FAIL
Qobj permute ... FAIL
Tensor: Super_tensor correctly tensors on underlying spaces. ... FAIL
Composite: Tests compositing unitaries and superoperators. ... FAIL
Qobj: dual_chan() preserves inner products with arbitrary density ops. ... ERROR
Qobj: dual_chan() preserves inner products with arbitrary density ops. ... ERROR
Qobj: dual_chan() preserves inner products with arbitrary density ops. ... ERROR
Random Qobjs: Tests that BCSZ-random superoperators are CPTP. ... FAIL
spmath: zcsr_mult ... FAIL
states: coherent density matrix ... FAIL
Steady state: Driven cavity - direct solver ... FAIL
Steady state: Driven cavity - eigen solver ... FAIL
Steady state: Driven cavity - power solver ... FAIL
Steady state: Driven cavity - power-gmres solver ... FAIL
Steady state: Driven cavity - power-bicgstab solver ... FAIL
Steady state: Driven cavity - iterative-gmres solver ... FAIL
Steady state: Driven cavity - iterative-bicgstab solver ... FAIL
Superoperator: Efficient numerics and reference return same result, ... FAIL
qutip.tests.test_superop_reps.TestSuperopReps.test_chi_choi_roundtrip ... FAIL
Superoperator: Randomized comparison of standard and reference ... FAIL
qutip.tests.test_superoper.TestMatVec.test_reshuffle ... FAIL
wigner: test wigner function calculation for coherent states ... FAIL


I have attached the full file which includes a number of longer error messages at the end.

Do you have any insight about how I can get this working (without Anaconda)?
error.txt

sman...@gmail.com

unread,
Jun 13, 2017, 9:06:32 AM6/13/17
to QuTiP: Quantum Toolbox in Python
Hi I've ran into the following problem before even running the test.

ImportError: /home/Jacky/anaconda3/lib/python3.6/site-packages/qutip/cy/spmath.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E

Any help would be appreciated.

sman...@gmail.com

unread,
Jun 14, 2017, 1:35:37 AM6/14/17
to QuTiP: Quantum Toolbox in Python
Ok so I've fixed this by updating the libgcc. But somehow when I try to run the self test I get KeyError 'cpus'. It seems trivial, but I would like to confirm that this is the case.

Amine CH

unread,
Dec 29, 2017, 1:24:36 AM12/29/17
to QuTiP: Quantum Toolbox in Python

Hello Dear Community,
i hope my message finds you well .
Unfortunately when i run Qutip i get the following error below ,
Any help would be much appreciated


amine@amine-HP-Compaq-Elite-8300-SFF:~$ ipython
Python 2.7.12 (default, Nov 20 2017, 18:23:56)
Type "copyright", "credits" or "license" for more information.

IPython 2.4.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from qutip import *

In [2]: about()


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.13.3
Scipy Version:      1.0.0
Cython Version:     0.27.3
Matplotlib Version: 1.5.1
Python Version:     2.7.12
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-2-b1e6e64cfb3f> in <module>()
----> 1 about()

/home/amine/.local/lib/python2.7/site-packages/qutip/about.pyc in about()
     75     print("Matplotlib Version: %s" % matplotlib_ver)
     76     print("Python Version:     %d.%d.%d" % sys.version_info[0:3])
---> 77     print("Number of CPUs:     %s" % hardware_info()['cpus'])
     78     print("BLAS Info:          %s" % _blas_info())
     79     print("OPENMP Installed:   %s" % str(qutip.settings.has_openmp))

KeyError: 'cpus'

Paul Nation

unread,
Dec 29, 2017, 9:07:48 AM12/29/17
to QuTiP Group
This is fixed in the developer version.  It is because your system language is not English.

-P

--

neil...@gmail.com

unread,
Feb 23, 2018, 11:58:14 AM2/23/18
to QuTiP: Quantum Toolbox in Python
I've just discovered this and want to get started with experimenting really, I understand it should just be a matter of pip installing, however I use pipenv (since it's now suggested), I can't seem to get past the initial hurdle of installation, would anyone mind showing me what I'm doing wrong?

[neil@yggdrasil quantum]$ pipenv shell
Creating a Pipfile for this project…
Spawning environment shell (/bin/bash). Use 'exit' to leave.
source /home/neil/.local/share/virtualenvs/quantum-QGz96JBu/bin/activate
[neil@yggdrasil quantum]$ source /home/neil/.local/share/virtualenvs/quantum-QGz96JBu/bin/activate
(quantum-QGz96JBu) [neil@yggdrasil quantum]$ pipenv install qutip
Installing qutip…
Collecting qutip
  Using cached qutip-4.2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

      File "<string>", line 1, in <module>
      File "/tmp/pip-build-u25s0g7k/qutip/setup.py", line 54, in <module>
        from Cython.Build import cythonize
    ModuleNotFoundError: No module named 'Cython'
   
    ----------------------------------------

Error:  An error occurred while installing qutip!
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-u25s0g7k/qutip/

Paul Nation

unread,
Feb 23, 2018, 11:58:52 AM2/23/18
to qu...@googlegroups.com
You need Cython.

--
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.

Henri Girard

unread,
Feb 24, 2018, 3:05:18 AM2/24/18
to qu...@googlegroups.com

In my opinion you should do sudo -H pip install qt... --upgrade

I run qtip in sagemath :

my sage is local but I have a link in /usr/bin/sage

I prefer a local installation with no sudo !!!

in sage dir >./sage -pip install qtip then use jupyer notebook as sage sage -n=jupyter et create a new notebook which should work with qtip

--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/xeXuQa13m0k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.

neil...@gmail.com

unread,
Feb 26, 2018, 3:59:05 AM2/26/18
to QuTiP: Quantum Toolbox in Python
Installing Cython via pipenv didn't work either.

pipenv install cython
Installing cython…
Collecting cython
  Using cached Cython-0.27.3-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: cython
Successfully installed cython-0.27.3

Adding cython to Pipfile's [packages]…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (1d23e5)!

pipenv install qutip
Installing qutip…
Collecting qutip
  Using cached qutip-4.2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-cyzmol5s/qutip/setup.py", line 166, in <module>
        include_dirs = [np.get_include()],
    AttributeError: 'NoneType' object has no attribute 'get_include'
    
    ----------------------------------------

Error:  An error occurred while installing qutip!
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cyzmol5s/qutip/

I use Pyenv for work so I don't especially want to be installing anything globally, preferring to install this in a virtualenv somewhere. I think it should just be a matter of installing cython (although I should imagine that it should have this as a dependency and explicitly installing it wouldn't be needed, but I may be wrong).

I presume I'm just doing something stupid with this, so please, forgive me if this is a simple issue.

Neil

Alex Pitchford

unread,
Feb 26, 2018, 8:52:15 AM2/26/18
to qu...@googlegroups.com
Sorry, yes sometimes the pip install does not install all the required pre-reqs. I don't know why sorry, but as our support env is Anaconda then I have not spent much time looking into it. I have tested it successfully, but you are not the first to report problems.

So, check your numpy and scipy versions, make sure they match the requirements in:

I could not find any docs on numpy.get_include. So I am not sure when it was added.


To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.

Paul Nation

unread,
Feb 26, 2018, 9:09:45 AM2/26/18
to qu...@googlegroups.com
The None value would seem to suggest that the include directory for the NumPy header files does not exist.  Those are needed in the build process.

Henri Girard

unread,
Feb 26, 2018, 11:40:33 AM2/26/18
to qu...@googlegroups.com

I had to install pip cython though I taught it was install

You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/xeXuQa13m0k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.

Steev Joe Mathew

unread,
May 19, 2018, 6:10:18 AM5/19/18
to QuTiP: Quantum Toolbox in Python
Everything was right when qutip 4.2 installed. But when I run qt.run(), the following error occurred after many 'OK'.

Importing `factorial` from scipy.misc is deprecated in scipy 1.0.0. Use `scipy.special.factorial` instead.
  sqrt(factorial(m) / factorial(n)) *
/home/user/anaconda3/lib/python3.6/site-packages/qutip/wigner.py:226: DeprecationWarning: `factorial` is deprecated!

Please help.

Alex Pitchford

unread,
May 21, 2018, 4:56:44 AM5/21/18
to qu...@googlegroups.com
It's just a warning. Don't worry about it.
I think someone is working on a fix for this in the next version.

Bests

Alex


--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.

rvng...@gmail.com

unread,
Sep 13, 2018, 4:24:06 PM9/13/18
to QuTiP: Quantum Toolbox in Python
Hello!
I have successfully installed QuTiP on ubuntu 18.04. When running installation check 'import qutip.testing as qt' the ipython cratches and I get the following error 'not permitted instruction : (core dumped)'. Can someone help to fix it?

aron.w....@berkeley.edu

unread,
Jun 16, 2019, 4:09:41 PM6/16/19
to QuTiP: Quantum Toolbox in Python
Hi there!
I have experienced a couple minor peculiarities during the installation. Everything works as far as I can tell, nonetheless I think an explanation would be satisfying.
My home directory has been populated by several rhs######.pyx files (where the # are rather arbitrary numbers).

rhs.png


Additionally, when running the qutip.testing.run() function, I receive a abundance of warning messages sourcing from "missing definitions" of a variable in these very files, depicted in the image below. 

rhstest.png

I'd appreciate any input on the topic. Thanks!

aron.w....@berkeley.edu

unread,
Jun 16, 2019, 4:13:42 PM6/16/19
to QuTiP: Quantum Toolbox in Python
I'm sorry. Is this not a problem that arose during installation? Albeit QuTip runs, so it was not a failed installation. Nevertheless, it was an unexpected effect occurring from likely imperfect installation procedure. Should I post elsewhere?

Nathan Shammah

unread,
Jun 16, 2019, 6:31:29 PM6/16/19
to qu...@googlegroups.com
Dear Aron,

Thank you for the details. 

Probably it’s worth opening an issue on 
https://github.com/qutip/qutip/issues in general when you think it’s not your machine issue or it’s not a problem you have with installation. 
The google group is more focused on help in troubleshooting, these seem proper bugs.

Anyhow, I did experience the same and opened an issue too, with regard to the pyx files:
This also seems related 

I think the pyx issue might have been solved in a recent PR by Eric Giguere, where other warnings occurred too

I did experience those warnings at some point, right now maybe they are fixed in the development version (I suppose you installed QuTiP 4.3.1?)

Some other current problems with testing warnings with Travis CI are also reported here 

Best wishes,

Nathan


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/qutip/1cc362d4-b9bf-461a-bd87-c05845637908%40googlegroups.com.

Aron Lloyd

unread,
Jun 17, 2019, 1:11:09 AM6/17/19
to qu...@googlegroups.com
Thanks for the help! Much appreciated.

You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/xeXuQa13m0k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qutip/CAKcZDfS%2B3EfxvbC6ustsJd9mGQ%2B3uTrDPPQEMGwazEY0JzvP2Q%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
Aron W.F. Lloyd
pronouns: dude
Undergraduate in Physics/Computer Science

tpse...@gmail.com

unread,
Sep 4, 2019, 5:47:50 AM9/4/19
to QuTiP: Quantum Toolbox in Python
After installing everything, I tried running the qt.run() test. I get the following error back:

  File "/home/tiro/Documents/my_env/local/lib/python2.7/site-packages/qutip/qobjevo.py", line 515
    raise TypeError("Qobj not compatible.") from e
                                               ^
SyntaxError: invalid syntax
 
What is the matter?
Reply all
Reply to author
Forward
0 new messages