this post was submitted on 04 Oct 2024
7 points (100.0% liked)

Python

7345 readers
51 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
 

I am trying to follow this tutorial (Announcing py2wasm: A Python to Wasm compiler · Blog · Wasmer) and run py2wasm but I am getting this weird problem.

First is that I believe py2wasm might be just an executable like other pip packages I install, or a bat file. (I am fairly new to python and I just want to convert a python code to wasm). But when I head over to C:\Users\USER\AppData\Local\Programs\Python\Python312\Scripts where the pip packages are located, I can't seem to find any file related to py2wasm.

Running dir C:\Users\USER\AppData\Local\Programs\Python\Python312\Lib\site-packages\py2wasm* to check any related files about the py2wasm folder only leads to this

Directory: C:\Users\USER\AppData\Local\Programs\Python\Python312\Lib\site-packages

Mode LastWriteTime Length Name

***

d----- 04-10-2024 19:54 py2wasm-2.6.2.dist-info

Also, before you could ask yeah I could run other pip packages such as yt-dlp.

you are viewing a single comment's thread
view the rest of the comments
[–] SteveTech@programming.dev 2 points 10 months ago (2 children)

After reading their blog, it seems like it doesn't support Python 3.12, and it looks like you're using Python 3.12.

[–] gukkey@programming.dev 1 points 10 months ago (1 children)

They are using Python 3.11 which is just a version below my current python version 3.12.

[–] SteveTech@programming.dev 1 points 10 months ago* (last edited 10 months ago)

For projects like this where they're hooking into the compiled python binaries, you really want to match the version.

Like 3.11 and 3.12 were pretty much released a year apart, a lot can change implementation wise.