Package Details: mirage 1.0_pre2-4

Git Clone URL: https://aur.archlinux.org/mirage.git (read-only, click to copy)
Package Base: mirage
Description: A simple GTK+ Image Viewer
Upstream URL: https://sourceforge.net/projects/mirageiv.berlios/
Licenses: GPL
Submitter: Barthalion
Maintainer: dmitmel
Last Packager: dmitmel
Votes: 13
Popularity: 0.001591
First Submitted: 2018-01-07 16:15 (UTC)
Last Updated: 2019-12-29 00:00 (UTC)

Dependencies (3)

Required by (0)

Sources (3)

Latest Comments

Tio commented on 2022-01-29 14:33 (UTC)

Ah I apologize. Works now. Thank you!

dmitmel commented on 2022-01-29 14:31 (UTC)

Tio: Please see the previous comments.

Tio commented on 2022-01-29 14:28 (UTC)

I cannot make it open. Maybe this is not the place to post about this?

mirage                                                                   
Traceback (most recent call last):
  File "/usr/bin/mirage", line 27, in <module>
    import mirage
  File "/usr/lib/python2.7/site-packages/mirage.py", line 30, in <module>
    import gtk
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
    import gobject as _gobject
  File "/usr/lib/python2.7/site-packages/gobject/__init__.py", line 47, in <module>
    from gobject.constants import *
  File "/usr/lib/python2.7/site-packages/gobject/constants.py", line 24, in <module>
    import gobject._gobject
ImportError: libffi.so.7: cannot open shared object file: No such file or directory

CanadianEngineer commented on 2022-01-18 03:07 (UTC)

dmitmel's suggestion worked. I was getting the exact same error, ran yay -S --rebuild python2-gobject2, and that solved my issue. Thanks dmitmel!

dmitmel commented on 2021-12-03 18:54 (UTC)

DAC324: python2-gobject2 is a transitive dependency. The "library is missing" error is due to mismatching shared object versions. You have to rebuild the python2-gobject2 package. For example, for yay the command is: yay -S --rebuild python2-gobject2.

DAC324 commented on 2021-12-03 18:50 (UTC)

Looks like python2-gobject2 is indeed required but it does not appear in the package's dependencies. So,like me, if you are experiencing the same error @Kaiya encountered

Traceback (most recent call last):
  File "/usr/bin/mirage", line 27, in <module>
    import mirage
  File "/usr/lib/python2.7/site-packages/mirage.py", line 30, in <module>
    import gtk
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
    import gobject as _gobject
  File "/usr/lib/python2.7/site-packages/gobject/__init__.py", line 47, in <module>
    from gobject.constants import *
  File "/usr/lib/python2.7/site-packages/gobject/constants.py", line 24, in <module>
    import gobject._gobject
ImportError: libffi.so.7: cannot open shared object file: No such file or directory

you will have to install python2-gobject2 from AUR as well as this package is not retrieved automatically when installing mirage.

dmitmel commented on 2021-10-24 12:29 (UTC)

