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

Python

6368 readers
16 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 1 year 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 1 month ago (1 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 1 month 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 1 month ago* (last edited 1 month 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.