'module' object has no attribute 'qInstallMsgHandler'

63 views
Skip to first unread message

Omid M

unread,
Aug 30, 2018, 5:31:00 PM8/30/18
to ACQ4
Hi, I just install the acq4 package and having a hard time running acq4. I basically followed all you instruction:
1) Installed anaconda   (worked)
2) conda install pyserial pyqt=4 pyparsing=2.0.3  (worked)
3)python setup.py install   (worked) 
4) try to run acq4 (Got an error)
I am including the error below. 

Thanks in advance!!



C:\my-www\acq4>acq4

C:\my-www\acq4>rem ACQ4 invocation script  (www.acq4.org)

C:\my-www\acq4>python -m acq4
C:\ProgramData\Anaconda2\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda2\lib\runpy.py", line 163, in _run_module_as_main
    mod_name, _Error)
  File "C:\ProgramData\Anaconda2\lib\runpy.py", line 111, in _get_module_details
    __import__(mod_name)  # Do not catch exceptions initializing package
  File "acq4\__init__.py", line 108, in <module>
    pg.QtCore.qInstallMsgHandler(messageHandler)
AttributeError: 'module' object has no attribute 'qInstallMsgHandler'

C:\my-www\acq4>pause
Press any key to continue . . .

C:\my-www\acq4>

Luke Campagnola

unread,
Aug 30, 2018, 7:01:13 PM8/30/18
to ACQ4

Greetings!

This error occurs because acq4 requires PyQt version 4, and you have version 5.

You can usually downgrade by running `conda install pyqt=4`


Support for PyQt5 is currently in progress.



Cheers,

Luke


From: ac...@googlegroups.com <ac...@googlegroups.com> on behalf of Omid M <omas...@gmail.com>
Sent: Thursday, August 30, 2018 2:31:00 PM
To: ACQ4
Subject: [acq4] 'module' object has no attribute 'qInstallMsgHandler'
 
--
You received this message because you are subscribed to the Google Groups "ACQ4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acq4+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/acq4/d63766b9-45a6-4194-82ef-d60342f69c6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Omid M

unread,
Aug 30, 2018, 7:38:06 PM8/30/18
to ACQ4
Thanks Luke,
That's what I figured. I am currently trying to install pyqt4, but I am getting some other errors:

(base) C:\Users\masihzao>conda install pyqt=4
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda2

  added / updated specs:
    - pyqt=4


The following packages will be REMOVED:

    anaconda:           5.2.0-py27_3

The following packages will be UPDATED:

    certifi:            2018.4.16-py27_0      --> 2018.8.24-py27_1
    conda:              4.5.4-py27_0          --> 4.5.11-py27_0
    mkl:                2018.0.2-1            --> 2018.0.3-1
    openssl:            1.0.2o-h2c51139_0     --> 1.0.2p-h0c8e037_0

The following packages will be DOWNGRADED:

    anaconda-navigator: 1.8.7-py27_0          --> 1.8.4-py27_0
    jpeg:               9b-ha175dff_2         --> 8d-vc9_2
    libtiff:            4.0.9-h1c3b264_1      --> 4.0.6-vc9_2
    matplotlib:         2.2.2-py27h8803d4e_1  --> 1.5.1-np111py27_0
    navigator-updater:  0.2.1-py27_0          --> 0.2.0-py27_0
    numpy:              1.14.3-py27h911edcf_1 --> 1.11.3-py27hc42714f_10
    numpy-base:         1.14.3-py27h917549b_1 --> 1.11.3-py27h2753ae9_10
    pillow:             5.1.0-py27h901f87c_0  --> 3.0.0-py27_0
    pyqt:               5.6.0-py27h224ed30_5  --> 4.11.4-py27_7
    qt:                 5.6.2-vc9hc26998b_12  --> 4.8.7-vc9_9
    sip:                4.18.1-py27h5ec1c1a_2 --> 4.18-py27_0
    tk:                 8.6.7-h144d9c4_3      --> 8.5.18-vc9_0

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling package 'defaults::anaconda-5.2.0-py27_3'.
WindowsError(5, 'Access is denied')
Attempting to roll back.

Rolling back transaction: done

WindowsError(5, 'Access is denied')

Thanks!!

Luke Campagnola

unread,
Aug 30, 2018, 8:06:32 PM8/30/18
to ac...@googlegroups.com

Not sure why you would get access denied there.. do you have python running anywhere?


Sent: Thursday, August 30, 2018 4:38:06 PM
To: ACQ4
Subject: Re: [acq4] 'module' object has no attribute 'qInstallMsgHandler'
 
--
You received this message because you are subscribed to the Google Groups "ACQ4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acq4+uns...@googlegroups.com.

Omid M

unread,
Aug 30, 2018, 8:12:35 PM8/30/18
to ACQ4
No.Pretty sure I am not. Restarted the computer and executed the command. Same result.

Luke Campagnola

unread,
Aug 31, 2018, 2:32:19 PM8/31/18
to ac...@googlegroups.com

Ah, of  course the python in use is probably the conda process doing the install.

Seems like every 6 months or so, the process of installing pyqt4 gets a little harder; we need to get our pyqt5 support out soon.


I think the way to get pyqt4 right now is by creating an empty conda environment with just the packages you need, like:


    conda create -n acq4-env python=2.7 pyqt=4 numpy scipy h5py pyserial faulthandler pillow


Then to run acq4 it would be:


    conda activate acq4-env

    python -m acq4




Sent: Thursday, August 30, 2018 5:12:35 PM
Reply all
Reply to author
Forward
0 new messages