NBR750 Python errors

Information related to Orbi routers
Forum rules
Use the search function prior to posting a topic on a subject that already exists
Post Reply
NHeydary
Posts: 12
Joined: Tue Nov 02, 2021 12:45 pm
Has thanked: 2 times
Been thanked: 0

NBR750 Python errors

Post by NHeydary »

Great writeup in the tutorial albeit there are a couple of issues a newbie like myself is having troubling with. First off, I'm unclear how to, "open a command prompt in the directory where the script has been downloaded". And, just to be clear, the command prompt is utilizing the Python app or CMD? I tried both. The Windows CMD prompt gives the error: 'telnet-enable2.py' is not recognized as an internal or external command,
operable program or batch file. The Python app gives the following error:
C:\Users\nemat\Downloads\telnet-enable2.py 192.168.1.1 [MyMACAddress] admin [MyRouterPW]
^
SyntaxError: unexpected character after line continuation character

What's the proper syntax?
NHeydary
Posts: 12
Joined: Tue Nov 02, 2021 12:45 pm
Has thanked: 2 times
Been thanked: 0

Re: NBR750 Python errors

Post by NHeydary »

So, after reading up on python I was able to put in the telnet-enable2.py 192.168.1.1 [MyMACAddress] admin [RouterPW] and got:

PS C:\Users\nemat\Downloads> python
Python 3.12.2 (tags/v3.12.2:6abddd9, Feb 6 2024, 21:26:36) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> telnet-enable2.py 192.168.1.1 [MyMACAddress] admin [MyRouterPW]
File "<stdin>", line 1
telnet-enable2.py 192.168.1.1 [MyMACAddress] admin [MyRouterPW]
^^^^^^^
SyntaxError: invalid syntax

The arrows pointing to 192.168. show it as the invalid syntax. What needs to change?
TwoEightZero
Posts: 15
Joined: Thu Jul 30, 2020 5:38 pm
Has thanked: 6 times
Been thanked: 1 time

Re: NBR750 Python errors

Post by TwoEightZero »

This telnet-enable2.py 192.168.1.1 [MyMACAddress] admin [RouterPW] needs to be typed in Command Prompt NOT Python.

I gave up on this many months ago but pulled the ORBI out of the closet yesterday to try to reset it so I can sell it. I noticed my problem was the " File" I downloaded from GITHUB was actually named telnet-enable.py and the file didn't have the #2 after the word enable. Once I put the Github files AND python in the the same folder then navigated to that folder it in Command Prompt it actually worked! I also got rid of the [ ] around the MAC address and Password also.
Post Reply

Return to “Orbi”