Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648948 - sci-geosciences/qgis-3.0.0: executing "from PyQt4.QtCore import *" causes crash
Summary: sci-geosciences/qgis-3.0.0: executing "from PyQt4.QtCore import *" causes crash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-27 14:17 UTC by Erik
Modified: 2018-05-15 01:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2018-02-27 14:17:09 UTC
After emerging sci-geosciences/qgis-3.0.0, executing qgis in a terminal and pressing Ctrl+Alt+P, typing "from PyQt4.QtCore import *" and pressing enter causes a crash.

4 might be the wrong version of PyQt, but the wrong command is not handled well. Quite a few users may have a command like that in a script from a previous version.
Comment 1 Andreas Sturmlechner gentoo-dev 2018-02-27 14:19:52 UTC
"4" IS the wrong version of PyQt. This is not a bug packaging can fix, please raise this bug upstream.
Comment 2 Andreas Sturmlechner gentoo-dev 2018-02-27 14:20:18 UTC
(if they even consider it a bug)
Comment 3 Larry the Git Cow gentoo-dev 2018-02-27 16:14:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75c011e1af02a364d4f3ae9e93f8695658eb3cdc

commit 75c011e1af02a364d4f3ae9e93f8695658eb3cdc
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-02-27 14:49:07 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-02-27 16:13:30 +0000

    sci-geosciences/qgis: Add overly considerate pkg_postinst info
    
    Closes: https://bugs.gentoo.org/648948
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sci-geosciences/qgis/qgis-3.0.0.ebuild | 3 +++
 sci-geosciences/qgis/qgis-9999.ebuild  | 3 +++
 2 files changed, 6 insertions(+)
Comment 4 Erik 2018-02-27 17:01:14 UTC
The bug is not that "Old scripts may not work anymore." but rather "Old scripts will cause the whole program to crash." or actually "This particular input will cause the program to crash."

I understand that it may not be a packaging problem. The answer to the question whether upstream considers it a bug depends on whether they consider a script that the user runs to be input to the program or a modification of the program itself. Of course, a program should not crash on any input. I as a user assumed that my script was input to the program.