Title: It is not possible to compile RustPython (0.5.0 and current main) with feature `ssl-vendor` · Issue #7893 · RustPython/RustPython · GitHub
Open Graph Title: It is not possible to compile RustPython (0.5.0 and current main) with feature `ssl-vendor` · Issue #7893 · RustPython/RustPython
X Title: It is not possible to compile RustPython (0.5.0 and current main) with feature `ssl-vendor` · Issue #7893 · RustPython/RustPython
Description: Summary # cargo clean && cargo build --release --no-default-features --features threading,stdlib,stdio,importlib,host_env,freeze-stdlib,sqlite,ssl-vendor Removed 3814 files, 1.1GiB total Downloaded openssl v0.10.76 Downloaded openssl-sys...
Open Graph Description: Summary # cargo clean && cargo build --release --no-default-features --features threading,stdlib,stdio,importlib,host_env,freeze-stdlib,sqlite,ssl-vendor Removed 3814 files, 1.1GiB total Downloaded...
X Description: Summary # cargo clean && cargo build --release --no-default-features --features threading,stdlib,stdio,importlib,host_env,freeze-stdlib,sqlite,ssl-vendor Removed 3814 files, 1.1GiB total Do...
Opengraph URL: https://github.com/RustPython/RustPython/issues/7893
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"It is not possible to compile RustPython (0.5.0 and current main) with feature `ssl-vendor`","articleBody":"## Summary\n\n```text\n# cargo clean \u0026\u0026 cargo build --release --no-default-features --features threading,stdlib,stdio,importlib,host_env,freeze-stdlib,sqlite,ssl-vendor\n Removed 3814 files, 1.1GiB total\n Downloaded openssl v0.10.76\n Downloaded openssl-sys v0.9.112\n Downloaded 2 crates (355.0KiB) in 0.54s\n Compiling proc-macro2 v1.0.106\n Compiling unicode-ident v1.0.22\n Compiling quote v1.0.45\n...\n Compiling dirs-next v2.0.0\n Compiling lexopt v0.3.2\n Compiling env_logger v0.11.10\n Compiling liblzma v0.4.6\nerror[E0425]: cannot find type `LazyLock` in this scope\n --\u003e crates/stdlib/src/openssl.rs:435:24\n |\n435 | static CERT_PATHS: LazyLock\u003c(PathBuf, PathBuf)\u003e = LazyLock::new(|| {\n | ^^^^^^^^ not found in this scope\n |\nhelp: consider importing one of these structs\n |\n 53 + use crate::openssl::LazyLock;\n |\n 53 + use std::sync::LazyLock;\n |\n\nerror[E0433]: cannot find type `LazyLock` in this scope\n --\u003e crates/stdlib/src/openssl.rs:435:55\n |\n435 | static CERT_PATHS: LazyLock\u003c(PathBuf, PathBuf)\u003e = LazyLock::new(|| {\n | ^^^^^^^^ use of undeclared type `LazyLock`\n |\nhelp: consider importing one of these structs\n |\n 53 + use crate::openssl::LazyLock;\n |\n 53 + use std::sync::LazyLock;\n |\n\nerror[E0425]: cannot find type `LazyLock` in this scope\n --\u003e crates/stdlib/src/openssl.rs:473:28\n |\n473 | static CERT_ENV_NAMES: LazyLock\u003c(String, String)\u003e = LazyLock::new(|| {\n | ^^^^^^^^ not found in this scope\n |\nhelp: consider importing one of these structs\n |\n 53 + use crate::openssl::LazyLock;\n |\n 53 + use std::sync::LazyLock;\n |\n\nerror[E0433]: cannot find type `LazyLock` in this scope\n --\u003e crates/stdlib/src/openssl.rs:473:57\n |\n473 | static CERT_ENV_NAMES: LazyLock\u003c(String, String)\u003e = LazyLock::new(|| {\n | ^^^^^^^^ use of undeclared type `LazyLock`\n |\nhelp: consider importing one of these structs\n |\n 53 + use crate::openssl::LazyLock;\n |\n 53 + use std::sync::LazyLock;\n |\n\nerror[E0599]: no method named `as_str` found for struct `PyRef\u003cPyStr\u003e` in the current scope\n --\u003e crates/stdlib/src/openssl.rs:1049:38\n |\n1049 | let ciphers = cipherlist.as_str();\n | ^^^^^^\n |\nhelp: there is a method `as_pystr` with a similar name, but with different arguments\n --\u003e crates/vm/src/builtins/str.rs:256:5\n |\n 256 | fn as_pystr(self, ctx: \u0026Context) -\u003e \u0026'a Py\u003cPyStr\u003e;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nerror[E0599]: no method named `as_str` found for struct `PyRef\u003cPyStr\u003e` in the current scope\n --\u003e crates/stdlib/src/openssl.rs:1105:26\n |\n1105 | if s.as_str().contains('\\0') {\n | ^^^^^^\n |\nhelp: there is a method `as_pystr` with a similar name, but with different arguments\n --\u003e crates/vm/src/builtins/str.rs:256:5\n |\n 256 | fn as_pystr(self, ctx: \u0026Context) -\u003e \u0026'a Py\u003cPyStr\u003e;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nerror[E0599]: no method named `as_str` found for struct `PyRef\u003cPyStr\u003e` in the current scope\n --\u003e crates/stdlib/src/openssl.rs:1462:64\n |\n1462 | *self.psk_identity_hint.lock() = Some(hint.as_str().to_owned());\n | ^^^^^^\n |\nhelp: there is a method `as_pystr` with a similar name, but with different arguments\n --\u003e crates/vm/src/builtins/str.rs:256:5\n |\n 256 | fn as_pystr(self, ctx: \u0026Context) -\u003e \u0026'a Py\u003cPyStr\u003e;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nerror[E0599]: no method named `as_str` found for struct `PyRef\u003cPyStr\u003e` in the current scope\n --\u003e crates/stdlib/src/openssl.rs:1490:31\n |\n1490 | if !s.as_str().is_ascii() {\n | ^^^^^^\n |\nhelp: there is a method `as_pystr` with a similar name, but with different arguments\n --\u003e crates/vm/src/builtins/str.rs:256:5\n |\n 256 | fn as_pystr(self, ctx: \u0026Context) -\u003e \u0026'a Py\u003cPyStr\u003e;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nerror[E0599]: no method named `as_str` found for reference `\u0026Py\u003cPyStr\u003e` in the current scope\n --\u003e crates/stdlib/src/openssl.rs:1980:22\n |\n1980 | Ok(s.as_str().as_bytes().to_vec())\n | ^^^^^^\n |\nhelp: there is a method `as_pystr` with a similar name, but with different arguments\n --\u003e crates/vm/src/builtins/str.rs:256:5\n |\n 256 | fn as_pystr(self, ctx: \u0026Context) -\u003e \u0026'a Py\u003cPyStr\u003e;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nerror[E0599]: no method named `as_str` found for reference `\u0026PyRef\u003cPyStr\u003e` in the current scope\n --\u003e crates/stdlib/src/openssl.rs:2036:45\n |\n2036 | let hostname_str = hostname.as_str();\n | ^^^^^^\n |\nhelp: there is a method `as_pystr` with a similar name, but with different arguments\n --\u003e crates/vm/src/builtins/str.rs:256:5\n |\n 256 | fn as_pystr(self, ctx: \u0026Context) -\u003e \u0026'a Py\u003cPyStr\u003e;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nerror[E0599]: no method named `as_str` found for reference `\u0026PyRef\u003cPyStr\u003e` in the current scope\n --\u003e crates/stdlib/src/openssl.rs:2755:75\n |\n2755 | let cb_type_str = cb_type.as_ref().map_or(\"tls-unique\", |s| s.as_str());\n | ^^^^^^\n |\nhelp: there is a method `as_pystr` with a similar name, but with different arguments\n --\u003e crates/vm/src/builtins/str.rs:256:5\n |\n 256 | fn as_pystr(self, ctx: \u0026Context) -\u003e \u0026'a Py\u003cPyStr\u003e;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nSome errors have detailed explanations: E0425, E0433, E0599.\nFor more information about an error, try `rustc --explain E0425`.\nerror: could not compile `rustpython-stdlib` (lib) due to 11 previous errors\n```\n\nNo such problem when compiling with `ssl-rustls` instead of `ssl-vendor`.\n\nThe last commit where `ssl-vendor` compiles is c06cf56c60db1ddf34e4c2037edd6153fb21e7e1. Compilation is broken since at least ccd3d4f964e7c9139b99c7d1154e5eb6e764d8cc.\n\n## Expected\n\nSuccessful compilation.\n\n## Actual\n\nCompilation errors.\n\n## Python Documentation\n\nN/A","author":{"url":"https://github.com/im-0","@type":"Person","name":"im-0"},"datePublished":"2026-05-17T07:54:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/7893/RustPython/issues/7893"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f7fa80ac-720f-5da3-e6b4-713a97922e3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9FA:202DC5:8D1C0F:BB6150:6A6007A2 |
| html-safe-nonce | 3650ca09c2a8600ce812306b39a7d542be661e106a85856b639ff9e5e4494ccc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUZBOjIwMkRDNTo4RDFDMEY6QkI2MTUwOjZBNjAwN0EyIiwidmlzaXRvcl9pZCI6Ijg5MTY2MjM1Mjg3Mzg5NDkwMjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7ffcbafe31ed1a93b83f51be6da44bc7658f2a01c3a19d680d0f8bee0229ea5e |
| hovercard-subject-tag | issue:4462737258 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/7893/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5f5574b50a795a1dd8170c45234dd815b6a7db5e677e2794e02559fc6395554/RustPython/RustPython/issues/7893 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5f5574b50a795a1dd8170c45234dd815b6a7db5e677e2794e02559fc6395554/RustPython/RustPython/issues/7893 |
| og:image:alt | Summary # cargo clean && cargo build --release --no-default-features --features threading,stdlib,stdio,importlib,host_env,freeze-stdlib,sqlite,ssl-vendor Removed 3814 files, 1.1GiB total Downloaded... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | im-0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5789899e92b20db289de946d86eb20bf5c9626276695d68f58a8c47cdda699b7 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6ddc048ddf80664b9b33547b619db10313c482f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width