Community Packages

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!
Tasklist

FS#20461 - python3 complied without sem_open support

Attached to Project: Community Packages
Opened by Adam Voss (vossad01) - Friday, 13 August 2010, 12:44 GMT
Last edited by Allan McRae (Allan) - Tuesday, 17 August 2010, 09:43 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: test_multiprocessing fails with python3. Works with python2.
See http://bugs.python.org/issue3770

Attempted utilization results in error:

Traceback (most recent call last):
File "/usr/lib/python3.1/multiprocessing/synchronize.py", line 28, in <module>
from _multiprocessing import SemLock
ImportError: cannot import name SemLock

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.1/multiprocessing/__init__.py", line 226, in Pool
return Pool(processes, initializer, initargs)
File "/usr/lib/python3.1/multiprocessing/pool.py", line 84, in __init__
self._setup_queues()
File "/usr/lib/python3.1/multiprocessing/pool.py", line 133, in _setup_queues
from .queues import SimpleQueue
File "/usr/lib/python3.1/multiprocessing/queues.py", line 22, in <module>
from multiprocessing.synchronize import Lock, BoundedSemaphore, Semaphore, Condition
File "/usr/lib/python3.1/multiprocessing/synchronize.py", line 33, in <module>
" function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.



Additional info:
* package version(s)
python3 --version
Python 3.1.2

python2 --version
Python 2.6.5


Steps to reproduce:
>> sudo pacman -S python3
>> python3
>> import multiprocessing
>> multiprocessing.Pool(None)
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 17 August 2010, 09:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.1.2-4
Comment by Allan McRae (Allan) - Saturday, 14 August 2010, 00:04 GMT
This appears to be a side effect of building in a chroot:

On local system:
< checking whether POSIX semaphores are enabled... yes
< checking for broken sem_getvalue... no

In chroot:
> checking whether POSIX semaphores are enabled... no
> checking for broken sem_getvalue... yes

Loading...