2012-04-25

Python multiprocessing configuration fix on Centos

The OS I am running is 2.6.27-chistyakov.1 #1 SMP Tue Dec 29 10:26:29 PST 2009 x86_64 x86_64 x86_64 GNU/Linux. The Python multiprocessing module reported follow errors

File "/usr/lib/python2.6/multiprocessing/synchronize.py", line 49, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 38] Function not implemented


Turned out that we need to enable the SHM on the box. To do that, find the file /etc/fstab, add a new line

none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0

Restart the box and the SHM should be enabled now.

4 comments:

Anonymous said...

http://heraldbulletin.neighborsink.com/node/247766
http://blog.qlep.com/blog.php/223035/718351
http://oriflameblog.cz/forum/topic/finding-cheap-and-effective-deals-has-become-as-easy-as-clicking-your-mouse?replies=1#post-38790
http://archive.remdublin.com/blog/huangshumei/2013/01/28/my-yahoo-search-beyond-bookmarks
http://idioproject.com/social/index.php?do=/blog/57363/there-m-a-r-c-b-y-m-a-r-c-j-a-c-o-b-s-%E3%83%90-%E3%83%83-%E3%82%B0-is-presently-only-one-option-fo/
http://heraldbulletin.neighborsink.com/node/247693
http://thundernetworks.info/jcow/index.php?p=blogs/viewstory/28091
http://xmyishang.exblog.jp/17225971
http://hollar.se/index.php?do=/blog/2282/there-m-a-r-c-b-y-m-a-r-c-j-a-c-o-b-s-%E3%83%90-%E3%83%83-%E3%82%B0-is-presently-only-one-option-fo/
http://www.toma.jp/blog/333333/?entry_id=870629
http://prsites.biz/myblog-admin/with-spts-help.html
http://d.hatena.ne.jp/huangshumei/20130128/1359362523
http://heraldbulletin.neighborsink.com/node/247765
http://www.mymarburg.com/blog/76809/this-can-%E3%83%9F-%E3%83%A5-%E3%82%A6-%E3%83%9F-%E3%83%A5-%E3%82%A6-%E8%B2%A1-%E5%B8%83-be-even-more-true-if-you-use-refilled-ink-cartridg/
http://xmyishang.exblog.jp/17225972

Anonymous said...

http://www.mymarburg.com/blog/76812/and-%E3%83%9E-%E3%83%BC-%E3%82%AF-%E3%82%B8-%E3%82%A7-%E3%82%A4-%E3%82%B3-%E3%83%96-%E3%82%B9-%E3%83%90-%E3%83%83-%E3%82%B0-it-does-that-by/
http://jiumengshi.exblog.jp/17716247
http://archive.remdublin.com/blog/xmyishang/2013/01/29/such-pay-you-go-contract-deal
http://bloggervillage.com/index.php?do=/blog/5026/costing-%C3%A2%C2%A335-on-a-12-month-plan-and-includes-%C3%A2%C2%A35-of-free-downloads/
http://www.clickprofesor.com/index.php?do=/blog/47654/compared-to-text-messages-and-is-probably-threes-most-standard-plan/
http://nen360.nenonline.org/blog/itll-be-big-itll-be-tough
http://heraldbulletin.neighborsink.com/node/247693
http://xmyishang.cocolog-nifty.com/blog/2013/01/the-users-want.html
http://sns.cam111.com/blogs/entry/-The-inventors-of-the-Shifting-Calories-method-market-such-a-diet-under-the-name-Fat-Loss-4-Idiots
http://ludhianacity.net/blog/57433/choose-spyware-protection-prevent-spyware/
http://amuntai.16mb.com/index.php?p=blogs/viewstory/5705
http://www.benches2swings.com/vocab/catpath/get-spybot-protection-spybot-can-take-control-your-pc.html-0
http://d.hatena.ne.jp/huangshumei/20130128/1359362456
http://www.heavenlysins.com/index.php?do=/blog/46759/when-you-use-a-spyware-remover/
http://www.hongboit.com/blog/space.php?uid=51830&do=blog&id=485117

Free Antivirus Download said...

your blog have no mean. free antivirus download

Anonymous said...

Do you have a spam issue on this site; I also am a blogger, and I was curious about your situation; many of us
have developed some nice procedures and we are looking to exchange
strategies with others, please shoot me an email if interested.


Also visit my web page; live sex cams