On Sat, Dec 28, 2013 at 10:19:33PM -0500, Predrag Punosevac wrote: > I just tried to compile some pythontex code I wrote a while ago. > > predrag@oko$ uname -a > OpenBSD oko.bagdala2.net 5.4 GENERIC.MP#44 i386 > > The first surprise was that the pythontex was not installed. I was under > impression that it was the part of TeXLive 2012? No big deal. I went and > did manual installation. > > However I am stuck now with the python problems > > predrag@oko$ pythontex mama.tex > This is PythonTeX v0.12 > Traceback (most recent call last): > File "/home/predrag/.pythontex/pythontex.py", line 54, in <module> > pythontex.main() > File "/home/predrag/.pythontex/pythontex2.py", line 2323, in main > do_multiprocessing(data, temp_data, old_data, engine_dict) > File "/home/predrag/.pythontex/pythontex2.py", line 972, in > do_multiprocessing > pool = multiprocessing.Pool(max_processes) > File "/usr/local/lib/python2.7/multiprocessing/__init__.py", line 232, > in Pool > return Pool(processes, initializer, initargs, maxtasksperchild) > File "/usr/local/lib/python2.7/multiprocessing/pool.py", line 138, in > __init__ > self._setup_queues() > File "/usr/local/lib/python2.7/multiprocessing/pool.py", line 232, in > _setup_queues > from .queues import SimpleQueue > File "/usr/local/lib/python2.7/multiprocessing/queues.py", line 48, in > <module> > from multiprocessing.synchronize import Lock, BoundedSemaphore, > Semaphore, Condition > File "/usr/local/lib/python2.7/multiprocessing/synchronize.py", line > 59, 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.
Try with -current. The problem is the lack of semaphores on previous releases. > > > > A quick Google reveals that this might be Python problem specific to > pythontex package and the fact that most likely written on amd64 > platform. Is this true? I know that there are some people who know > infinitely more about Python than me on this mailing list. > > > Most Kind Regards, > Predrag > > P.S. I just checked > > https://github.com/jasperla/openbsd-wip > > and I am very excited that TeXLive seems to be ready (I will try to do > testing after the New Year) but I am even more excited that many core > scientific Python ports will be finally updated. Any progress in > creating the flavor of scipy, numpy, and friends for Python 3.3.1? > > -- Juan Francisco Cantero Hurtado http://juanfra.info