Bug 191516 - [PATCH] pykde4: Use ctypes instead of DLFCN
Summary: [PATCH] pykde4: Use ctypes instead of DLFCN
Status: RESOLVED UNMAINTAINED
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR crash
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-03 21:36 UTC by Max
Modified: 2020-12-08 00:27 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
fix pykde4 for freebsd (401 bytes, patch)
2009-05-03 21:55 UTC, Max
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max 2009-05-03 21:36:44 UTC
Version:            (using KDE 4.2.2)
Compiler:          gcc version 4.2.1 20070719  [FreeBSD] 
OS:                FreeBSD
Installed from:    FreeBSD Ports

python bindings fails on FreeBSD. Here's output from demo app:

/usr/local/kde4/share/examples/pykde4> python solid_demo.py
Traceback (most recent call last):
  File "solid_demo.py", line 23, in <module>
    from PyKDE4.kdecore import *
  File "/usr/local/kde4/share/examples/pykde4/__init__.py", line 1, in <module>
    #!/usr/bin/env python
ImportError: No module named DLFCN
Comment 1 Max 2009-05-03 21:55:23 UTC
Created attachment 33324 [details]
fix pykde4 for freebsd
Comment 2 Raphael Kubo da Costa 2010-02-05 03:40:45 UTC
Can you please confirm if this is still valid?
Comment 3 Max 2010-02-10 21:40:55 UTC
Yes, it's still true. The patch is included to FreeBSD ports: http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/kdebindings4-python-pykde4/files/patch-python__pykde4____init__.py
Comment 4 Christoph Feck 2013-09-12 21:35:46 UTC
This crash report is at least 3 years old and there were no further comments or status updates since then.

Therefore we believe that this crash is already fixed in recent KDE 4 versions or the backtrace is no longer applicable to the current KDE 4 sources.

If the crash still happens with a recent KDE version (4.10.5 or 4.11), please add an updated backtrace or provide steps to reproduce. For more information, see http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

(To prevent automatic closing of this bug in the future, please set the bug status to ASSIGNED or CONFIRMED)
Comment 5 Max 2013-09-13 09:01:12 UTC
DLFCN is not available on FreeBSD:

Python 2.7.5 (default, Aug 26 2013, 20:36:51) 
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys,DLFCN
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named DLFCN

We still have to use the patch.
Comment 6 Christoph Feck 2013-09-13 09:25:02 UTC
Thanks for the feedback, reopening.
Comment 7 Justin Zobel 2020-12-07 04:27:05 UTC
Thank you for the report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 8 Mathieu Jobin 2020-12-07 08:50:27 UTC
well, 11 years later ! now that Python 2.7 and KDE 4 is deprecated
i guess we can close it.
Comment 9 Max 2020-12-07 19:59:57 UTC
(In reply to Mathieu Jobin from comment #8)
> well, 11 years later ! now that Python 2.7 and KDE 4 is deprecated
> i guess we can close it.

Absolutely!