2 Errors

69 views
Skip to first unread message

Joe LB1HI

unread,
Jan 14, 2021, 3:04:15 PM1/14/21
to Hermes-Lite
Hi,

1.
 Python in Windows and Linux
python3 -i hermeslite.py
  File "hermeslite.py", line 7
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax
>>>

2.
Jupyter Notebook
Unreadable Notebook: /home/shack/PY/hermeslite.ipynb NotJSONError("Notebook does not appear to be JSON: '\\n\\n\\n\\n\\n\\n<!DOCTYPE html>\\n<html lang...")

HL2PY.png

Any idea for solution ? Thanks


73, Joe


Matthew

unread,
Jan 14, 2021, 4:02:06 PM1/14/21
to Hermes-Lite
Hi Joe,

Just want to check I understand correctly:

1 - You are opening a linux terminal
2 - You navigate to the folder (from the command line) the hermeslite.py script is held
3 - From the command line you enter "python3 -i hermeslite.py"?

If so and it isn't working, can you type "head -5 hermeslite.py" and paste the output from that here? I would expect:

import socket, select, struct, collections, time, os
import shutil, tempfile, urllib.request

## The one response type received from the HL2
Response = collections.namedtuple('Response',

73 Matthew M5EVT.

Joe LB1HI

unread,
Jan 14, 2021, 8:09:05 PM1/14/21
to Hermes-Lite
Hi Matthew,
     Thank you for your reaction and reply.

1 - You are opening a linux terminal
2 - You navigate to the folder (from the command line) the hermeslite.py script is held
3 - From the command line you enter "python3 -i hermeslite.py"?
      Yes that's right

     After head  -5 hermeslite.py I got the same response after fix :


     import socket, select, struct, collections, time, os
     import shutil, tempfile, urllib.request

    ## The one response type received from the HL2
    Response = collections.namedtuple('Response',

    The fix was to use files from downloaded zip-ed github repository. Previous downloading with use  "save target as..." was  failure. (html)
    Jupyter notebook works also fine now.

73, Joe, LB1HI

Reply all
Reply to author
Forward
0 new messages