Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

SyntaxError: Invalid Syntax On Windows 10 Py3 #65

Open

Description

@secbug

Following the regular instructions in the read me on Win10 using Py3, it fails running "python sample" or "python3 sample"

$ python sample
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\runpy. py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\runpy. py", line 85, in _run_code                                                           
    exec(code, run_globals)
  File "sample\__main__.py", line 8, in
    from view import MyApp
  File "sample\view\__init__.py", line 15, in
    from view.panel_detection import DetectionPanel
  File "sample\view\panel_detection.py", line 90
    @util.async

SyntaxError: invalid syntax

Activity

  1. acured commented on Jan 30, 2019

    @acured

    Hi secbug , can you have a try with python x64?

  2. secbug commented on Jan 30, 2019

    @secbug
    Author

    I actually did two things to fix this and start the app.

    1. Included the change in pull request Python3.7 #60 -
    178 - def async(func):
    178 +async def func()::
    
    1. Removed the offending line in panel_detection.py:
    90 - @util.async
    

    Are there negative side-effects to this, as I've seen none thus far in the UI.

  3. acured commented on Jan 31, 2019

    @acured

    Right, Both of these are used to define the function as async. "@util.async" is just an easier way of saying async_detect = util.async(async_detect).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions