Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipython:7.4 py:3.64 %edit subproess BlockingIOError in cygwin #11676

Open
QGB opened this issue Apr 6, 2019 · 0 comments
Open

ipython:7.4 py:3.64 %edit subproess BlockingIOError in cygwin #11676

QGB opened this issue Apr 6, 2019 · 0 comments

Comments

@QGB
Copy link

QGB commented Apr 6, 2019

In [24]: import _posixsubprocess

In [25]:  _posixsubprocess.fork_exec( ['/bin/sh', '-c', 'vi +2716 /home/qgb/qgb/U.py'], (b'/bin/sh',), True, (9,), None, None, -1, -1, -1, -1, -1, -1
    ...: , 8, 9, True, False, None )
      4 [main] python3.6m 3204 child_info_fork::abort: address space needed by 'cygsqlite3-0.dll' (0x1130000) is already occupied
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
<ipython-input-25-a70a9836cb02> in <module>
----> 1 _posixsubprocess.fork_exec( ['/bin/sh', '-c', 'vi +2716 /home/qgb/qgb/U.py'], (b'/bin/sh',), True, (9,), None, None, -1, -1, -1, -1, -1, -1, 8, 9, True, False, None )

BlockingIOError: [Errno 11] Resource temporarily unavailable

In [26]: ipy.gstitle
Out[26]: 'ipy:7.4 py:3.64 at[2019-04-07 00:08:27.003] C:/test/ipy/'

In [27]: %edit
IPython will make a temporary file named: /tmp/ipython_edit_enzrvz9z/ipython_edit_02hwyct6.py
Editing... /bin/sh: /usr/bin/vi: cannot execute binary file: Exec format error
/usr/lib/python3.6/site-packages/IPython/core/magics/code.py:699: UserWarning: Could not open editor
  warn('Could not open editor')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant