Cannot import name SemLock in Lucid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.1 (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: python3.1
Ubuntu 10.04 Lucid Lynx Beta 2, AMD-64
Linux kernel 2.6.32.19-generic
Ubuntu 10.04 Lucid Lynx Beta 2, x86
Linux kernel 2.6.32.16-generic
Latest version of Python 3.1.2 in Lucid repositories on both systems.
When using the multiprocessing module, the below error is returned, specifically when trying to create a new JoinableQueue. This should not happen.
Created a Python bug report but initial responses indicate this may be a problem with Lucid's packaging. The code worked flawlessly on Karmic Koala.
----
Traceback (most recent call last):
File "/usr/lib/
ImportError: cannot import name SemLock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 16, in <module>
q = JoinableQueue()
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
Related branches
summary: |
- Cannot import name SemLock + Cannot import name SemLock in Lucid |
Changed in python3.1 (Ubuntu): | |
status: | New → Confirmed |
these tests fail on the buildds ...
checking whether POSIX semaphores are enabled... no
checking for broken sem_getvalue... yes
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <semaphore.h>
#include <sys/stat.h>
int main(void) { "/autoconf" , O_CREAT, S_IRUSR|S_IWUSR, 0); "sem_open" ); "/autoconf" );
sem_t *a = sem_open(
if (a == SEM_FAILED) {
perror(
return 1;
}
sem_close(a);
sem_unlink(
return 0;
}