File "/usr/lib/python3.7/site-packages/pexpect/spawnbase.py", line 224 def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False): ^ SyntaxError: invalid syntax Supported from Version 4.3: The async= parameter to integrate with asyncio has become async_= (PR #431), as async is becoming a Python keyword from Python 3.6. Pexpect will still recognise async as an alternative spelling. https://pexpect.readthedocs.io/en/stable/history.html#version-4-3 dev-python/pexpect-4.6.0 working with Python 3.7 without problems.
*** Bug 687948 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa2bc8d05805b3dcd9eb75b589cf261ae2c7577f commit aa2bc8d05805b3dcd9eb75b589cf261ae2c7577f Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-07-08 05:51:16 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-07-08 05:51:20 +0000 dev-python/pexpect: Remove py3.7 from 4.2.1 As reported on Bugzilla, pexpect-4.2.1 does not work correctly with Python 3.7. Remove it. Reported-by: Chris Mayo, Oz Tiram Closes: https://bugs.gentoo.org/678854 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/pexpect/pexpect-4.2.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)