Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494152 - net-misc/openvswitch USE="monitor pyside" - ovsdbmonitor: ImportError: cannot import name QVariant
Summary: net-misc/openvswitch USE="monitor pyside" - ovsdbmonitor: ImportError: cannot...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-13 14:46 UTC by Christian Bricart
Modified: 2014-02-09 08:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Bricart 2013-12-13 14:46:03 UTC
any ebuild of net-misc/openvswitch defines the preference to USE="pyside" when enabling USE="monitor" via IUSE=...+pyside

USE="-pyside" would rather depend on dev-python/PyQt4 than dev-python/pyside to fulfill the Python QT4 bindings for this GUI app..

the installed file
  /usr/share/ovsdbmonitor/OVEStandard.py
also switches for the existence of PyQt4 or pyside:

> try:
> ..
>     from PyQt4.QtCore import Qt, QVariant
>     from PyQt4 import QtCore, QtGui
> except:
>     try:
>         from PySide.QtCore import Qt, QVariant
>         from PySide import QtCore, QtGui

BUT: QVariant was removed from PySide's API more than 2 years ago..
(source: https://www.mail-archive.com/pyside@lists.openbossa.org/msg00656.html )

So either we have to patch upstream source, remove/hardmask the dev-python/pyside alternative from the ebuilds or at least do not declare the the default...









Reproducible: Always

Steps to Reproduce:
1. USE="monitor pyside" emerge net-misc/openvswitch
2. # ovsdbmonitor
Actual Results:  
~ # ovsdbmonitor 
+++ This application requires either PyQt4 or PySide

Traceback (most recent call last):
  File "/usr/bin/ovsdbmonitor", line 24, in <module>
    from OVEApp import *
  File "/usr/share/ovsdbmonitor/OVEApp.py", line 16, in <module>
    from OVEStandard import *
  File "/usr/share/ovsdbmonitor/OVEStandard.py", line 37, in <module>
    from PySide.QtCore import Qt, QVariant
ImportError: cannot import name QVariant
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-02-09 08:56:42 UTC
I removed it from 2.0.0-r2