Bug 1372582 - Can't load plugin "kdevpythonsupport". Parsers for Python (and probably others like PHP) not working.
Summary: Can't load plugin "kdevpythonsupport". Parsers for Python (and probably other...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdevelop
Version: 24
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-02 06:32 UTC by PARIJATHA KUMAR PASUPULETI
Modified: 2016-09-16 12:48 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-09-16 12:48:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description PARIJATHA KUMAR PASUPULETI 2016-09-02 06:32:56 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36
Build Identifier: 

I felt lack of Python support in KDevelop. Parsers are not working. I could not see 'Python Style Checking' and 'Python Documentation' entries in KDevelop settings which made me suspect that something is amiss. Then when I ran KDevelop from terminal to see the cause, I got the following error which has confirmed that Python support is not loaded in my KDevelop. The error is "Can't load plugin "kdevpythonsupport" because a factory to load the plugin could not be obtained: "Cannot load library /usr/lib64/qt5/plugins/kdevplatform/25/kdevpythonlanguagesupport.so: (/lib64/libkdevpythonduchain.so: undefined symbol: _ZN8KDevelop16BackgroundParser11addDocumentERKNS_13IndexedStringENS_12TopDUContext8FeaturesEiP7QObject6QFlagsINS_8ParseJob24SequentialProcessingFlagEE)".

I've removed KDevelop completely (including kdevelop-python), checked for any stale libraries in my system with ' find / -name "*kdev*.so*" '. After confirming there are no stray libraries left, I've cleaned my package cache, and reinstalled KDevelop again along with kdevelop-python. But still the same problem persists.

I am Fedora-24 KDE spin. I don't have any testing repos enabled.

Reproducible: Always

Steps to Reproduce:
1.Install kdevelop and kdevelop-python
2.Run kdevelop from terminal or from applications menu.
3.In the kdevelop settings, go to 'Plugins' and enable 'Python Support'
Actual Results:  
Not able to see the two entries in kdevelop settings ... 'Python Style Checking' and 'Python Documentation'. Custom include/import paths in project configuration (right click on the project, then 'Open Configuration') are not working. KDevelop still complains about undefined variables which reference to the custom include paths.

Expected Results:  
Python parsers should work. You should see two entries in kdevelop settings ... 'Python Style Checking' and 'Python Documentation'. Also, give custom include/import paths in project configuration (right click on the project, then 'Open Configuration'). The custom imports should work. KDevelop should not complain about undefined variables which reference to your custom include paths.

I've reported to KDevelop developers in IRC and Forums. They told it must be something to do with "library version mismatch between the Python pluigin (which is a separate package!) and kdevplatform".

The AppImage from KDevelop website works fine without any issues.

Also, some one else has reported in IRC that PHP parsers are also not working in the Fedora's repo's KDevelop package and the included kdevelop-php packages.

Comment 1 Jan Grulich 2016-09-02 06:53:52 UTC
There will be soon the final version of KDevelop 5 available for Fedora 24 which I guess will fix this problem. If you want it sooner you would need to enable updates-testing repository to get it as soon as possible.

Comment 2 PARIJATHA KUMAR PASUPULETI 2016-09-02 07:09:21 UTC
(In reply to Jan Grulich from comment #1)
> There will be soon the final version of KDevelop 5 available for Fedora 24
> which I guess will fix this problem. If you want it sooner you would need to
> enable updates-testing repository to get it as soon as possible.

I am afraid that may not solve the problem. I've tried with 'sudo dnf --enablerepo=updates-testing upgrade kdevelop'. But still the problem persisted. May be we need a compatible kdevelop-python update also.

Comment 3 PARIJATHA KUMAR PASUPULETI 2016-09-10 09:29:59 UTC
Today, the said update landed. As I've suspected, the problem still persists with the latest version of KDevelop 5. Python support still does not work. I am not able to see the two entries in KDevelop settings ... 'Python Style Checking' and 'Python Documentation'. Because of this my PEP8 checking does not work. No errors/warnings/info messages are shown. I can not comment on custom imports immediately. I'll check and write back.

Comment 4 Helio Chissini de Castro 2016-09-10 10:36:43 UTC
kdevelop php was submitted yesterday to stable in f24. Python still need some polish.

Apologizes for the delay.

Comment 5 Rex Dieter 2016-09-10 12:56:30 UTC
I'll be refreshing the kdevelop stack soon along with kdepim-16.08.x landing at the same time (due to some common dependencies between them)

Comment 6 PARIJATHA KUMAR PASUPULETI 2016-09-16 10:23:53 UTC
The said updates landed today. I've just updated my system. But still the python parsers in custom include paths are not working. At least, I can see python support in KDevelop settings now. That problem is settled. But then I am not able to figure out why the parsing does not work for the custom include paths I gave in the project configuration ? Do I need to clean some cache or something ?

Comment 7 PARIJATHA KUMAR PASUPULETI 2016-09-16 12:48:42 UTC
So, I've removed kdevelop and kdevelop-pthon packages completely, then 'dnf clean all', 'dnf distro-sync', and reinstalled. Also, I've removed any old configuration files from my home directory. Now, every thing is working fine.

Thanks for the support. I am closing the ticket.


Note You need to log in before you can comment on or make changes to this bug.