Skip to content

lantz import issues #74

Open
Open
@mlaspisa

Description

@mlaspisa

Hello,
I'm new to lantz, not sure if I'm doing something wrong. I believe that I installed everything correctly, but I'm having issues when using the following code:

from lantz import Q_
from lantz import Feat, DictFeat

I get the same response shown below for both:
Traceback (most recent call last):
File "<pyshell#32>", line 1, in
from lantz import Q_
File "C:\Python34\lib\site-packages\lantz_init_.py", line 25, in
from .driver import Driver, Feat, DictFeat, Action, initialize_many, finalize_many
File "C:\Python34\lib\site-packages\lantz\driver.py", line 19, in
from .utils.qt import MetaQObject, SuperQObject, QtCore
File "C:\Python34\lib\site-packages\lantz\utils\qt.py", line 33, in
QtCore, QtGui, QtSvg, QT_API = load_qt(api_opts)
File "C:\Python34\lib\site-packages\lantz\utils\qt_loaders.py", line 364, in load_qt
if not can_import(api):
File "C:\Python34\lib\site-packages\lantz\utils\qt_loaders.py", line 172, in can_import
if not has_binding(api):
File "C:\Python34\lib\site-packages\lantz\utils\qt_loaders.py", line 146, in has_binding
return check_version(mod.version, '1.0.3')
AttributeError: 'module' object has no attribute 'version'

However, I don't get an error when I run this code:

from lantz.log import log_to_screen, DEBUG
log_to_screen(DEBUG)
<logging.Logger object at 0x04B0A9F0>

I appreciate any suggestions.

Thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions