New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to install on MacOS #155
Comments
@dmranck Yeah, the message in the stack trace is correct. What is your use case on Mac? |
@junaruga thanks for the quick response! I'm currently using the rpm command on a Mac to look at the headers in a rpm file. i.e.: rpm -qp <rpm_name> --qf '%{VENDOR}\n' I'm able to do it through a subprocess in python, but I'd rather do it in native python if possible. It looks like the rpm-python package would allow me to do this. |
@dmranck Thanks for sharing it. Could you share us your environment more?
Thanks! |
Great, thanks @junaruga. Mac OS X version: macOS High Sierra - 10.13.6 Also, I found this last week during my debugging and figured I can share it here: stepanstipl/homebrew-noop#2 I'll let you know if I get it installed anytime soon. Thanks again. :) |
My case is I would like to install dependencies including koji into the system directly rather than provision a virtual environment inside a VM and run tests just inside host. |
Hey there! 👋🏻 Different use case here: I generally develop RPM spec files on my macOS machine. The Eclipse IDE provides a decent editor for such files and supports an integration with rpmlint, VS Code provides something similar as well. Unfortunately, |
Hi @PyvesB ! |
I tried to get the brew rpm formula to install the python bindings, and ran into issues described at Homebrew/discussions#2693 , which don't look too difficult to solve. Getting rpm-py-installer to do its own build of rpm is going to involve similar steps, but if building directly from source it quite possibly avoids the problems encountered by using brew formula. |
As Packit requires rpm-py-installer transitively, we're also on the same boat as everyone else: one of our users is asking for this support to develop RPM packages on MacOS. |
I see. Thanks for sharing the info! |
We migrated the CI from Travis to GitHub Actions by #245 . Now the first step for this feature is to add MacOS case to GitHub Actions. |
@junaruga I am looking forward too see macos support enabled because the current situation is awful when trying to install it on macos as it fails with a long tracedump. Another issue is the library is using the heavily discourage setup.py, while the most modern model is supposed to use PEP-621 (pyproject.toml alone, yep even setup.cfg is considered old-school). The installation issue can be done declaratively using a trick like the one from https://github.com/ansible/ansible-lint/blob/main/setup.cfg#L66 where you add a dependency that does not exist on unsupported platform. That is very fast compared with the other approaches. Also the trove classifiers are wrong as they should include only |
Sorry for the inconvenience for the macOS case. I tried to reinstall macOS on my old Macbook Air, and after deleting the MacOS, I can't find how to reinstall macOS. I really needs someone's help. Now I am only using Linux on both my work and private.
I see. I am not following the latest situation.
Thanks for the info.
Thanks for the info. At least we need to add the I appreciate your PRs if you like. Thanks. |
@junaruga You should be able to enter internet recovery mode, how to access it is documented at https://www.idownloadblog.com/2016/02/25/how-to-start-up-your-mac-in-internet-recovery-mode/ - be patient as it might take time to boot from network. The fast reinstall method is via an USB stick with MacOS installer, but i bet you never bothered to create one. I always keep one because it allows me to upgrade macos much faster than downloading. Obviously that you need a working macos to create a bootable usb stick. |
That is really unfortunate because |
If you prepare the PR to support rpm-py-installer and sent it, then I would consider giving you the co-maintainer role. I feel pressure from your comment, and unfortunately, currently, my motivation for this project is close to zero. |
@ssbarnea perhaps you can use Below is the result on my local Fedora 37 environment as a note.
|
Could |
Any way this can be installed on a Mac?
I have the rpm command installed from "brew install rpm". I'd like the rpm python bindings installed as well. Any help would be appreciated!
When I attempt to install with pip, I receive the following in a stack trace:
raise InstallError('Supported platform is Linux only.')
The text was updated successfully, but these errors were encountered: