Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#51759 - [cinnamon] import error: no module named gi

Attached to Project: Community Packages
Opened by Franz Rogar (franzrogar) - Wednesday, 09 November 2016, 07:04 GMT
Last edited by Alexandre Filgueira (faidoc) - Thursday, 10 November 2016, 19:45 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexandre Filgueira (faidoc)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: current version (3.2.1-1) install "gobject introspection" (gi) as dependency but it's not detected by "cinnamon-settings", which throws this error:

Traceback (most recent call last):
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 17, in <module>
import gi
ImportError: No module named gi



Steps to reproduce:
1) Update and execute "cinnamon-settings"


Possible problem: python bindings missing?
This task depends upon

Closed by  Alexandre Filgueira (faidoc)
Thursday, 10 November 2016, 19:45 GMT
Reason for closing:  Fixed
Comment by lxhillwind (lxhillwind) - Wednesday, 09 November 2016, 08:31 GMT
I removed python2-gobject when I executed a system-upgrade, because yaourt told me that python2-gobject is not needed by any package. Then I encountered the same problem.

The first line of file "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py" is "#!/usr/bin/env python2", so I installed python2-gobject to see if it would solve this problem, and it works.

I think it's better to add python2-gobject as dependency of cinnamon-settings-daemon.
Comment by Franz Rogar (franzrogar) - Wednesday, 09 November 2016, 08:33 GMT
I confirm what you wrote, lxhillwind, I also did an orphan clean up and lacked the package.

Reinstalling (as you stated) python2-gobject make the cinnamon-settings work again. Thank you very much for the information.
Comment by Alexandre Filgueira (faidoc) - Wednesday, 09 November 2016, 16:03 GMT
I've just released a new one with python2-gobject as dependency

Loading...