View: 1401|Reply: 3

RobotTank - error on webServer.py

[Copy link]

1

Threads

1

Posts

9

Credits

Newbie

Rank: 1

Credits
9
Post time 2020-8-7 01:24:33 | Show all posts |Read mode
Hello,
I have bought a RoboTank.
I installed my rasbian image correctly and download the git repo.

Then, i run setup.py and everything went good. I installed the HAT board and the camera.
I restarted the RPi and nothing happened.

If i try to run manually webserver.py i get

  1. File "adeept_rasptank/server/webServer.py", line 339
  2.     with open(f'{projectPath}/config.json', 'r') as f1:
  3.                                          ^
  4. SyntaxError: invalid syntax
Copy the Code


What ma i missing?

Thanks
Reply

Use magic Report

0

Threads

23

Posts

73

Credits

Registered member

Rank: 2

Credits
73
Post time 2020-8-21 16:10:05 | Show all posts
If you are using "sudo python adeept_rasptank/server/webServer.py", this problem may occur, please use the command: "sudo python3 adeept_rasptank/server/webServer.py", pay attention to use ‘python3’ instead of “python”
Reply

Use magic Report

0

Threads

3

Posts

16

Credits

Newbie

Rank: 1

Credits
16
Post time 2020-9-8 22:53:20 | Show all posts
I have the same issue and have used python3 as you said on the command what else could possibly cause this. From the command line:

$ sudo python3 adeept_rasptank/server/webServer.py
  File "adeept_rasptank/server/webServer.py", line 339
    with open(f'{projectPath}/config.json', 'r') as f1:
                                         ^
SyntaxError: invalid syntax
Reply

Use magic Report

0

Threads

23

Posts

73

Credits

Registered member

Rank: 2

Credits
73
Post time 2020-9-12 18:10:33 | Show all posts
1599576572 replied at 2020-9-8 10:53 PM
I have the same issue and have used python3 as you said on the command what else could possibly caus ...

Please try to download the code again:
1. Delete the folder adeept_rasptank:
Run the command: "sudo rm -rf adeept_rasptank"

2. Run the command: "git clone https://github.com/adeept/adeept_rasptank.git"

3. Run the command: "sudo python3 adeept_rasptank/server/webServer.py"




Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules