New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependencies for Thunderbird Qubes Attachments? #2071

Open
andrewdavidwong opened this Issue Jun 15, 2016 · 7 comments

Comments

Projects
None yet
4 participants
@andrewdavidwong
Member

andrewdavidwong commented Jun 15, 2016

Qubes OS version (e.g., R3.1):

R3.1

Affected TemplateVMs (e.g., fedora-23, if applicable):

fedora-23-minimal


My email VMs are based on a modified clone of fedora-23-minimal with Thunderbird and a few other packages installed. Recently, I've noticed that certain Qubes Attachments functions, such as "send all [attachments] to VM" have stopped working in these VMs. (Clicking the button does nothing.) Basing the VM on fedora-23 instead causes it to work, so I'm guessing that there's some kind of missing dependency.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jun 15, 2016

Member

Start Thunderbird from xterm and check what error will you get there.

Member

marmarek commented Jun 15, 2016

Start Thunderbird from xterm and check what error will you get there.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Jun 15, 2016

Member

Here's the traceback when clicking the "send all to VM" button:

Traceback (most recent call last):
  File "/usr/bin/qvm-mru-entry", line 24, in <module>
    import gtk
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: No module named cairo
Member

andrewdavidwong commented Jun 15, 2016

Here's the traceback when clicking the "send all to VM" button:

Traceback (most recent call last):
  File "/usr/bin/qvm-mru-entry", line 24, in <module>
    import gtk
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: No module named cairo
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jun 15, 2016

Member

It looks like pycairo is excluded from minimal template (even though it is dependency of pygtk2 which is installed). Try installing pycairo package and see how much data will it put into the minimal template. If not much, probably worth including.

Member

marmarek commented Jun 15, 2016

It looks like pycairo is excluded from minimal template (even though it is dependency of pygtk2 which is installed). Try installing pycairo package and see how much data will it put into the minimal template. If not much, probably worth including.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Jun 15, 2016

Member

Not bad at all, and it fixes the issue:

bash-4.3# dnf install pycairo
Last metadata expiration check: 1:34:07 ago on Wed Jun 15 00:46:12 2016.
Dependencies resolved.
================================================================================
 Package          Arch            Version                 Repository       Size
================================================================================
Installing:
 pycairo          x86_64          1.10.0-2.fc23           fedora          515 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 515 k
Installed size: 1.0 M
Is this ok [y/N]:
Member

andrewdavidwong commented Jun 15, 2016

Not bad at all, and it fixes the issue:

bash-4.3# dnf install pycairo
Last metadata expiration check: 1:34:07 ago on Wed Jun 15 00:46:12 2016.
Dependencies resolved.
================================================================================
 Package          Arch            Version                 Repository       Size
================================================================================
Installing:
 pycairo          x86_64          1.10.0-2.fc23           fedora          515 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 515 k
Installed size: 1.0 M
Is this ok [y/N]:
@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos Jun 15, 2016

Member

Andrew David Wong:

Here's the traceback when clicking the "send all to VM" button:

Traceback (most recent call last):
  File "/usr/bin/qvm-mru-entry", line 24, in <module>
    import gtk
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: No module named cairo

Wild guess. Try this.

sudo apt-get install python-cairo

Or.

sudo apt-get install python-gtk2

Member

adrelanos commented Jun 15, 2016

Andrew David Wong:

Here's the traceback when clicking the "send all to VM" button:

Traceback (most recent call last):
  File "/usr/bin/qvm-mru-entry", line 24, in <module>
    import gtk
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: No module named cairo

Wild guess. Try this.

sudo apt-get install python-cairo

Or.

sudo apt-get install python-gtk2

marmarek added a commit to marmarek/qubes-builder-rpm that referenced this issue Jun 16, 2016

Don't exclude pycairo package in minimal template
It is required by pygtk2 and when missing end up with mysterious
failure. Since the package is small, lets include it also in minimal
template.

Fixes QubesOS/qubes-issues#2071

marmarek added a commit to marmarek/qubes-builder-rpm that referenced this issue Jun 18, 2016

Don't exclude pycairo package in minimal template
It is required by pygtk2 and when missing end up with mysterious
failure. Since the package is small, lets include it also in minimal
template.

Fixes QubesOS/qubes-issues#2071

@marmarek marmarek self-assigned this Jul 11, 2016

@unman

This comment has been minimized.

Show comment
Hide comment
@unman

unman Apr 14, 2017

Member

@marmarek Is there any reason why you haven't merged your commits to the Qubes repo? It seems odd this issue is still open, when the solution is there.

Member

unman commented Apr 14, 2017

@marmarek Is there any reason why you haven't merged your commits to the Qubes repo? It seems odd this issue is still open, when the solution is there.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Apr 18, 2017

Member

qubes-template-minimal-stub is not included in any repository (and shouldn't be), so just merging this will affect only newly built templates. This is one more thing requiring #2572

Member

marmarek commented Apr 18, 2017

qubes-template-minimal-stub is not included in any repository (and shouldn't be), so just merging this will affect only newly built templates. This is one more thing requiring #2572

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment