Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#26133 - python2 and linux3: missing DLFCN.py
Attached to Project:
Arch Linux
Opened by pajaro (pajaro) - Wednesday, 28 September 2011, 10:32 GMT
Last edited by Stéphane Gaudreault (stephane) - Wednesday, 28 September 2011, 16:35 GMT
Opened by pajaro (pajaro) - Wednesday, 28 September 2011, 10:32 GMT
Last edited by Stéphane Gaudreault (stephane) - Wednesday, 28 September 2011, 16:35 GMT
|
Detailspython2 claims import error for DLFCN.py. If you take the source code and copy the file from Lib/plat-linux2/ into /usr/lib/python2.7/plat-linux3/ then this goes away.
On python2 bugtracker they say that plat-linux2 has to be bind to plat-linux3. I don't know what they mean. They also say that it has already been fixed (i assume for the next release). I don't know if this affects anyone else. Also, this doesn't bother me either, because I found a way to fix it by hand. I also don't have enough understanding of the python build process to feel comfortable creating a PKGBUILD with this patched. I just report it just in case you feel that fixing this deserves a new package release. Regards. PS: I needed DLFCN for backintime-kde4 |
This task depends upon
Closed by Stéphane Gaudreault (stephane)
Wednesday, 28 September 2011, 16:35 GMT
Reason for closing: Not a bug
Wednesday, 28 September 2011, 16:35 GMT
Reason for closing: Not a bug
This should not happen with the binary package, because "sys.platform" is defined at compile time and our package was built with linux 2.x.
Here
# uname -r
3.0-ARCH
# python2 -c "import sys; print(sys.platform)"
linux2
and
# python2 -c "import DLFCN"
does not gives error.
Upstream decided to always use linux2, even on kernel 3.x, so in any case you should NOT change plat-linux2 to plat-linux3.
See http://bugs.python.org/issue12326
I commited a patch (linux2.patch) for building on kernel 3.x two weeks ago. If you want to build your own python2 package, you should make sure to use it.