letmaik / pyvirtualcam

🎥 Send frames to a virtual camera from Python
GNU General Public License v2.0
452 stars 49 forks source link

Wheels for macOS ARM64 #97

Closed rickwierenga closed 4 months ago

rickwierenga commented 1 year ago

Describe the bug

$ pip install pyvirtualcam
ERROR: Could not find a version that satisfies the requirement pyvirtualcam (from versions: none)
ERROR: No matching distribution found for pyvirtualcam

Related issue: https://github.com/letmaik/pyvirtualcam/issues/15.

Could this be because of M1?

letmaik commented 1 year ago

M1 supports both x86-64 (Intel) and ARM64. So if you use an x86-64 Python installation, then you can install pyvirtualcam via PyPI. I'll keep this issue open to track the publication of PyPI wheels for macOS ARM64. The main blocker currently is GitHub Actions which doesn't support ARM64 (wheels are produced and published within Actions).

Iapetus-11 commented 1 year ago

I would also like to use pyvirtualcam on M1 and am having the same issue. Is there any workaround for this?

Also, I found https://github.com/pypa/cibuildwheel which supports Apple silicon. Perhaps pyvirtualcam could switch to that for building wheels?

nineclicks commented 1 year ago

I would also like to use pyvirtualcam on M1 and am having the same issue. Is there any workaround for this?

Also, I found https://github.com/pypa/cibuildwheel which supports Apple silicon. Perhaps pyvirtualcam could switch to that for building wheels?

Use the build from source directions at the bottom of the readme. I have the grayscale animation running on an M1 with obs virtual camera, took only a few seconds to install.

cansik commented 1 year ago

Would it make sense to provide the source package as well on PyPi? Because the following works great on an M1:

pip install git+https://github.com/letmaik/pyvirtualcam
letmaik commented 1 year ago

@cansik I generally don't publish source packages anymore for any of my binary Python packages as those more often than not lead to failed builds with obscure error messages and more people complaining and I don't have the time to handle the support requests. I treat building from source as an advanced use case that shouldn't happen by accident (pip automatically falls back to source packages if there are no binary wheels for the target Python version and/or platform, which is unfortunate).

cansik commented 1 year ago

@letmaik Thanks for your explanation and I can understand that of course. I solved it now by including the following lines into the requirements of my project. On MacOS arm64, the library will be installed from source, otherwise from the prebuilt wheel.

git+https://github.com/letmaik/pyvirtualcam; platform_system == "Darwin" and platform.machine == "arm64"
pyvirtualcam; platform_system != "Darwin" or platform.machine != "arm64"
lucasmen9527 commented 12 months ago

Would it make sense to provide the source package as well on PyPi? Because the following works great on an M1:

pip install git+https://github.com/letmaik/pyvirtualcam

Thank you i use it successful

XinBow99 commented 6 months ago

Would it make sense to provide the source package as well on PyPi? Because the following works great on an M1:

pip install git+https://github.com/letmaik/pyvirtualcam

work for me.