Re: multiprocessing.Queue() and missing sem_open

2015-02-06 Thread Chris Angelico
On Fri, Feb 6, 2015 at 7:27 PM, Оlе Ѕtrеісhеr wrote: >> the AttributeError will come from the attribute lookup - the above code >> can't[1] bomb out with ImportError. > > Maybe it can't but it actually does. Huh. Okay, my bad. (I don't have a Hurd system to test on, all my Debians are Linux.) Sor

Re: multiprocessing.Queue() and missing sem_open

2015-02-06 Thread Оlе Ѕtrеісhеr
Chris Angelico writes: > On Fri, Feb 6, 2015 at 7:22 AM, Оlе Ѕtrеісhеr wrote: >> I am just trying to prepare a package (astropy) for (Debian) Hurd. This >> os lacks a sem_open() implementation. When I now try: >> >> import multiprocessing >> q = multiprocessing.Queue() >> >> I get an ImportError

Re: multiprocessing.Queue() and missing sem_open

2015-02-05 Thread Chris Angelico
On Fri, Feb 6, 2015 at 7:22 AM, Оlе Ѕtrеісhеr wrote: > I am just trying to prepare a package (astropy) for (Debian) Hurd. This > os lacks a sem_open() implementation. When I now try: > > import multiprocessing > q = multiprocessing.Queue() > > I get an ImportError with Python 2.7, but an Attribute

multiprocessing.Queue() and missing sem_open

2015-02-05 Thread Оlе Ѕtrеісhеr
Hi, I am just trying to prepare a package (astropy) for (Debian) Hurd. This os lacks a sem_open() implementation. When I now try: import multiprocessing q = multiprocessing.Queue() I get an ImportError with Python 2.7, but an AttributeError with Python 3.4. In the documentation of multiprocessin