microsoft / playwright-python

Python version of the Playwright testing and automation library.
https://playwright.dev/python/
Apache License 2.0
11.53k stars 881 forks source link

[Errno 35] Resource temporarily unavailable #642

Closed dengbin9009 closed 3 years ago

dengbin9009 commented 3 years ago

An error occurred after using playwright about 2500 consecutive times:

===============except Exception as e:==============
Protocol error (Page.enable): Browser closed.
==================== Browser output: ====================
[pid=94133][err]  [0x000120dcab11]
[pid=94133][err]  [0x7fff70b555fd]
[pid=94133][err]  [0x00010fce4000]
[pid=94133][err]  [0x00011eb91403]
[pid=94133][err]  [0x00011eb91a98]
[pid=94133][err]  [0x00011e99da27]
[pid=94133][err]  [0x000123c356f3]
[pid=94133][err]  [0x00011eb76e0e]
[pid=94133][err]  [0x00011eb76d7b]
[pid=94133][err]  [0x00011eb796ad]
[pid=94133][err]  [0x000126b4d027]
[pid=94133][err]  [0x000126b4a2b8]
[pid=94133][err]  [0x00011eb76c9e]
[pid=94133][err]  [0x00011eb76b25]
[pid=94133][err]  [0x00011eb71b02]
[pid=94133][err]  [0x000120d84ec8]
[pid=94133][err]  [0x000120d98351]
[pid=94133][err]  [0x000120d9802a]
[pid=94133][err]  [0x000120dde2b7]
[pid=94133][err]  [0x000120dd85e2]
[pid=94133][err]  [0x000120dddcef]
[pid=94133][err]  [0x7fff36875d52]
[pid=94133][err]  [0x7fff36875cf1]
[pid=94133][err]  [0x7fff36875b0b]
[pid=94133][err]  [0x7fff3687483a]
[pid=94133][err]  [0x7fff36873e3e]
[pid=94133][err]  [0x7fff354a0abd]
[pid=94133][err]  [0x7fff354a07d5]
[pid=94133][err]  [0x7fff354a0579]
[pid=94133][err]  [0x7fff33ae6039]
[pid=94133][err]  [0x7fff33ae4880]
[pid=94133][err]  [0x7fff33ad658e]
[pid=94133][err]  [0x000120ddea6c]
[pid=94133][err]  [0x000120ddd89c]
[pid=94133][err]  [0x000120d9899b]
[pid=94133][err]  [0x000120d631fb]
[pid=94133][err]  [0x00011ead85a0]
[pid=94133][err]  [0x00011ead9e32]
[pid=94133][err]  [0x000126b5640e]
[pid=94133][err]  [0x000120ca66f3]
[pid=94133][err]  [0x000120ca631f]
[pid=94133][err]  [0x000120ca4d9c]
[pid=94133][err]  [0x000120ca558d]
[pid=94133][err]  [0x000126b3e392]
[pid=94133][err]  [0x000126b3e0ec]
[pid=94133][err]  [0x00011d6d7770]
[pid=94133][err]  [0x00010fca111f]
[pid=94133][err]  [0x7fff7095ccc9]
[pid=94133][err]  [0x000000000020]
[pid=94133][err] [end of stack trace]
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2761
count:2764
count:2765
count:2763
===============except Exception as e:==============
count:2766
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
count:2767
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
count:2769
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94160
[pid=94160][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
=========================== logs ===========================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94160
[pid=94160][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.count:2768
events.js:291
      throw er; // Unhandled 'error' event
      ^

Error: read ENOTCONN
    at tryReadStart (net.js:574:20)
    at Socket._read (net.js:585:5)
    at Socket.Readable.read (_stream_readable.js:469:10)
    at Socket.read (net.js:625:39)
    at new Socket (net.js:377:12)
    at Object.Socket (net.js:268:41)
    at createSocket (internal/child_process.js:315:14)
    at ChildProcess.spawn (internal/child_process.js:438:23)
    at Object.spawn (child_process.js:553:9)
    at Object.launchProcess (/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/package/lib/server/processLauncher.js:57:41)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'ENOTCONN',
  code: 'ENOTCONN',
  syscall: 'read'
}
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94194
[pid=94194][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94194] <process did exit: exitCode=128, signal=null>
=========================== logs ===========================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94194
[pid=94194][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94194] <process did exit: exitCode=128, signal=null>
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
count:2770
count:2772
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2771
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
[Errno 35] Resource temporarily unavailable
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
count:2773
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable

count:2777
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2776
count:2775
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2778
'PlaywrightContextManager' object has no attribute '_playwright'
count:2774
===============except Exception as e:==============
count:2779
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
[Errno 35] Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2781
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
[Errno 35] Resource temporarily unavailable
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
[Errno 35] Resource temporarily unavailable
count:2780
count:2783
'PlaywrightContextManager' object has no attribute '_playwright'
count:2784
count:2782
count:2785
'PlaywrightContextManager' object has no attribute '_playwright'
count:2789
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2788
count:2790
count:2787
count:2791
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2786
[Errno 35] Resource temporarily unavailable
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2792
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
count:2793
===============except Exception as e:==============
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
===============except Exception as e:==============
count:2794
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
[Errno 35] Resource temporarily unavailable
count:2797
count:2795
count:2798
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
===============except Exception as e:==============
[Errno 35] Resource temporarily unavailable
count:2799
count:2802
count:2800
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
count:2801
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2796
'PlaywrightContextManager' object has no attribute '_playwright'
[Errno 35] Resource temporarily unavailable
count:2803
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
count:2804
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2805
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
count:2806
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2807
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
count:2808
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
count:2809
count:2811
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
count:2810
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
count:2814
===============except Exception as e:==============
count:2812
count:2815
===============except Exception as e:==============
count:2813
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94327
[pid=94327][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94327][err] Cannot find a Playwright.app in neither location
=========================== logs ===========================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94327
[pid=94327][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94327][err] Cannot find a Playwright.app in neither location
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.
count:2821
count:2819
count:2820
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
count:2816
count:2818
count:2823
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
===============except Exception as e:==============
count:2822
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2817
count:2824
count:2825
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94346
[pid=94346][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94346] <process did exit: exitCode=128, signal=null>
=========================== logs ===========================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94346
[pid=94346][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94346] <process did exit: exitCode=128, signal=null>
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.===============except Exception as e:==============
===============except Exception as e:==============
count:2827
===============except Exception as e:==============
Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94347
[pid=94347][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94347][err] Cannot find a Playwright.app in neither location
=========================== logs ===========================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94347
[pid=94347][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94347][err] Cannot find a Playwright.app in neither location
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.count:2826
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============

'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
count:2828
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable

count:2833
count:2830
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
===============except Exception as e:==============
[Errno 35] Resource temporarily unavailable
count:2829
===============except Exception as e:==============
count:2831
count:2835
'PlaywrightContextManager' object has no attribute '_playwright'
count:2836
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
count:2837
count:2834
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
count:2832
===============except Exception as e:==============
Protocol error (Page.enable): Browser closed.
==================== Browser output: ====================
[pid=94369][err]  [0x000118079b11]
[pid=94369][err]  [0x7fff70b555fd]
[pid=94369][err]  [0x00010997f000]
[pid=94369][err]  [0x000115e40403]
[pid=94369][err]  [0x000115e40a98]
[pid=94369][err]  [0x000115c4ca27]
[pid=94369][err]  [0x00011aee46f3]
[pid=94369][err]  [0x000115e25e0e]
[pid=94369][err]  [0x000115e25d7b]
[pid=94369][err]  [0x000115e286ad]
[pid=94369][err]  [0x00011ddfc027]
[pid=94369][err]  [0x00011ddf92b8]
[pid=94369][err]  [0x000115e25c9e]
[pid=94369][err]  [0x000115e25b25]
[pid=94369][err]  [0x000115e20b02]
[pid=94369][err]  [0x000118033ec8]
[pid=94369][err]  [0x000118047351]
[pid=94369][err]  [0x00011804702a]
[pid=94369][err]  [0x00011808d2b7]
[pid=94369][err]  [0x0001180875e2]
[pid=94369][err]  [0x00011808ccef]
[pid=94369][err]  [0x7fff36875d52]
[pid=94369][err]  [0x7fff36875cf1]
[pid=94369][err]  [0x7fff36875b0b]
[pid=94369][err]  [0x7fff3687483a]
[pid=94369][err]  [0x7fff36873e3e]
[pid=94369][err]  [0x7fff354a0abd]
[pid=94369][err]  [0x7fff354a07d5]
[pid=94369][err]  [0x7fff354a0579]
[pid=94369][err]  [0x7fff33ae6039]
[pid=94369][err]  [0x7fff33ae4880]
[pid=94369][err]  [0x7fff33ad658e]
[pid=94369][err]  [0x00011808da6c]
[pid=94369][err]  [0x00011808c89c]
[pid=94369][err]  [0x00011804799b]
[pid=94369][err]  [0x0001180121fb]
[pid=94369][err]  [0x000115d875a0]
[pid=94369][err]  [0x000115d88e32]
[pid=94369][err]  [0x00011de0540e]
[pid=94369][err]  [0x000117f556f3]
[pid=94369][err]  [0x000117f5531f]
[pid=94369][err]  [0x000117f53d9c]
[pid=94369][err]  [0x000117f5458d]
[pid=94369][err]  [0x00011dded392]
[pid=94369][err]  [0x00011dded0ec]
[pid=94369][err]  [0x000114986770]
[pid=94369][err]  [0x00010993c11f]
[pid=94369][err]  [0x7fff7095ccc9]
[pid=94369][err]  [0x000000000020]
[pid=94369][err] [end of stack trace]count:2838
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2839
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2840
count:2841
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable

count:2845
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
'PlaywrightContextManager' object has no attribute '_playwright'
count:2842
===============except Exception as e:==============
count:2844
count:2843
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
count:2846
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
===============except Exception as e:==============
===============except Exception as e:==============
count:2847
===============except Exception as e:==============
===============except Exception as e:==============
[Errno 35] Resource temporarily unavailable
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
count:2848
Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94419
[pid=94419][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94419] <process did exit: exitCode=128, signal=null>
=========================== logs ===========================
<launching> /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=94419
[pid=94419][err] /Users/ppd-0202000710/Library/Caches/ms-playwright/webkit-1446/pw_run.sh: fork: Resource temporarily unavailable
[pid=94419] <process did exit: exitCode=128, signal=null>
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.'PlaywrightContextManager' object has no attribute '_playwright'
count:2849
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
[Errno 35] Resource temporarily unavailable
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
[Errno 35] Resource temporarily unavailable
===============except Exception as e:==============
[Errno 35] Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
count:2851
'PlaywrightContextManager' object has no attribute '_playwright'
count:2852
count:2853
count:2854
count:2855
count:2856
count:2857
count:2858
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
count:2850

/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
Protocol error (Page.enable): Browser closed.
==================== Browser output: ====================
[pid=94422][err]  [0x000116a4eb11]
[pid=94422][err]  [0x7fff70b555fd]
[pid=94422][err]  [0x00010a40b000]
[pid=94422][err]  [0x000114815403]
[pid=94422][err]  [0x000114815a98]
[pid=94422][err]  [0x000114621a27]
[pid=94422][err]  [0x0001198b96f3]
[pid=94422][err]  [0x0001147fae0e]
[pid=94422][err]  [0x0001147fad7b]
[pid=94422][err]  [0x0001147fd6ad]
[pid=94422][err]  [0x00011c7d1027]
[pid=94422][err]  [0x00011c7ce2b8]
[pid=94422][err]  [0x0001147fac9e]
[pid=94422][err]  [0x0001147fab25]
[pid=94422][err]  [0x0001147f5b02]
[pid=94422][err]  [0x000116a08ec8]
[pid=94422][err]  [0x000116a1c351]
[pid=94422][err]  [0x000116a1c02a]
[pid=94422][err]  [0x000116a622b7]
[pid=94422][err]  [0x000116a5c5e2]
[pid=94422][err]  [0x000116a61cef]
[pid=94422][err]  [0x7fff36875d52]
[pid=94422][err]  [0x7fff36875cf1]
[pid=94422][err]  [0x7fff36875b0b]
[pid=94422][err]  [0x7fff3687483a]
[pid=94422][err]  [0x7fff36873e3e]
[pid=94422][err]  [0x7fff354a0abd]
[pid=94422][err]  [0x7fff354a07d5]
[pid=94422][err]  [0x7fff354a0579]
[pid=94422][err]  [0x7fff33ae6039]
[pid=94422][err]  [0x7fff33ae4880]
[pid=94422][err]  [0x7fff33ad658e]
[pid=94422][err]  [0x000116a62a6c]
[pid=94422][err]  [0x000116a6189c]
[pid=94422][err]  [0x000116a1c99b]
[pid=94422][err]  [0x0001169e71fb]
[pid=94422][err]  [0x00011475c5a0]
[pid=94422][err]  [0x00011475de32]
[pid=94422][err]  [0x00011c7da40e]
[pid=94422][err]  [0x00011692a6f3]
[pid=94422][err]  [0x00011692a31f]
[pid=94422][err]  [0x000116928d9c]
[pid=94422][err]  [0x00011692958d]
[pid=94422][err]  [0x00011c7c2392]
[pid=94422][err]  [0x00011c7c20ec]
[pid=94422][err]  [0x00011335b770]
[pid=94422][err]  [0x00010a3c811f]
[pid=94422][err]  [0x7fff7095ccc9]
[pid=94422][err]  [0x000000000020]
[pid=94422][err] [end of stack trace]/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2862
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2859
count:2860
count:2861
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory

/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
===============except Exception as e:==============
[Errno 35] Resource temporarily unavailable
count:2865
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
count:2864
===============except Exception as e:==============
count:2863
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /Users/ppd-0202000710/Code/PPD/MyGitLab/JD_financial/Python/JD_Financial_6.0/node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
[Errno 35] Resource temporarily unavailable
count:2866
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
count:2867
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2868
'PlaywrightContextManager' object has no attribute '_playwright'
count:2869
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2870
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2871
count:2872
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
count:2873
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
count:2874
===============except Exception as e:==============
count:2875
count:2876
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2877
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
'PlaywrightContextManager' object has no attribute '_playwright'
count:2879
count:2878
count:2880
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
count:2881
===============except Exception as e:==============
count:2882
count:2883
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
count:2884
===============except Exception as e:==============
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
'PlaywrightContextManager' object has no attribute '_playwright'
===============except Exception as e:==============
===============except Exception as e:==============
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
'PlaywrightContextManager' object has no attribute '_playwright'
count:2888
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: fork: Resource temporarily unavailable
/Users/ppd-0202000710/opt/miniconda3/envs/py37/lib/python3.7/site-packages/playwright/driver/playwright.sh: line 3: /node: No such file or directory
'PlaywrightContextManager' object has no attribute '_playwright'
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable
[Errno 35] Resource temporarily unavailable

my code is :

#!/usr/bin/python
# -*- encoding: utf-8 -*-
#@File    :   token.py
#@Time    :   2021/04/15 19:02:19
#@Author  :   dengbin

import threading
from playwright.sync_api import sync_playwright
import random

count = 0

def task():
    global count
    count = count+1
    print(f'count:{count}')
    try:
        with sync_playwright() as p:
            iphone_name = p.devices['iPhone 11']
            # browser = p.chromium.launch(headless=True)
            browserType = random.choice([p.chromium, p.webkit])
            # browserType = random.choice([p.webkit])
            browser = browserType.launch(
                headless=True)
            context = browser.new_context(
                **iphone_name,
                locale='en-US',
                permissions=['geolocation']
            )
            page = context.new_page()

            page.goto('https://www.bing.com/')
            context.close()
            browser.close()
    except Exception as e:
        print('===============except Exception as e:==============')
        print(e)

class ThreadGroup:
    def __init__(self, func, args, thread_num=8):
        self.threads = []
        for i in range(thread_num):
            t = threading.Thread(target=func, args=args)
            self.threads.append(t)

    def start_all(self):
        for t in self.threads:
            t.start()
        print(f'start thread num:{len(self.threads)}')
        return self.threads

def run(task_name: str, target: str):
    for _ in range(10000):
        task()

if __name__ == '__main__':
    task_name = 'jdjr'

    threads = []

    zylk = ThreadGroup(run, (task_name, 'zylk'), 10)
    threads.extend(zylk.start_all())

    koo = ThreadGroup(run, (task_name, 'koo'), 10)
    threads.extend(koo.start_all())

    yxd = ThreadGroup(run, (task_name, 'yxd'), 10)
    threads.extend(yxd.start_all())

    jsd = ThreadGroup(run, (task_name, 'jsd'), 10)
    threads.extend(jsd.start_all())

    for t in threads:
        t.join()
    print("====finished====")

How can i solve this issue.

mxschmitt commented 3 years ago

This error message is probably because your system is overloaded. See here for more information. I would recommend instead of launching task 1000 times which will internally will start the driver again and again all the time to only create a new context each time, they are also isolated. Also 10 4 threads is probably too much for your system and it runs out of resources or file handles. (50MB driver + 300-400MB for chromium) 40 = at least 18GB of memory and your CPU is then also on quite a high load.

dengbin9009 commented 3 years ago

@mxschmitt

Also 10 4 threads is probably too much for your system and it runs out of resources or file handles. (50MB driver + 300-400MB for chromium) 40 = at least 18GB of memory and your CPU is then also on quite a high load.

I have tried to create only 4 * 1 threads, the error also arises.

I would recommend instead of launching task 1000 times which will internally will start the driver again and again all the time to only create a new context each time, they are also isolated.

Every time the task ends, I will close the corresponding launch. Do I need to build only one browser and create a new context for every task? or build only one browser&context and create a new page for every task?

mxschmitt commented 3 years ago

Having a single sync_playwright and browser per thread. Then inside of the thread you should create each time a new context, this should also speed up your execution and reduce the memory/CPU overhead.

dengbin9009 commented 3 years ago

@mxschmitt Thx, I try it, and then I will reply to the result!

dengbin9009 commented 3 years ago

@mxschmitt en... I originally added proxy to launch, and everything is normal. Now I add proxy to the context, but the following error appears.

Browser needs to be launched with the global proxy. If all contexts override the proxy, global proxy will be never used and can be any string, for example "launch({ proxy: { server: 'per-context' } })"

proxies = {"server": xxxxxxx, "bypass": "*","username": "xxxxxxx", "password": "xxxxxx"}
browser = browserType.launch(
    headless=True,
    proxy=proxies
)
context = browser.new_context(
    locale='en-US',
    proxy=proxies
)

But I saw in source code that it can be used in this way:

def new_context(
    self,
    *,
    viewport: ViewportSize = None,
    no_viewport: bool = None,
    ignore_https_errors: bool = None,
    ...
    default_browser_type: str = None,
    proxy: ProxySettings = None,
    ....
) -> "BrowserContext":
mxschmitt commented 3 years ago

If you want to use the proxy on the context level, when you want to have e.g. different proxy servers on each context, then you need to set an arbitrary value e.g. per-context on the server proxy object. Its not totally clear, maybe we should remove it.

dengbin9009 commented 3 years ago

So what do I need to do to fulfill my needs: Use different agents to visit a website every time, more than 3000 times.

Can you provide an demo? Many thx!

mxschmitt commented 3 years ago

Just pass in browsertype.launch any arbitrary proxy, it won't get used when you always specify one at context level too. e.g.

chromium.launch(proxy={"server": "foobar"})

that should then work.

mxschmitt commented 3 years ago

Closing for now since it seems answered. I improved the error message with the proxy in an upstream PR https://github.com/microsoft/playwright/pull/6350