[pymvpa] 'DueSwitch' object has no attribute 'cite'

Yaroslav Halchenko debian at onerussian.com
Mon Feb 4 03:53:00 GMT 2019


On Sat, 02 Feb 2019, Anthony Sali wrote:

>    Hello,
>    I’ve recently installed pymvpa in a neurodebian machine.  When I attempt
>    to import mvpa2, I receive the following error:
>    “AttributeError: ‘DueSwitch’ object has no attribute ‘cite’”
>    Could you please advise me on how to fix this issue?

First I thought "no way -- we safeguarded it all nicely", but trying in the VM
indeed showed (next time please don't be shy to provide more
context/cut-paste):

In [1]: import mvpa2.suite
2019-02-03 22:45:59,185 [WARNING] DueCredit internal failure while running <function _get_inactive_due at 0x7fcf31441aa0>: VerificationError("importing '/usr/lib/python2.7/dist-packages/cryptography/_Cryptography_cffi_813c10e0x7adb75f8.x86_64-linux-gnu.so': /usr/lib/python2.7/dist-packages/cryptography/_Cryptography_cffi_813c10e0x7adb75f8.x86_64-linux-gnu.so: symbol SSLv2_client_method, version OPENSSL_1.0.0 not defined in file libssl.so.1.0.0 with link time reference",). Please report to developers at https://github.com/duecredit/duecredit/issues (utils.py:199)
2019-02-03 22:45:59,577 [WARNING] DueCredit internal failure while running <function _get_active_due at 0x7fcf31441b90>: VerificationError("importing '/usr/lib/python2.7/dist-packages/cryptography/_Cryptography_cffi_813c10e0x7adb75f8.x86_64-linux-gnu.so': /usr/lib/python2.7/dist-packages/cryptography/_Cryptography_cffi_813c10e0x7adb75f8.x86_64-linux-gnu.so: symbol SSLv2_client_method, version OPENSSL_1.0.0 not defined in file libssl.so.1.0.0 with link time reference",). Please report to developers at https://github.com/duecredit/duecredit/issues (utils.py:199)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-5683d326b6b2> in <module>()
----> 1 import mvpa2.suite

/usr/lib/python2.7/dist-packages/mvpa2/__init__.pyc in <module>()
    177 # Setup duecredit entry for the entire PyMVPA
    178 from .support.due import due, Doi
--> 179 due.cite(
    180     Doi("10.1007/s12021-008-9041-y"),
    181     description="Multivariate pattern analysis of neural data",

AttributeError: 'DueSwitch' object has no attribute 'cite'


quick workaround is to either upgrade openssl library (thanks @fkalbe on
github: https://github.com/duecredit/duecredit/issues/142) 

  sudo apt-get install libssl1.0.0=1.0.1t-1+deb8u10

or uninstall duecredit for now:

  sudo dpkg --purge python-duecredit


Cheers,
-- 
Yaroslav O. Halchenko
Center for Open Neuroscience     http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        



More information about the Pkg-ExpPsy-PyMVPA mailing list