Menu

#18 MComix 2.0 only works with Root

MComix_2.0.0
open
nobody
None
7
2022-02-18
2022-02-14
Finder X
No

Hi, I using the linux version of MC 2.0 and the only way is running correctly is using sudo or su.

When is execute with normal user this happens:

Traceback (most recent call last):
  File "mcomixstarter.py", line 22, in <module>
    mcomix.run.run()
  File "/home/user/Programs/mcomix-2.0.0/mcomix-2.0.0/mcomix/run.py", line 187, in run
    window = main.MainWindow(fullscreen = opts.fullscreen, is_slideshow = opts.slideshow,
  File "/home/user/Programs/mcomix-2.0.0/mcomix-2.0.0/mcomix/main.py", line 89, in __init__
    self.thumbnailsidebar = thumbbar.ThumbnailSidebar(self)
  File "/home/user/Programs/mcomix-2.0.0/mcomix-2.0.0/mcomix/thumbbar.py", line 86, in __init__
    self.change_thumbnail_background_color(prefs['thumb bg colour'])
  File "/home/user/Programs/mcomix-2.0.0/mcomix-2.0.0/mcomix/thumbbar.py", line 137, in change_thumbnail_background_color
    self.set_thumbnail_background(colour)
  File "/home/user/Programs/mcomix-2.0.0/mcomix-2.0.0/mcomix/thumbbar.py", line 143, in set_thumbnail_background
    rgba = Gdk.RGBA(*image_tools.color_to_floats_rgba(color))
TypeError: __init__() takes from 1 to 5 positional arguments but 6 were given

Discussion

  • Oddegamra

    Oddegamra - 2022-02-14

    Looks like a bug related to the GTK3 conversion. The thumbnail background color is stored incorrectly in ~/.config/mcomix/preferences.conf. Maybe a relict from old preferences? Could you post which values the key "thumb bg color" is currently set to?

    As a workaround, you can delete the key "thumb bg color" in this file, and MComix should start up again.

     

    Last edit: Oddegamra 2022-02-14
  • Finder X

    Finder X - 2022-02-14

    Hi, I try removing "thumb bg colour" and a similar error occurs, next I removed "bg colour" and MC open fine. Yes :). Thank you.

    Now I have this new errors, I can't open any file:
    This one is when I try Open > browse some file and try open one zip file with images into it.

    03:40:11 [MainThread] ERROR: ! Callback <bound method FileHandler._listed_contents of <mcomix.file_handler.FileHandler object at 0x7fc91120d6d0>> failed: cannot unpack non-iterable NoneType object
    

    Next I try open the library and this happens:

    03:37:41 [Thread-4-thumbview] ERROR: ! Worker thread processing <bound method ThumbnailViewBase._pixbuf_worker of <thumbnail_view.ThumbnailIconView object at 0x7f0c1e6fc440 (mcomix+thumbnail_view+ThumbnailIconView at 0x34282b0)>> failed: invalid literal for int() with base 10: '1610720074.266616'
    03:37:41 [Thread-2-thumbview] ERROR: ! Worker thread processing <bound method ThumbnailViewBase._pixbuf_worker of <thumbnail_view.ThumbnailIconView object at 0x7f0c1e6fc440 (mcomix+thumbnail_view+ThumbnailIconView at 0x34282b0)>> failed: invalid literal for int() with base 10: '1625453534.5380878'
    03:37:41 [Thread-3-thumbview] ERROR: ! Worker thread processing <bound method ThumbnailViewBase._pixbuf_worker of <thumbnail_view.ThumbnailIconView object at 0x7f0c1e6fc440 (mcomix+thumbnail_view+ThumbnailIconView at 0x34282b0)>> failed: invalid literal for int() with base 10: '1630366589.4376938'
    03:37:41 [Thread-4-thumbview] ERROR: ! Worker thread processing <bound method ThumbnailViewBase._pixbuf_worker of <thumbnail_view.ThumbnailIconView object at 0x7f0c1e6fc440 (mcomix+thumbnail_view+ThumbnailIconView at 0x34282b0)>> failed: invalid literal for int() with base 10: '1643875854.4296398'
    

    For make sure, I used the mcomixstarter.py and after all those error, I try

    python3 setup.py install --single-version-externally-managed --prefix /usr --root / --record mcomix-files.txt
    

    Both have the same errors.

     
  • Oddegamra

    Oddegamra - 2022-02-16

    Strange, from what I can see all the test ZIP archives from the MComix test cases work. Could you start MComix using the command 'mcomixstarter.py -Wall'? The '-Wall' parameter enables additional debug output, in particular stack traces for all error messages. Please provide these stacktrace messages so I can look into the problem.

     
  • Oddegamra

    Oddegamra - 2022-02-17

    Thank you, I received the log messages, which I have removed in order not to clutter the issue. Seems like there were still a number of unfortunate problems left from the Python 2 -> 3 conversion. I have committed some fixes, which should address the issues you mentioned.

     
  • Finder X

    Finder X - 2022-02-18

    Thank you, let's hope that in the next version they are fixed.
    Regards.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.