{"action":"created","issue":{"url":"https://api.github.com/repos/jMetal/jMetalPy/issues/35","repository_url":"https://api.github.com/repos/jMetal/jMetalPy","labels_url":"https://api.github.com/repos/jMetal/jMetalPy/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/jMetal/jMetalPy/issues/35/comments","events_url":"https://api.github.com/repos/jMetal/jMetalPy/issues/35/events","html_url":"https://github.com/jMetal/jMetalPy/issues/35","id":419425271,"node_id":"MDU6SXNzdWU0MTk0MjUyNzE=","number":35,"title":"can's use Streaming plots","user":{"login":"Gxinhu","id":12217422,"node_id":"MDQ6VXNlcjEyMjE3NDIy","avatar_url":"https://avatars1.githubusercontent.com/u/12217422?v=4","gravatar_id":"","url":"https://api.github.com/users/Gxinhu","html_url":"https://github.com/Gxinhu","followers_url":"https://api.github.com/users/Gxinhu/followers","following_url":"https://api.github.com/users/Gxinhu/following{/other_user}","gists_url":"https://api.github.com/users/Gxinhu/gists{/gist_id}","starred_url":"https://api.github.com/users/Gxinhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gxinhu/subscriptions","organizations_url":"https://api.github.com/users/Gxinhu/orgs","repos_url":"https://api.github.com/users/Gxinhu/repos","events_url":"https://api.github.com/users/Gxinhu/events{/privacy}","received_events_url":"https://api.github.com/users/Gxinhu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-11T11:40:15Z","updated_at":"2019-03-11T12:34:49Z","closed_at":null,"author_association":"NONE","body":"Hello, I am trying to use Streaming plots, but it does not work. I got this output. The operating system is Ubuntu 18.04.IDE is Pycharm\r\n\r\n>`/usr/bin/python3.7 /home/hu/Desktop/jMetalPy-master/examples/multiobjective/moead_DTLZ2.py\r\nError importing optional module IPython.core.display\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.7/dist-packages/plotly/optional_imports.py\", line 25, in get_module\r\n    return import_module(name)\r\n  File \"/usr/lib/python3.7/importlib/__init__.py\", line 127, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 953, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 953, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 967, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 677, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/__init__.py\", line 54, in <module>\r\n    from .core.application import Application\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/application.py\", line 25, in <module>\r\n    from IPython.core import release, crashhandler\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/crashhandler.py\", line 27, in <module>\r\n    from IPython.core import ultratb\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py\", line 119, in <module>\r\n    from IPython.utils import path as util_path\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/path.py\", line 17, in <module>\r\n    from IPython.utils.process import system\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/process.py\", line 19, in <module>\r\n    from ._process_posix import system, getoutput, arg_split, check_pid\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/_process_posix.py\", line 23, in <module>\r\n    import pexpect\r\n  File \"/usr/lib/python3/dist-packages/pexpect/__init__.py\", line 75, in <module>\r\n    from .pty_spawn import spawn, spawnu\r\n  File \"/usr/lib/python3/dist-packages/pexpect/pty_spawn.py\", line 14, in <module>\r\n    from .spawnbase import SpawnBase\r\n  File \"/usr/lib/python3/dist-packages/pexpect/spawnbase.py\", line 224\r\n    def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):\r\n                                                                   ^\r\nSyntaxError: invalid syntax\r\nError importing optional module IPython\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.7/dist-packages/plotly/optional_imports.py\", line 25, in get_module\r\n    return import_module(name)\r\n  File \"/usr/lib/python3.7/importlib/__init__.py\", line 127, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 967, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 677, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/__init__.py\", line 54, in <module>\r\n    from .core.application import Application\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/application.py\", line 25, in <module>\r\n    from IPython.core import release, crashhandler\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/crashhandler.py\", line 27, in <module>\r\n    from IPython.core import ultratb\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py\", line 119, in <module>\r\n    from IPython.utils import path as util_path\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/path.py\", line 17, in <module>\r\n    from IPython.utils.process import system\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/process.py\", line 19, in <module>\r\n    from ._process_posix import system, getoutput, arg_split, check_pid\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/_process_posix.py\", line 23, in <module>\r\n    import pexpect\r\n  File \"/usr/lib/python3/dist-packages/pexpect/__init__.py\", line 75, in <module>\r\n    from .pty_spawn import spawn, spawnu\r\n  File \"/usr/lib/python3/dist-packages/pexpect/pty_spawn.py\", line 14, in <module>\r\n    from .spawnbase import SpawnBase\r\n  File \"/usr/lib/python3/dist-packages/pexpect/spawnbase.py\", line 224\r\n    def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):\r\n                                                                   ^\r\nSyntaxError: invalid syntax\r\nError importing optional module IPython.display\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.7/dist-packages/plotly/optional_imports.py\", line 25, in get_module\r\n    return import_module(name)\r\n  File \"/usr/lib/python3.7/importlib/__init__.py\", line 127, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 953, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 967, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 677, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/__init__.py\", line 54, in <module>\r\n    from .core.application import Application\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/application.py\", line 25, in <module>\r\n    from IPython.core import release, crashhandler\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/crashhandler.py\", line 27, in <module>\r\n    from IPython.core import ultratb\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py\", line 119, in <module>\r\n    from IPython.utils import path as util_path\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/path.py\", line 17, in <module>\r\n    from IPython.utils.process import system\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/process.py\", line 19, in <module>\r\n    from ._process_posix import system, getoutput, arg_split, check_pid\r\n  File \"/usr/local/lib/python3.7/dist-packages/IPython/utils/_process_posix.py\", line 23, in <module>\r\n    import pexpect\r\n  File \"/usr/lib/python3/dist-packages/pexpect/__init__.py\", line 75, in <module>\r\n    from .pty_spawn import spawn, spawnu\r\n  File \"/usr/lib/python3/dist-packages/pexpect/pty_spawn.py\", line 14, in <module>\r\n    from .spawnbase import SpawnBase\r\n  File \"/usr/lib/python3/dist-packages/pexpect/spawnbase.py\", line 224\r\n    def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):\r\n                                                                   ^\r\nSyntaxError: invalid syntax\r\nProgress: 100%|##########| 50000/50000 [00:10<00:00, 4570.83it/s]\r\nAlgorithm (continuous problem): MOEAD\r\nProblem: DTLZ1\r\nComputing time: 10.940814733505249\r\nProcess finished with exit code 0'\r\n"},"comment":{"url":"https://api.github.com/repos/jMetal/jMetalPy/issues/comments/471521054","html_url":"https://github.com/jMetal/jMetalPy/issues/35#issuecomment-471521054","issue_url":"https://api.github.com/repos/jMetal/jMetalPy/issues/35","id":471521054,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MTUyMTA1NA==","user":{"login":"benhid","id":6999898,"node_id":"MDQ6VXNlcjY5OTk4OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6999898?v=4","gravatar_id":"","url":"https://api.github.com/users/benhid","html_url":"https://github.com/benhid","followers_url":"https://api.github.com/users/benhid/followers","following_url":"https://api.github.com/users/benhid/following{/other_user}","gists_url":"https://api.github.com/users/benhid/gists{/gist_id}","starred_url":"https://api.github.com/users/benhid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhid/subscriptions","organizations_url":"https://api.github.com/users/benhid/orgs","repos_url":"https://api.github.com/users/benhid/repos","events_url":"https://api.github.com/users/benhid/events{/privacy}","received_events_url":"https://api.github.com/users/benhid/received_events","type":"User","site_admin":false},"created_at":"2019-03-11T12:34:49Z","updated_at":"2019-03-11T12:34:49Z","author_association":"COLLABORATOR","body":"Hello @Gxinhu ! The traceback shows that you are using Python 3.7. `async` is a reserved keyword in that version of Python, which is why you are getting a `SyntaxError` in the line 224 of `/usr/lib/python3/dist-packages/pexpect/spawnbase.py`.\r\n\r\nThis issue seems to be fixed in latter versions of pexpect (see https://github.com/pexpect/pexpect/issues/453), so I suggest to manually update that package."}}
{"actor":{"display_login":"benhid"}}