Git Product home page Git Product logo

Comments (5)

andreubotella avatar andreubotella commented on May 28, 2024

Python 3.12 (released on October, and already included as the default Python version on some Linux distros) removes ssl.wrap_socket(). And when you try running wptserve with Python 3.12, the errors you get are:

Failed to start HTTP server on port 8443; is something already using that port?
Please ensure all the necessary WPT subdomains are mapped to a loopback device in /etc/hosts.
See https://web-platform-tests.org/running-tests/from-local-system.html#system-setup for instructions.
Failed to start HTTP server on port 8444; is something already using that port?
Please ensure all the necessary WPT subdomains are mapped to a loopback device in /etc/hosts.
See https://web-platform-tests.org/running-tests/from-local-system.html#system-setup for instructions.
Failed to start HTTP server on port 8445; is something already using that port?
Please ensure all the necessary WPT subdomains are mapped to a loopback device in /etc/hosts.
See https://web-platform-tests.org/running-tests/from-local-system.html#system-setup for instructions.
Please ensure all the necessary WPT subdomains are mapped to a loopback device in /etc/hosts.
See https://web-platform-tests.org/running-tests/from-local-system.html#system-setup for instructions.
Failed to start HTTP server on port 8446; is something already using that port?
Please ensure all the necessary WPT subdomains are mapped to a loopback device in /etc/hosts.
See https://web-platform-tests.org/running-tests/from-local-system.html#system-setup for instructions.

which makes it seem like an issue with your system configuration, rather than anything wrong with wptserve.

Chromium seems to work around this by shipping a copy of Python 3.11 as part of their development tooling, and using that instead of the system-provided version. I'm not sure how the other major browsers deal with this; I ran into it when trying something on Servo.

from wpt.

gsnedders avatar gsnedders commented on May 28, 2024

Chromium seems to work around this by shipping a copy of Python 3.11 as part of their development tooling, and using that instead of the system-provided version. I'm not sure how the other major browsers deal with this; I ran into it when trying something on Servo.

For WebKit depends on the port; for the Apple ports we mostly assume (and only really support/defend) that people are using the Xcode-packaged Python, which for Xcode 15 is Python 3.9.

from wpt.

gsnedders avatar gsnedders commented on May 28, 2024

The wptserve side of this seemingly got fixed, completely coincidentally, in #44447.

@andreubotella I presume the WebSockets server fails to start and also shows up in the logs?

from wpt.

andreubotella avatar andreubotella commented on May 28, 2024

The wptserve side of this seemingly got fixed, completely coincidentally, in #44447.

@andreubotella I presume the WebSockets server fails to start and also shows up in the logs?

Oh, I didn't notice that! I was testing this with Servo's wpt submodule and with a local branch that I hadn't updated recently.

Indeed, in master the only failure is for wss:

[2024-02-12 08:50:55,054 wss on port 53353] INFO - Create socket on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 53353))
[2024-02-12 08:50:55,054 wss on port 53353] CRITICAL - Please ensure all the necessary WPT subdomains are mapped to a loopback device in /etc/hosts.
See https://web-platform-tests.org/running-tests/from-local-system.html#system-setup for instructions.

from wpt.

gsnedders avatar gsnedders commented on May 28, 2024

Oh, I didn't notice that!

I mean I only noticed because my PR (#44428, which added tests which trigger this DeprecationWarning) now has a conflict!

from wpt.

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.