Comments (6)
I too have the same problem! - Windows 10 x64
[18628:16220:0312/103221.488:ERROR:network_change_notifier_win.cc(157)] WSALookupServiceBegin failed with: 10108
[18628:5808:0312/103221.530:ERROR:tcp_socket_win.cc(272)] CreatePlatformSocket() returned an error: The requested service provider could not be loaded or initialized. (0x277A)
[18628:5808:0312/103221.530:ERROR:tcp_socket_win.cc(272)] CreatePlatformSocket() returned an error: The requested service provider could not be loaded or initialized. (0x277A)
[18628:5808:0312/103221.530:ERROR:devtools_http_handler.cc(249)] Cannot start http server for devtools. Stop devtools.
[18628:16220:0312/103224.064:ERROR:gpu_process_transport_factory.cc(1019)] Lost UI shared context.
After last line above it then freezes in the next loop at line 129 in launcher.py ->
msg = self.proc.stdout.readline().decode()
EDIT:
[0312/113148.186:ERROR:network_change_notifier_win.cc(157)] WSALookupServiceBegin failed with: 10108
[0312/113148.188:ERROR:gpu_process_transport_factory.cc(1019)] Lost UI shared context.
[0312/113148.190:ERROR:tcp_socket_win.cc(272)] CreatePlatformSocket() returned an error: The requested service provider could not be loaded or initialized. (0x277A)
[0312/113148.190:WARNING:net_errors_win.cc(119)] Unknown error 10106 mapped to net::ERR_FAILED
[0312/113148.190:ERROR:tcp_socket_win.cc(272)] CreatePlatformSocket() returned an error: The requested service provider could not be loaded or initialized. (0x277A)
[0312/113148.190:WARNING:net_errors_win.cc(119)] Unknown error 10106 mapped to net::ERR_FAILED
[0312/113148.190:ERROR:devtools_http_handler.cc(249)] Cannot start http server for devtools. Stop devtools.
Is what I get if I run in headless mode (first code block is in non headless
from pyppeteer.
Could you try feat/port_by_python
branch?
In that branch, pyppeteer uses web IF of chrome to find WS endpoint, instead of stdout.
Encoding problem should be fixed.
from pyppeteer.
@miyakogi
Thank your response.
I have tried using feat/port_by_python
branch. Encoding problem had been fixed and it has unable to use pyppeteer
yet. And then I tried to solve the problem. It seems because the argument env
in subprocess.Popen
.
The explains in documentation is
If env is not None, it must be a mapping that defines the environment variables for the new process; these are used instead of the default behavior of inheriting the current process environment.
Note
If specified, env must provide any variables required for the program to execute. On Windows, in order to run a side-by-side assembly the specified env must include a valid SystemRoot.
In the source of launcher.py
If do not pass env
argument, it will be setting {}
.
env = self.options.get('env', {})
so, I set it to None
and it worked.
env = self.options.get('env', None)
@CDBridger
It worked for me. You could try this.
from pyppeteer.
Great thanks for fixing problem!
I fixed like that both on dev
and on feat/port_by_python
branches.
from pyppeteer.
Appears to have worked for me too!
from pyppeteer.
feat/port_by_python
branch is now merged to dev
branch and deleted.
Thank you.
from pyppeteer.
Related Issues (20)
- how to clear the input area?
- Page.cookies() returns List, not Dict HOT 1
- TypeError: 'coroutine' object is not callable, why? HOT 1
- Support ARM OS HOT 1
- Navigation Timeout Exceeded: 30000 ms exceeded HOT 7
- Error browser closes unexpectedly HOT 1
- Can I get innerHTML from the Element Handle Class? HOT 1
- Response.buffer() return str rather than [bytes] HOT 1
- Pyppeteer on python 3.6.8 HOT 1
- UTF-8 characters are coming as garbage HOT 1
- KeyError when send HOT 1
- SyntaxError: invalid escape sequence HOT 2
- Is pyppeteer still maintained? HOT 4
- --enable-automation HOT 1
- can we use the cookies in python request from puppeteer cookies? HOT 1
- Page goto returns None HOT 2
- Execution context was destroyed, most likely because of a navigation. HOT 2
- Is there a forum or something for specific question related to pyppeteer? HOT 1
- Screenshot is not working in headless HOT 1
- >> REPOSITORY ABANDONED >> use pyppeteer2 instead HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyppeteer.