Version-Release number of selected component: mirage-0.9.5.2-14.fc27 Additional info: reporter: libreport-2.9.2 cmdline: /usr/bin/python /usr/bin/mirage crash_function: module exception_type: ModuleNotFoundError executable: /usr/bin/mirage kernel: 4.16.9-200.fc27.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: mirage:27:<module>:ModuleNotFoundError: No module named 'mirage' Traceback (most recent call last): File "/usr/bin/mirage", line 27, in <module> import mirage ModuleNotFoundError: No module named 'mirage' Local variables in innermost frame: __name__: '__main__' __doc__: 'Mirage is a fast GTK+ Image Viewer\n' __package__: None __loader__: <_frozen_importlib_external.SourceFileLoader object at 0x7fbe1385aac8> __spec__: None __annotations__: {} __builtins__: <module 'builtins' (built-in)> __file__: '/usr/bin/mirage' __cached__: None __author__: 'Scott Horowitz' __email__: 'stonecrest' __license__: '\nMirage, a simple GTK+ Image Viewer\nCopyright 2007 Scott Horowitz <stonecrest>\n\nThis file is part of Mirage.\n\nMirage is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 3 of the License, or\n(at your option) any later version.\n\nMirage is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see <http://www.gnu.org/licenses/>.\n'
Created attachment 1446623 [details] File: backtrace
Created attachment 1446624 [details] File: cgroup
Created attachment 1446625 [details] File: cpuinfo
Created attachment 1446626 [details] File: environ
Created attachment 1446627 [details] File: mountinfo
Created attachment 1446628 [details] File: namespaces
Created attachment 1446629 [details] File: open_fds
Would you show the result of $ python2 -vvvvvv /usr/bin/mirage ?
*** Bug 1585053 has been marked as a duplicate of this bug. ***
Also please provide the result of $ strace -s 1000 /usr/bin/mirage
Similar problem has been detected: strace -s 1000 /usr/bin/mirage >file1.txt 2>&1 reporter: libreport-2.9.2 cmdline: /usr/bin/python /usr/bin/mirage crash_function: module exception_type: ModuleNotFoundError executable: /usr/bin/mirage kernel: 4.16.12-200.fc27.x86_64 package: mirage-0.9.5.2-14.fc27 reason: mirage:27:<module>:ModuleNotFoundError: No module named 'mirage' runlevel: N 5 type: Python3 uid: 1000
It says comments cannot be longer than 65535 characters and I see no place to attach the file.txt here. Mirage opened though successfully, [autopsy@localhost ~]$ cat file.txt # installing zipimport hook import zipimport # builtin # installed zipimport hook # trying /usr/lib64/python2.7/site.so # trying /usr/lib64/python2.7/sitemodule.so # trying /usr/lib64/python2.7/site.py # /usr/lib64/python2.7/site.pyc matches /usr/lib64/python2.7/site.py import site # precompiled from /usr/lib64/python2.7/site.pyc # trying /usr/lib64/python2.7/os.so # trying /usr/lib64/python2.7/osmodule.so # trying /usr/lib64/python2.7/os.py # /usr/lib64/python2.7/os.pyc matches /usr/lib64/python2.7/os.py import os # precompiled from /usr/lib64/python2.7/os.pyc import errno # builtin import posix # builtin # trying /usr/lib64/python2.7/posixpath.so # trying /usr/lib64/python2.7/posixpathmodule.so # trying /usr/lib64/python2.7/posixpath.py # /usr/lib64/python2.7/posixpath.pyc matches /usr/lib64/python2.7/posixpath.py import posixpath # precompiled from /usr/lib64/python2.7/posixpath.pyc # trying /usr/lib64/python2.7/stat.so # trying /usr/lib64/python2.7/statmodule.so # trying /usr/lib64/python2.7/stat.py # /usr/lib64/python2.7/stat.pyc matches /usr/lib64/python2.7/stat.py import stat # precompiled from /usr/lib64/python2.7/stat.pyc # trying /usr/lib64/python2.7/genericpath.so # trying /usr/lib64/python2.7/genericpathmodule.so # trying /usr/lib64/python2.7/genericpath.py # /usr/lib64/python2.7/genericpath.pyc matches /usr/lib64/python2.7/genericpath.py import genericpath # precompiled from /usr/lib64/python2.7/genericpath.pyc # trying /usr/lib64/python2.7/warnings.so # trying /usr/lib64/python2.7/warningsmodule.so # trying /usr/lib64/python2.7/warnings.py # /usr/lib64/python2.7/warnings.pyc matches /usr/lib64/python2.7/warnings.py import warnings # precompiled from /usr/lib64/python2.7/warnings.pyc # trying /usr/lib64/python2.7/linecache.so # trying /usr/lib64/python2.7/linecachemodule.so # trying /usr/lib64/python2.7/linecache.py # /usr/lib64/python2.7/linecache.pyc matches /usr/lib64/python2.7/linecache.py import linecache # precompiled from /usr/lib64/python2.7/linecache.pyc # trying /usr/lib64/python2.7/types.so # trying /usr/lib64/python2.7/typesmodule.so # trying /usr/lib64/python2.7/types.py # /usr/lib64/python2.7/types.pyc matches /usr/lib64/python2.7/types.py import types # precompiled from /usr/lib64/python2.7/types.pyc # trying /usr/lib64/python2.7/UserDict.so # trying /usr/lib64/python2.7/UserDictmodule.so # trying /usr/lib64/python2.7/UserDict.py # /usr/lib64/python2.7/UserDict.pyc matches /usr/lib64/python2.7/UserDict.py import UserDict # precompiled from /usr/lib64/python2.7/UserDict.pyc # trying /usr/lib64/python2.7/_abcoll.so # trying /usr/lib64/python2.7/_abcollmodule.so # trying /usr/lib64/python2.7/_abcoll.py # /usr/lib64/python2.7/_abcoll.pyc matches /usr/lib64/python2.7/_abcoll.py import _abcoll # precompiled from /usr/lib64/python2.7/_abcoll.pyc # trying /usr/lib64/python2.7/abc.so # trying /usr/lib64/python2.7/abcmodule.so # trying /usr/lib64/python2.7/abc.py # /usr/lib64/python2.7/abc.pyc matches /usr/lib64/python2.7/abc.py import abc # precompiled from /usr/lib64/python2.7/abc.pyc # trying /usr/lib64/python2.7/_weakrefset.so # trying /usr/lib64/python2.7/_weakrefsetmodule.so # trying /usr/lib64/python2.7/_weakrefset.py # /usr/lib64/python2.7/_weakrefset.pyc matches /usr/lib64/python2.7/_weakrefset.py import _weakrefset # precompiled from /usr/lib64/python2.7/_weakrefset.pyc import _weakref # builtin # trying /usr/lib64/python2.7/copy_reg.so # trying /usr/lib64/python2.7/copy_regmodule.so # trying /usr/lib64/python2.7/copy_reg.py # /usr/lib64/python2.7/copy_reg.pyc matches /usr/lib64/python2.7/copy_reg.py import copy_reg # precompiled from /usr/lib64/python2.7/copy_reg.pyc # trying /usr/lib64/python2.7/traceback.so # trying /usr/lib64/python2.7/tracebackmodule.so # trying /usr/lib64/python2.7/traceback.py # /usr/lib64/python2.7/traceback.pyc matches /usr/lib64/python2.7/traceback.py import traceback # precompiled from /usr/lib64/python2.7/traceback.pyc # trying /usr/lib64/python2.7/sysconfig.so # trying /usr/lib64/python2.7/sysconfigmodule.so # trying /usr/lib64/python2.7/sysconfig.py # /usr/lib64/python2.7/sysconfig.pyc matches /usr/lib64/python2.7/sysconfig.py import sysconfig # precompiled from /usr/lib64/python2.7/sysconfig.pyc # trying /usr/lib64/python2.7/re.so # trying /usr/lib64/python2.7/remodule.so # trying /usr/lib64/python2.7/re.py # /usr/lib64/python2.7/re.pyc matches /usr/lib64/python2.7/re.py import re # precompiled from /usr/lib64/python2.7/re.pyc # trying /usr/lib64/python2.7/sre_compile.so # trying /usr/lib64/python2.7/sre_compilemodule.so # trying /usr/lib64/python2.7/sre_compile.py # /usr/lib64/python2.7/sre_compile.pyc matches /usr/lib64/python2.7/sre_compile.py import sre_compile # precompiled from /usr/lib64/python2.7/sre_compile.pyc import _sre # builtin # trying /usr/lib64/python2.7/sre_parse.so # trying /usr/lib64/python2.7/sre_parsemodule.so # trying /usr/lib64/python2.7/sre_parse.py # /usr/lib64/python2.7/sre_parse.pyc matches /usr/lib64/python2.7/sre_parse.py import sre_parse # precompiled from /usr/lib64/python2.7/sre_parse.pyc # trying /usr/lib64/python2.7/sre_constants.so # trying /usr/lib64/python2.7/sre_constantsmodule.so # trying /usr/lib64/python2.7/sre_constants.py # /usr/lib64/python2.7/sre_constants.pyc matches /usr/lib64/python2.7/sre_constants.py import sre_constants # precompiled from /usr/lib64/python2.7/sre_constants.pyc # trying /usr/lib64/python2.7/_locale.so # trying /usr/lib64/python2.7/_localemodule.so # trying /usr/lib64/python2.7/_locale.py # trying /usr/lib64/python2.7/_locale.pyc # trying /usr/lib64/python2.7/plat-linux2/_locale.so # trying /usr/lib64/python2.7/plat-linux2/_localemodule.so # trying /usr/lib64/python2.7/plat-linux2/_locale.py # trying /usr/lib64/python2.7/plat-linux2/_locale.pyc # trying /usr/lib64/python2.7/lib-dynload/_locale.so # trying /usr/lib64/python2.7/lib-dynload/_localemodule.so dlopen("/usr/lib64/python2.7/lib-dynload/_localemodule.so", 2); import _locale # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_localemodule.so # trying /usr/lib64/python2.7/_sysconfigdata.so # trying /usr/lib64/python2.7/_sysconfigdatamodule.so # trying /usr/lib64/python2.7/_sysconfigdata.py # /usr/lib64/python2.7/_sysconfigdata.pyc matches /usr/lib64/python2.7/_sysconfigdata.py import _sysconfigdata # precompiled from /usr/lib64/python2.7/_sysconfigdata.pyc
mirage opened successfully using python2 -vvvvvv /usr/bin/mirage &
In the strace it failed with the same no module found: fcntl(5, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fstat(5, {st_mode=S_IFREG|0755, st_size=1005, ...}) = 0 read(5, "#!/usr/bin/python\n\"\"\"Mirage is a fast GTK+ Image Viewer\n\"\"\"\n\n__author__ = \"Scott Horowitz\"\n__email__ = \"stonecrest\"\n__license__ = \"\"\"\nMirage, a simple GTK+ Image Viewer\nCopyright 2007 Scott Horowitz <stonecrest>\n\nThis file is part of Mirage.\n\nMirage is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 3 of the License, or\n(at your option) any later version.\n\nMirage is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\n\nimport mirage\n\nif __name__ == \"__main__\":\n app = mirage.Base()\n try:\n app.main()\n except KeyboardInterrupt:\n "..., 4096) = 1005 close(5) = 0 lseek(4, 0, SEEK_SET) = 0 lseek(4, 0, SEEK_CUR) = 0 read(4, "#!/usr/bin/python\n\"\"\"Mirage is a fast GTK+ Image Viewer\n\"\"\"\n\n__author__ = \"Scott Horowitz\"\n__email__ = \"stonecrest\"\n__license__ = \"\"\"\nMirage, a simple GTK+ Image Viewer\nCopyright 2007 Scott Horowitz <stonecrest>\n\nThis file is part of Mirage.\n\nMirage is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 3 of the License, or\n(at your option) any later version.\n\nMirage is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\n\nimport mirage\n\nif __name__ == \"__main__\":\n app = mirage.Base()\n try:\n app.main()\n except KeyboardInterrupt:\n "..., 8192) = 1005 close(4) = 0 write(2, "Traceback (most recent call last):\n File \"/usr/bin/mirage\", line 27, in <module>\n import mirage\nModuleNotFoundError: No module named 'mirage'\n", 146Traceback (most recent call last): File "/usr/bin/mirage", line 27, in <module> import mirage ModuleNotFoundError: No module named 'mirage' ) = 146 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f15bcc3aa70}, {sa_handler=0x7f15bd01b680, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f15bcc3aa70}, 8) = 0 sigaltstack(NULL, {ss_sp=0x55ba7d4ea8d0, ss_flags=0, ss_size=8192}) = 0 sigaltstack({ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}, NULL) = 0 futex(0x7f15b2f80994, FUTEX_WAKE_PRIVATE, 2147483647) = 0 exit_group(1) = ? +++ exited with 1 +++
Please don't paste the result on this bug but "attach" the log (full log) Also, one more question. What does $ ls -al /usr/bin/python return?
[autopsy@localhost ~]$ ls -al /usr/bin/python lrwxrwxrwx. 1 root root 16 May 20 21:27 /usr/bin/python -> /usr/bin/python3 [autopsy@localhost ~]$ There is no where to attach a file so I can't provide the logs you wanted.
You can see "Add an attachment" on this bugzilla ticket (see above comment 0). By the way, on Fedora 27, /usr/bin/python must point to python2, not /usr/bin/python3. What does the following return? $ rpm -qf /usr/bin/python $ rpm -qf /usr/bin/python | xargs rpm -V $ which python2 $ which python2 | xargs rpm -qf $ which python2 | xargs rpm -qf | xargs rpm -V
[autopsy@localhost ~]$ sudo ./text.sh python2-2.7.13-17.fc27.x86_64 ....L.... /usr/bin/python /bin/python2 python2-2.7.13-17.fc27.x86_64 ....L.... /usr/bin/python [autopsy@localhost ~]$ [autopsy@localhost ~]$ ls -l /usr/bin/python lrwxrwxrwx. 1 root root 16 May 20 21:27 /usr/bin/python -> /usr/bin/python3 [autopsy@localhost ~]$
....L.... means symlink is different from what is expected from rpm database. As I already said before, /usr/bin/python must point to python2, not to /usr/bin/python3. Please reinstall python2 package and make it sure that /usr/bin/python point to python2. As this is not a bug on mirage, now I close this as NOTABUG.
So maybe your system is broken. It may better that you check your system with $ rpm -Va, or fully reinstall your system. Anyway this is not a bug on mirage.