Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'constructor': 0.07; 'skip:/ 10': 0.07; 'subject:file': 0.07; 'scripts': 0.09; 'python': 0.09; '2.7': 0.13; 'log.': 0.16; 'received:your- server.de': 0.16; 'traceback.': 0.16; 'wrote:': 0.17; 'issue,': 0.17; 'thu,': 0.17; 'shell': 0.18; 'produces': 0.22; 'work.': 0.23; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'guess': 0.27; 'skip:# 10': 0.27; '2.6': 0.27; 'run': 0.28; 'post': 0.28; '+0100,': 0.29; 'cgi': 0.29; 'subject:end': 0.29; 'subject:some': 0.29; 'error': 0.30; "skip:' 20": 0.32; 'print': 0.32; 'function.': 0.33; 'subject: .': 0.33; 'subject:data': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'server': 0.35; 'especially': 0.35; 'michael': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'your': 0.60; 'account': 0.67; '8bit%:100': 0.70; '8bit%:92': 0.70; '2013': 0.84; 'why?': 0.84 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: python-list@python.org Subject: Re: Inserting-embedding some html data at the end of a .py file References: <7e0a8562-9a48-4f5a-804d-3751733288f0@googlegroups.com> <009ab803-6269-453b-bff1-0c58a6db358d@googlegroups.com> <0d58f312-9259-407d-b47b-80b88cf9a82c@googlegroups.com> <5bfc6644-388f-4469-a591-63fb8070faa2@googlegroups.com> Date: Thu, 07 Mar 2013 01:25:09 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Michael Ross" In-Reply-To: <5bfc6644-388f-4469-a591-63fb8070faa2@googlegroups.com> User-Agent: Opera Mail/12.14 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.6/16793/Wed Mar 6 16:07:08 2013) 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: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362615925 news.xs4all.nl 6913 [2001:888:2000:d::a6]:37872 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40677 On Thu, 07 Mar 2013 00:18:44 +0100, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 =CE=93= =CE=BA=CF=8133=CE=BA = wrote: > =CE=A4=CE=B7 =CE=A4=CE=B5=CF=84=CE=AC=CF=81=CF=84=CE=B7, 6 =CE=9C=CE=B1= =CF=81=CF=84=CE=AF=CE=BF=CF=85 2013 2:06:33 =CF=80.=CE=BC. UTC+2, =CE=BF= =CF=87=CF=81=CE=AE=CF=83=CF=84=CE=B7=CF=82 Michael Ross = > =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > >> check_output is available as of Python 2.7 >> I guess you are still on version 2.6 ? > > > I can access each of these from my jailed shell user account without = > issue, and especially i try /usr/bin/python3 > > nikos@superhost.gr [~]# /usr/bin/python -V > Python 2.6.6 > > nikos@superhost.gr [~]# /opt/python3/bin/python3 -V > Python 3.2.3 > > nikos@superhost.gr [~]# /usr/bin/python3 -V > Python 3.2.3 > > > Problem is that when i change my shebang constructor to = > #!/sur/bin/python3 my '/cgi-bin/metrites.py' python cgi scripts produc= es = > an internal server error while with #!/sur/bin/python the script works= . > > Any ideas as to why? I can post ocde if you want to. You need to post the Traceback. Either run /usr/bin/python3 /cgi-bin/metrites.py on the shell or better look in your webserver error log. Guess: In Python 3 "print" is a function. So print "something" will not work. You need to print("something")