Installation currently fails with the following error:
python3 setup.py install
Traceback (most recent call last):
File "setup.py", line 2, in
from pyrealtime import version
File "/home/snietfeld/Downloads/pyrealtime/pyrealtime/init.py", line 2, in
from .decode_layer import *
File "/home/snietfeld/Downloads/pyrealtime/pyrealtime/decode_layer.py", line 1, in
from pyrealtime.layer import TransformMixin, ThreadLayer
File "/home/snietfeld/Downloads/pyrealtime/pyrealtime/layer.py", line 10, in
from pyrealtime import utils
File "/home/snietfeld/Downloads/pyrealtime/pyrealtime/utils.py", line 75
print(f"FPS: {self.ticks / elapsed_time}")
^
SyntaxError: invalid syntax
Looks like maybe just a typo? Removing the preceeding "f" fixes the issue.
F-strings are a new feature in Python 3.6. I'll remove this though to improve backwards compatibility.
I get syntax error when running setup.py :
Traceback (most recent call last):
File "D:\Documents\Python\pyrealtime-master\setup.py", line 2, in
from pyrealtime import version
File "D:\Documents\Python\pyrealtime-master\pyrealtime_init_.py", line 2, in
from .decode_layer import *
File "D:\Documents\Python\pyrealtime-master\pyrealtime\decode_layer.py", line 1, in
from pyrealtime.layer import TransformMixin, ThreadLayer
File "D:\Documents\Python\pyrealtime-master\pyrealtime\layer.py", line 422
def init(self, *args, encoder=None, **kwargs):
^
SyntaxError: invalid syntax
("encoder" marked with ^)
Could I be missing a dependency?
Hi @Citizen07, it looks like you're using Python 2. Pyrealtime only works in Python 3. I've opened a new issue to make this error message clearer.