Kaiya: The issue with libffi seems to have been resolved (https://aur.archlinux.org/cgit/aur.git/commit/?h=python2-gobject2&id=b02190379ab524bcd89bc1b268911ffcdce48568), please unflag this package.

zuzavo commented on 2021-10-23 12:39 (UTC)

Maybe there are people using python2 packages in virtualbox for they own reasons..

zuzavo commented on 2021-10-23 12:35 (UTC)

@dmitmel. Yes, I know you are the maintainer (thanks) I reefer that haven't been any update since 2014.

dmitmel commented on 2021-10-23 12:27 (UTC) (edited on 2021-10-23 12:28 (UTC) by dmitmel)

Well, the package isn't exactly unmaintained, the original software is, but yes, a maintained fork exists, which can be installed from the package mirage-python3.

zuzavo commented on 2021-10-23 12:25 (UTC)

Why are you installing an unmaintained package with python2? Python2 is a security risk. Here in the AUR is a python3 mirage.

dmitmel commented on 2021-10-23 12:20 (UTC)

The problem seems to be with that package and not mirage. On my system the last line in the stack trace you posted, import gobject._gobject, loads /usr/lib/python2.7/site-packages/gobject/_gobject.so, which is linked to libffi.so.8 and not libffi.so.7.

dmitmel commented on 2021-10-23 12:12 (UTC)

Kaiya: Try rebuilding the python2-gobject2 package

Kaiya commented on 2021-10-23 09:50 (UTC)

Package is currently broken:

$ mirage
Traceback (most recent call last):
  File "/usr/bin/mirage", line 27, in <module>
    import mirage
  File "/usr/lib/python2.7/site-packages/mirage.py", line 30, in <module>
    import gtk
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
    import gobject as _gobject
  File "/usr/lib/python2.7/site-packages/gobject/__init__.py", line 47, in <module>
    from gobject.constants import *
  File "/usr/lib/python2.7/site-packages/gobject/constants.py", line 24, in <module>
    import gobject._gobject
ImportError: libffi.so.7: cannot open shared object file: No such file or directory

zuzavo commented on 2021-05-21 16:06 (UTC)

@dmitmel thanks !!!!

Vedun commented on 2021-05-21 08:57 (UTC)

dmitmel: Ooh, thank you very much!

dmitmel commented on 2021-05-21 08:15 (UTC)

Vedun: Packaged and uploaded mirage-python3 (https://aur.archlinux.org/packages/mirage-python3/)

Vedun commented on 2021-05-20 23:31 (UTC)

@zuzavo the package is on GitLab but I do not know how to create PKGBUILD :(

https://gitlab.com/thomasross/mirage

and there is DEB

https://launchpad.net/ubuntu/impish/amd64/mirage/0.11.1-1build2

zuzavo commented on 2020-05-03 19:38 (UTC) (edited on 2020-05-03 19:39 (UTC) by zuzavo)

I have searched all over github for this package ported to python3 but for now without success. :(

dmitmel commented on 2019-09-03 21:41 (UTC)

Ralf_Mardorf: I added a post_upgrade hook which notifies about this issue when upgrading to 1.x

Ralf_Mardorf commented on 2019-09-02 22:48 (UTC) (edited on 2019-09-02 22:50 (UTC) by Ralf_Mardorf)

My apologies, I should have read the comments carefully, instead of just skimming through a few of them. 1.0_pre2-2 works now. Perhaps it's worth to add a pinned comment.

dmitmel commented on 2019-09-02 20:48 (UTC)

Ralf_Mardorf, remove directory ~/.config/mirage and try running mirage again

Ralf_Mardorf commented on 2019-09-02 20:47 (UTC)

mirage 1.0_pre2-2 and 1.0_pre2-1 don't start, I needed to downgrade to 0.9.5.2-6

$ pacman -Q mirage 
mirage 1.0_pre2-2
$ mirage
Traceback (most recent call last):
  File "/usr/bin/mirage", line 30, in <module>
    app = mirage.Base()
  File "/usr/lib/python2.7/site-packages/mirage.py", line 227, in __init__
    self.read_config_and_set_settings()
  File "/usr/lib/python2.7/site-packages/mirage.py", line 714, in read_config_and_set_settings
    self.bgcolor = gtk.gdk.Color(red=bg['r'], green=bg['g'], blue=bg['b'])
TypeError: list indices must be integers, not str
$ sudo pacman -U /var/cache/aur/old/mirage-1.0_pre2-1-x86_64.pkg.tar.xz 
[snip]
$ mirage
Traceback (most recent call last):
  File "/usr/bin/mirage", line 30, in <module>
    app = mirage.Base()
  File "/usr/lib/python2.7/site-packages/mirage.py", line 227, in __init__
    self.read_config_and_set_settings()
  File "/usr/lib/python2.7/site-packages/mirage.py", line 714, in read_config_and_set_settings
    self.bgcolor = gtk.gdk.Color(red=bg['r'], green=bg['g'], blue=bg['b'])
TypeError: list indices must be integers, not str

fabertawe commented on 2019-08-24 13:14 (UTC)

@dmitmel - It appears to be working now, thanks :)

dmitmel commented on 2019-08-24 12:08 (UTC)

fabertawe, fixed your error in 1.0_pre2-2. Try updating.

fabertawe commented on 2019-08-24 11:58 (UTC)

Thanks for the info dmitmel, I've edited the original post.

dmitmel commented on 2019-08-24 11:51 (UTC)

Also, how do you format for proper code blocks in these comments?

Either surround your code with three backtics (`) or three tildes (~) or indent it with four spaces. Like this:

    code
    block
```
code
block
```
~~~
code
block
~~~

Could you please post Python traceback with proper formatting?

fabertawe commented on 2019-08-24 11:43 (UTC) (edited on 2019-08-24 11:57 (UTC) by fabertawe)

With ~/.config/mirage removed -

Traceback (most recent call last):
  File "/usr/bin/mirage", line 30, in <module>
    app = mirage.Base()
  File "/usr/lib/python2.7/site-packages/mirage.py", line 694, in __init__
    self.expand_filelist_and_load_image(args)
  File "/usr/lib/python2.7/site-packages/mirage.py", line 4285, in expand_filelist_and_load_image
    self.load_new_image2(False, False, True, True)
  File "/usr/lib/python2.7/site-packages/mirage.py", line 4025, in load_new_image2
    self.currimg.load_pixbuf(image_name)
  File "/usr/lib/python2.7/site-packages/mirage.py", line 4633, in load_pixbuf
    orientation = self.exif_metadata['1']['Orientation'][0]
TypeError: 'NoneType' object has no attribute '__getitem__'

Also, how do you format for proper code blocks in these comments?

dmitmel commented on 2019-08-24 11:37 (UTC)

fabertawe, remove directory ~/.config/mirage and try running mirage again.

fabertawe commented on 2019-08-24 11:36 (UTC) (edited on 2019-08-24 11:59 (UTC) by fabertawe)

Traceback (most recent call last):
  File "/usr/bin/mirage", line 30, in <module>
    app = mirage.Base()
  File "/usr/lib/python2.7/site-packages/mirage.py", line 227, in __init__
    self.read_config_and_set_settings()
  File "/usr/lib/python2.7/site-packages/mirage.py", line 714, in read_config_and_set_settings
    self.bgcolor = gtk.gdk.Color(red=bg['r'], green=bg['g'], blue=bg['b'])
TypeError: list indices must be integers, not str

dmitmel commented on 2019-08-24 11:20 (UTC)

I created a replacement for python2-exiv2 just for this package, so now 1.0_pre2 works totally fine for me with my patches. Please, try updating the package to 1.0_pre2-1 and post error messages if it doesn't work.

fabertawe commented on 2019-08-24 11:18 (UTC)

1.0_pre2-1 doesn't work. I think that's why this package was kept at 0.9.5.2

OrdinaryMagician commented on 2019-08-24 09:02 (UTC)

Still doesn't work on my end. Crashes immediately when opening any image, no matter the format. Previous version works, at least.

zuzavo commented on 2019-06-23 21:56 (UTC)

python2-exiv2 is broken. Deleting it from dependencies makes mirage works again

Ralf_Mardorf commented on 2018-05-13 07:04 (UTC) (edited on 2018-05-13 07:11 (UTC) by Ralf_Mardorf)

Downgrading package mirage (1.0_pre1-1 => 0.9.5.2-4) does the trick. SICR

My apologies, building 0.9.5.2-5 does the trick, too.

Kakashi-sensei commented on 2018-05-12 01:57 (UTC) (edited on 2018-05-12 01:58 (UTC) by Kakashi-sensei)

But then, it still crashes:

Traceback (most recent call last):

File "/usr/bin/mirage", line 30, in <module></module>

app = mirage.Base()

File "/usr/lib/python2.7/site-packages/mirage.py", line 227, in init

self.read_config_and_set_settings()

File "/usr/lib/python2.7/site-packages/mirage.py", line 714, in read_config_and_set_settings

self.bgcolor = gtk.gdk.Color(red=bg['r'], green=bg['g'], blue=bg['b'])

TypeError: list indices must be integers, not str

Kakashi-sensei commented on 2018-05-12 01:56 (UTC)

python2-exiv2 needs to be added as a dependency.