Code Monkey home page Code Monkey logo

Comments (6)

CDBridger avatar CDBridger commented on May 14, 2024

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.

miyakogi avatar miyakogi commented on May 14, 2024

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.

HuberTRoy avatar HuberTRoy commented on May 14, 2024

@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.

miyakogi avatar miyakogi commented on May 14, 2024

Great thanks for fixing problem!
I fixed like that both on dev and on feat/port_by_python branches.

from pyppeteer.

CDBridger avatar CDBridger commented on May 14, 2024

Appears to have worked for me too!

from pyppeteer.

miyakogi avatar miyakogi commented on May 14, 2024

feat/port_by_python branch is now merged to dev branch and deleted.
Thank you.

from pyppeteer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.