Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.065 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'importerror:': 0.07; 'python': 0.11; '"new': 0.16; 'etc?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'import': 0.22; 'saying': 0.22; 'environment': 0.24; '15,': 0.26; 'skip:" 20': 0.27; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'ball': 0.31; 'ctypes': 0.31; 'file': 0.32; 'probably': 0.32; 'quite': 0.32; 'url:python': 0.33; '(most': 0.33; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'url:org': 0.36; 'operating': 0.37; 'received:209': 0.37; 'system,': 0.38; 'thank': 0.38; 'url:library': 0.38; 'version,': 0.38; 'to:addr:python- list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'offer': 0.62; 'information': 0.63; 'more': 0.64; 'response.': 0.68; 'results': 0.69; 'etc,': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=N4y4M46VpLb6yrQkmleRblEJGJBX/93gr57TWGM4RpM=; b=GkpySUt7nmXOJWbq6FCvWPExOuapZ3lLspHYu0EWNF+IhE5O+XcyVfxIpGgFuFJeQf +6padyuFcG0ZQQp6veL8JNqyAECsNJvGDRGf+lK+fGK81x5CFbR6sOKkhCoDKqmGGvbZ x2cCnfbg52S62Q4eonBBkSqLRpBtlJAUGY1DKCg5g6hPOepyfymqf8KmeXsWQ29Af2ry qqg2qxsNPhAHioNVYZgrXCG2KJt3bBeBm1So6aWIXeZb9aP9Db7cq7Cg0tYXHXqyJfxn sDu5rpxClVJhWoSLCwbXMoF/jD5qnwpbH7jYA4B5PEI5GTuKfgWdpDuTulZsaxuLhlmh Wy5Q== MIME-Version: 1.0 X-Received: by 10.58.75.46 with SMTP id z14mr34727603vev.52.1367337532831; Tue, 30 Apr 2013 08:58:52 -0700 (PDT) In-Reply-To: <574ce3d3-8848-4136-a635-728d8cf3db85@googlegroups.com> References: <574ce3d3-8848-4136-a635-728d8cf3db85@googlegroups.com> Date: Wed, 1 May 2013 01:58:52 +1000 Subject: Re: shmid = shmget(SHM_KEY, SHM_SIZE, 0o666) - syntax error. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367337541 news.xs4all.nl 15967 [2001:888:2000:d::a6]:59058 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44551 On Wed, May 1, 2013 at 1:52 AM, Tony Romeo wrote: > Thank you for the response. > > Results after using 0666: > > > Traceback (most recent call last): > File "dump_cdorked_config.py", line 15, in ? > from ctypes import * > ImportError: No module named ctypes You really need to offer a lot more information about your environment :) What operating system, what Python version, etc, etc? The ctypes module is listed in the docs as "new in 2.5", so my crystal ball is saying you quite probably are on Red Hat. http://docs.python.org/2/library/ctypes.html ChrisA