Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

os.waitpid that never ends with "sh" library #512

Open
Labels
@cym13

Description

@cym13

Hi,

Here is the stackstrace:

$ /usr/bin/bpythonbpython version 0.14.1 on top of Python 3.4.3 /usr/bin/python>>> from sh import ls, cat>>> ls()Traceback (most recent call last):  File "<input>", line 1, in <module>  File "/usr/lib/python3.4/site-packages/sh.py", line 769, in __call__    return RunningCommand(cmd, call_args, stdin, stdout, stderr)  File "/usr/lib/python3.4/site-packages/sh.py", line 330, in __init__    self.wait()  File "/usr/lib/python3.4/site-packages/sh.py", line 334, in wait    self._handle_exit_code(self.process.wait())  File "/usr/lib/python3.4/site-packages/sh.py", line 1152, in wait    pid, exit_code = os.waitpid(self.pid, 0)InterruptedError: [Errno 4] Interrupted system call>>> cat("./test.py")Traceback (most recent call last):  File "<input>", line 1, in <module>  File "/usr/lib/python3.4/site-packages/sh.py", line 769, in __call__    return RunningCommand(cmd, call_args, stdin, stdout, stderr)  File "/usr/lib/python3.4/site-packages/sh.py", line 330, in __init__    self.wait()  File "/usr/lib/python3.4/site-packages/sh.py", line 334, in wait    self._handle_exit_code(self.process.wait())  File "/usr/lib/python3.4/site-packages/sh.py", line 1152, in wait    pid, exit_code = os.waitpid(self.pid, 0)InterruptedError: [Errno 4] Interrupted system call

Each call to a function imported through sh never ends, the previous
exceptions were thrown only when I forced it to flush by resizing the window.
The same lines were tested with python3 and ipython3 without problem.

It may be of importance to know my system:

$ uname -a
Linux Eather 3.19.2-1-ARCH#1 SMP PREEMPT Wed Mar 18 16:21:02 CET 2015 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp