Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96071

Re: Can anyone help me run python scripts with http.server?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'static': 0.03; 'modified': 0.05; 'executable': 0.07; 'subject:help': 0.07; 'apache,': 0.09; 'it;': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'restarted': 0.09; 'scripts,': 0.09; 'work"': 0.09; 'python': 0.10; 'times,': 0.13; 'apache': 0.14; 'subject:python': 0.14; '.py': 0.16; 'program...': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:run': 0.16; 'url:home': 0.18; 'runs': 0.18; 'variable': 0.18; 'windows': 0.20; '2015': 0.20; 'extension': 0.20; 'sep': 0.22; 'defined': 0.23; 'requests': 0.25; "doesn't": 0.26; 'header:X-Complaints-To:1': 0.26; 'followed': 0.27; 'handling': 0.27; 'pages,': 0.27; 'reaches': 0.27; 'idea': 0.28; 'privileges': 0.29; 'environment': 0.29; 'code': 0.30; 'run': 0.33; '-0700': 0.33; 'server': 0.34; 'could': 0.35; 'path': 0.35; "isn't": 0.35; 'problem.': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python- list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'anything': 0.38; 'log': 0.38; 'files': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'subject:with': 0.40; 'some': 0.40; 'your': 0.60; 'email addr:gmail.com': 0.62; 'real': 0.62; 'information': 0.63; 'times': 0.63; '"it': 0.84; 'dennis': 0.91; 'received:108': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Can anyone help me run python scripts with http.server?
Date Sun, 06 Sep 2015 13:11:23 -0400
Organization IISS Elusive Unicorn
References <3877a9ae-edbd-4d36-925a-5cb3789bd1bd@googlegroups.com> <mailman.170.1441541749.8327.python-list@python.org> <31ec836b-4cb0-4079-8c12-f6b66a5cd143@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 108.68.178.61
X-Newsreader Forte Agent 6.00/32.1186
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.180.1441559501.8327.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1441559501 news.xs4all.nl 23810 [2001:888:2000:d::a6]:56512
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:96071

Show key headers only | View raw


On Sun, 6 Sep 2015 05:38:50 -0700 (PDT), tropical.dude.net@gmail.com
declaimed the following:

>
>I am using Windows 7, I followed the instructions, modified httpd.conf
>many times, restarted apache many times till I gave up

	And what does the Apache log(s) show... Presuming your URL reaches
Apache, the log should (I don't run a webserver) have some information of
what was requested, what Apache did with it, etc.

	If it is handling static pages, but not Python scripts, it could be
that the environment PATH variable that the server runs with does not have
the path to Python on it; or the environment does not have .py defined as
the extension of an executable program...

	Just repeating "it doesn't work" is not going to find a solution!

"It doesn't work" : you are sending requests to a port that isn't listening
for web requests

"It doesn't work" : the server doesn't know where to look for the page

"It doesn't work" : the server doesn't have privileges to run code

"It doesn't work" : the code is started but fails to return anything the
server can send to the user

...

	Log files should give some idea of which of those "it doesn't work"
might be the real problem.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 04:50 -0700
  Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:15 +0200
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:35 -0700
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:38 -0700
      Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:45 +0200
        Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 06:07 -0700
          Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-06 23:23 +1000
            Re: Can anyone help me run python scripts with http.server? Denis McMahon <denismfmcmahon@gmail.com> - 2015-09-06 20:04 +0000
              Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-07 12:48 +1000
          Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 17:03 +0200
          Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-07 01:13 +1000
      Re: Can anyone help me run python scripts with http.server? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-06 13:11 -0400
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:42 -0700
  Re: Can anyone help me run python scripts with http.server? Chris Warrick <kwpolska@gmail.com> - 2015-09-06 14:16 +0200
  Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:28 +0200
  Re: Can anyone help me run python scripts with http.server? Peter Otten <__peter__@web.de> - 2015-09-06 14:32 +0200
  Re: Can anyone help me run python scripts with http.server? Peter Otten <__peter__@web.de> - 2015-09-06 14:43 +0200
  Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:47 -0700

csiph-web