Muddasir
Hi,
Environment:
Debian 9
Python : 2.7

Error:
Traceback (most recent call last):
File "PLCOpenEditor.py", line 40, in <module>
from IDEFrame import IDEFrame, AppendMenu
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/IDEFrame.py", line 35, in <module>
from editors.EditorPanel import EditorPanel
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/editors/EditorPanel.py", line 29, in <module>
from controls import VariablePanel
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/controls/__init__.py", line 34, in <module>
from controls.DebugVariablePanel import DebugVariablePanel
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/controls/DebugVariablePanel/__init__.py", line 26, in <module>
from controls.DebugVariablePanel.DebugVariablePanel import DebugVariablePanel
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/controls/DebugVariablePanel/DebugVariablePanel.py", line 43, in <module>
from controls.DebugVariablePanel.DebugVariableTextViewer import DebugVariableTextViewer
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/controls/DebugVariablePanel/DebugVariableTextViewer.py", line 31, in <module>
from controls.DebugVariablePanel.DebugVariableViewer import DebugVariableViewer
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/controls/DebugVariablePanel/DebugVariableViewer.py", line 32, in <module>
from dialogs.ForceVariableDialog import ForceVariableDialog
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/dialogs/__init__.py", line 51, in <module>
from dialogs.DiscoveryDialog import DiscoveryDialog
File "/home/muddasir/work/Lab Course/PLCopen Editor v1.3 - Linux/PLCopen Editor/dialogs/DiscoveryDialog.py", line 31, in <module>
from zeroconf import ServiceBrowser, Zeroconf
File "/home/muddasir/.local/lib/python2.7/site-packages/zeroconf.py", line 175
def current_time_millis() -> float:
^
SyntaxError: invalid syntax

Explanation
To install the dependencies I used the following commands:
sudo apt-get install python-wxgtk3.0 pyro python-numpy python-nevow python-matplotlib python-lxml python-zeroconf

ZeroconF version
Name: zeroconf
Version: 0.21.3
Summary: Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)
Home-page: https://github.com/jstasiak/python-zeroconf
Author: Paul Scott-Murphy, William McBrine, Jakub Stasiak
Author-email: UNKNOWN
License: LGPL
Location: /home/muddasir/.local/lib/python2.7/site-packages
Requires: ifaddr, typing

If it is a problem with Python or zeroconf library?

with best regards
Muddasir Shakil
Reply 0 0
thiagoralves
Zeroconf 0.21.3 doesn't support python 2.7 anymore. You must install zeroconf 0.19.1:
sudo apt purge python-zeroconf
pip uninstall zeroconf
pip install zeroconf==0.19.1
Reply 0 0
Reply