Python Forum
python -m http.server giving invalid syntax
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python -m http.server giving invalid syntax
#4
Thanks for the reply.

My V is 3.6.5 and either way (python or python3) the return is:

file "<stdin>", line 1
python3 -m http.server 8000
(up caret under the 'p') ((Alt 94 doesn't work?)
SyntaxError: invalid syntax

I tried
import http.server
and it ran OK seemingly.
help(hhtp.server)
ran OK too (hard to get out of tho).

I don't know . . .
Reply


Messages In This Thread
RE: python -m http.server giving invalid syntax - by echowit - May-15-2018, 09:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Paramiko Server -- Exception (server): Error reading SSH protocol banner ujlain 3 5,256 Jul-24-2023, 06:52 AM
Last Post: Gribouillis
  TCP server syntax error wabbit 2 1,661 May-18-2023, 06:40 AM
Last Post: buran
  Server Http and Https JohnnyCoffee 2 2,096 Feb-10-2023, 12:56 AM
Last Post: Skaperen
  HTTP Server JohnnyCoffee 1 2,903 Mar-22-2021, 01:50 AM
Last Post: Larz60+
  http server whit proxy jrcruz 0 2,620 Feb-13-2019, 10:02 AM
Last Post: jrcruz
  Add password to HTTP.server edgarfinchley 1 14,230 Aug-09-2018, 03:17 PM
Last Post: nilamo
  Python 2 http networking problems, if any Aeneas 1 3,220 Sep-06-2017, 07:24 PM
Last Post: wavic
  newbie here - need help with building very basic http server BenSalem 0 2,434 Aug-14-2017, 08:06 AM
Last Post: BenSalem

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020