-

CommentStreams:Ee912f7289f3ff3c7fbbf867aa43a468

From Geekworm Wiki
Jump to navigation Jump to search

There are some problems in the python code with the actully raspberry pi os (raspbian).

If i want to use ``` sudo python3 x708bat.py ``` The system calls: ```

 File "/home/pi/x708bat.py", line 24
   print "******************"
         ^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print("******************")? ```

If I change it to print(*******) i had the follow error:

```

 File "/home/pi/x708bat.py", line 25
   print "Voltage:%5.2fV" % readVoltage(bus)
         ^

SyntaxError: invalid syntax

```

Any idea how I can fix that?

Thx!