Skip to content

ImportError: cannot import name QtWidgets  #1

@llobetv

Description

@llobetv

Hi,

I'm trying to install you're library to test it on my data but i got this error :

Traceback (most recent call last):
File "", line 1, in
File "/users/nsr/llobet/miniconda2/envs/neoAnalysis/lib/python2.7/site-packages/NeoAnalysis/init.py", line 2, in
from NeoAnalysis.spikedetection import SpikeDetection
File "/users/nsr/llobet/miniconda2/envs/neoAnalysis/lib/python2.7/site-packages/NeoAnalysis/spikedetection.py", line 6, in
from .pyqtgraph.Qt import QtCore, QtGui, QtWidgets
ImportError: cannot import name QtWidgets

I've got PyQt4 and it's probably come from import QtWidgets that doesn't exist in PyQt4 (function seems to be in QtGui). In Qt.py You begin to transfer function of QtWidget to QtGui to allow compatibility with Qt4 and Qt5 but you didn't do it for QtWidget.QInputDialog and QtWidget.QMessageBox that you use in analogfilter.py, spikedetection.py and spikesorting.py where you try to import QtWidget.

I change QtWidget to QtGui and i'll see if it's working when i'll manage to convert my data in you're format.

Best,

Victor Llobet,
PhD Student

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