virt-manager doesn't start, missing SSL_ST_INIT

Bug #1740959 reported by 123vier
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Description: Ubuntu 16.04.3 LTS

virt-manager:
  Installed: 1:1.3.2-3ubuntu1.16.04.4
  Candidate: 1:1.3.2-3ubuntu1.16.04.4
  Version table:
 *** 1:1.3.2-3ubuntu1.16.04.4 500
        500 http://at.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
        500 http://at.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages
        100 /var/lib/dpkg/status
     1:1.3.2-3ubuntu1 500
        500 http://at.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://at.archive.ubuntu.com/ubuntu xenial/universe i386 Packages

Starting virt-manager as a non-privileged user leads to this:

virt-manager
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager", line 34, in <module>
    from virtinst import util as util
  File "/usr/share/virt-manager/virtinst/__init__.py", line 87, in <module>
    from virtinst.distroinstaller import DistroInstaller
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 26, in <module>
    from . import urlfetcher
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 27, in <module>
    import requests
  File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 53, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 54, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virt-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Eero Aaltonen (ejn) wrote :

Same cause as bug #1733311

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks Eero!

The referred bug has a fix as it identified the issue is in the pip library conflicting with system packages. Does reverting those to the in-archive state fix your issue as well 123vier?

Changed in virt-manager (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Eero Aaltonen (ejn) wrote : Re: [Bug 1740959] Re: virt-manager doesn't start, missing SSL_ST_INIT

@paelzer I don't really understand your comment. On my system, pip is also
installed as a Debian package, python-pip 8.1.1-2ubuntu0.4

On Thu, Mar 22, 2018 at 3:18 PM, ChristianEhrhardt <
<email address hidden>> wrote:

> Thanks Eero!
>
> The referred bug has a fix as it identified the issue is in the pip
> library conflicting with system packages. Does reverting those to the
> in-archive state fix your issue as well 123vier?
>
> ** Changed in: virt-manager (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1740959
>
> Title:
> virt-manager doesn't start, missing SSL_ST_INIT
>
> Status in virt-manager package in Ubuntu:
> Incomplete
>
> Bug description:
> Description: Ubuntu 16.04.3 LTS
>
> virt-manager:
> Installed: 1:1.3.2-3ubuntu1.16.04.4
> Candidate: 1:1.3.2-3ubuntu1.16.04.4
> Version table:
> *** 1:1.3.2-3ubuntu1.16.04.4 500
> 500 http://at.archive.ubuntu.com/ubuntu xenial-updates/universe
> amd64 Packages
> 500 http://at.archive.ubuntu.com/ubuntu xenial-updates/universe
> i386 Packages
> 100 /var/lib/dpkg/status
> 1:1.3.2-3ubuntu1 500
> 500 http://at.archive.ubuntu.com/ubuntu xenial/universe amd64
> Packages
> 500 http://at.archive.ubuntu.com/ubuntu xenial/universe i386
> Packages
>
> Starting virt-manager as a non-privileged user leads to this:
>
>
> virt-manager
> Traceback (most recent call last):
> File "/usr/share/virt-manager/virt-manager", line 34, in <module>
> from virtinst import util as util
> File "/usr/share/virt-manager/virtinst/__init__.py", line 87, in
> <module>
> from virtinst.distroinstaller import DistroInstaller
> File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 26,
> in <module>
> from . import urlfetcher
> File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 27, in
> <module>
> import requests
> File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line
> 53, in <module>
> from .packages.urllib3.contrib import pyopenssl
> File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py",
> line 54, in <module>
> import OpenSSL.SSL
> File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8,
> in <module>
> from OpenSSL import rand, crypto, SSL
> File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in
> <module>
> SSL_ST_INIT = _lib.SSL_ST_INIT
> AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/virt-manager/+
> bug/1740959/+subscriptions
>

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

@Eero
In the linked bug the case is as following
You have
- packages depending on python-cryptography
- a package for python-cryptography itself
- an install of a newer cryptography through pip overrides what the system uses by default
- that breaks the packages that depend on the older version

If you run:
$ sudo pip uninstall cryptography
$ sudo apt install --reinstall python-cryptography

The issue should be resolved.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for virt-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in virt-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.