| Summary: | Crash when opening project created with pyCharm [Python::AstBuilder::parse] | ||
|---|---|---|---|
| Product: | [Developer tools] kdev-python | Reporter: | Aram <aramgrigoryan> |
| Component: | Language support | Assignee: | Sven Brauch <mail> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | crash | CC: | lbeltrame |
| Priority: | NOR | Keywords: | drkonqi |
| Version First Reported In: | 5.1.2 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Aram
2018-03-27 19:23:16 UTC
Additionaly I have the following repositories active http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_42.3/ http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_42.3/ http://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_42.3/ https://download.opensuse.org/repositories/devel:/languages:/python:/Factory/openSUSE_Leap_42.3/ I tried also to create an empty python project, which also crashed immediately... So this is more general problem Can you look at the console output? This is an assertion, it would be interesting to know the message. kdevelop
Icon theme "ubuntu-mono-dark" not found.
kdevplatform.serialization: "The data-repository at /home/aram/.cache/kdevduchain/kdevelop-{751d2457-2099-4baa-bad1-af5aaebf0450} has to be cleared."
Invalid return type in method "core"
Invalid return type in method "core"
QAbstractItemModel::endInsertRows: Invalid index ( 1 , 0 ) in model QSortFilterProxyModel(0x34881a0)
QAbstractItemModel::endInsertRows: Invalid index ( 1 , 0 ) in model QSortFilterProxyModel(0x34881a0)
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
kdevplatform.shell: Not loading plugin named "KDevNinjaBuilder" because it has been disabled!
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Current thread 0x00007f214a929700 (most recent call first):
KCrash: Application 'kdevelop' crashing...
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 22 and type 'Read', disabling...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
QSocketNotifier: Invalid socket 27 and type 'Exception', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 24 and type 'Read', disabling...
QSocketNotifier: Invalid socket 31 and type 'Read', disabling...
QSocketNotifier: Invalid socket 25 and type 'Read', disabling...
QSocketNotifier: Invalid socket 19 and type 'Read', disabling...
The X11 connection broke (error 1). Did the X11 server die?
[1]+ Stopped kdevelop
tried the latest appimage. same story... With the AppImage, really? Same assertion? The error is this: Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' I have seen this before and it's always some kind of setup problem. it is still the same... don't know the reason. other ide's are just fine... Maybe this helps us: try strace -f kdevelop 2>&1| grep encodings Make sure you have strace installed before. here is the result
aram@linux-kpxb:~> strace -f kdevelop 2>&1| grep encodings
[pid 5898] stat("/usr/share/fonts/encodings", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 5898] open("/usr/share/fonts/encodings", O_RDONLY|O_CLOEXEC) = 10
[pid 5898] stat("/usr/share/fonts/encodings/large", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 5898] open("/usr/share/fonts/encodings/large", O_RDONLY|O_CLOEXEC) = 10
[pid 6034] write(2, "No module named 'encodings'", 27No module named 'encodings') = 27
downgrading and using system's default python version solved the issue. thanks You were mixing incompatible packages from different OBS repositories. As a downstream, I can tell you that this is not supported, because kdev-python is not built against the additional Python repositories you were using and so behavior is unpredictable ("undefined", even).
Since the issue was solved by downgrading the Python to the stock version in the repository, this is not a bug.
|