Skip to content
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

Install doesn't work when running from outside repo dir #579

Closed
thewh1teagle opened this issue Nov 25, 2023 · 7 comments
Closed

Install doesn't work when running from outside repo dir #579

thewh1teagle opened this issue Nov 25, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@thewh1teagle
Copy link

When running
python3 pyobjc/install.py it gives error which it doesn't find files in development folder
Only if running it from pyobjc folder it finds
On MacOS 13.5

@thewh1teagle thewh1teagle added the bug Something isn't working label Nov 25, 2023
@ronaldoussoren
Copy link
Owner

Note that the best way to install PyObjC is through pip, that is pip install pyobjc.

@thewh1teagle
Copy link
Author

Of course I tried first with pip, it didn't worked.
Also the install.py took long time and eventually failed.

@ronaldoussoren
Copy link
Owner

What failure do you get when installing, both using install.py and using pip?

What python version do you use and how was it installed? Do you use an Intel CPU or Apple Silicon (M1, ...)?

@thewh1teagle
Copy link
Author

@ronaldoussoren
It was on apple silicon M1 with OSX 13.5.
Unfortunately I don't have option to check it again it was on a MacOS server I had to rent to test some MacOS application I made.

@ronaldoussoren
Copy link
Owner

I cannot easily test 13.5 on M1, but did test on 13.6 on Intel.

pip install pyobjc worked for me when using fresh virtual environments (python3.x -m venv ...) when using either python3.10 (installed from python.org) or /usr/bin/python3 (from Xcode 13.4).

I haven't tested building from source yet, that might be broken for the current release because of #572 (which is already fixed in the repository). My current plan is to do more build tests when preparing for the next release.

@thewh1teagle
Copy link
Author

It's shame that developers needs to struggle with Apple hardware

@ronaldoussoren
Copy link
Owner

It's shame that developers needs to struggle with Apple hardware

It's not that bad, I just haven't set up my M1 laptop for running VMs.

Testing M1 support on the latest stable release of macOS is generally fine, AFAIK the bindings for the Virtualisation framework are the only ones I cannot in an Intel VM. The CPU-specific bits of PyObjC are not dependent on specific versions of macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants