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

Ninja IDE won't install on PowerBook G4 1.67GHz #1267

Open
smnbldwn opened this issue Feb 5, 2025 · 8 comments
Open

Ninja IDE won't install on PowerBook G4 1.67GHz #1267

smnbldwn opened this issue Feb 5, 2025 · 8 comments

Comments

@smnbldwn
Copy link

smnbldwn commented Feb 5, 2025

Attempt to install ninja IDE fails with the dialogue below.

$ brew install ninja-ide
ninja-ide: Unsatisfied dependency: MacFSEvents
Tigerbrew does not provide Python dependencies; install with:
  pip install MacFSEvents
Error: An unsatisfied requirement failed this build.
$ pip3 install MacFSEvents
Requirement already satisfied: MacFSEvents in /usr/local/lib/python3.10/site-packages (0.8.4)
s$ brew install ninja-ide
ninja-ide: Unsatisfied dependency: MacFSEvents
Tigerbrew does not provide Python dependencies; install with:
  pip install MacFSEvents
Error: An unsatisfied requirement failed this build.
@mistydemeo
Copy link
Owner

Hm, looks like ninja-ide might still be trying to use Python 2. Should probably get moved over.

@sevan
Copy link
Collaborator

sevan commented Feb 5, 2025

Hm, looks like ninja-ide might still be trying to use Python 2. Should probably get moved over.

Need to guard it off to needing Leopard and newer too (MacFSEvents binds to API introduced in 10.5).

iBook is currently working away building QT4 on Leopard. 😀

@smnbldwn are you trying this on Tiger?

@smnbldwn
Copy link
Author

smnbldwn commented Feb 5, 2025

I am running Leopard 10.5.8

@sevan
Copy link
Collaborator

sevan commented Feb 5, 2025

I am running Leopard 10.5.8

As Misty highlighted, looks like you've installed the module with pip for Python 3, but the build is trying to use Python 2.

If you make the following change to /usr/local/Library/Formula/ninja-ide.rb, does the build progress for you?

--- a/Library/Formula/ninja-ide.rb
+++ b/Library/Formula/ninja-ide.rb
@@ -4,8 +4,8 @@ class NinjaIde < Formula
   url "https://github.com/ninja-ide/ninja-ide/archive/v2.3.tar.gz"
   sha256 "413988093531f6d1c251a84e7e01450009da75641e20817271cf387bd1fd8d43"
 
-  depends_on :python
-  depends_on "MacFSEvents" => [:python, "fsevents"]
+  depends_on :python3
+  depends_on "MacFSEvents" => [:python3, "fsevents"]
   depends_on "pyqt"
 
   def install

@smnbldwn
Copy link
Author

smnbldwn commented Feb 6, 2025

Thank you, the build now progresses further until it stops with these messages...

Last 15 lines from /Users/anon/Library/Logs/Homebrew/pyqt/02.python:
The Designer plugin will be installed in
/usr/local/Cellar/qt/4.8.7/plugins/designer.
The PyQt4 .sip files will be installed in
/usr/local/Cellar/pyqt/4.11.3_1/share/sip.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/usr/local/Cellar/pyqt/4.11.3_1/bin.
The interpreter used by pyuic4 is pythonw2.5.
Traceback (most recent call last):
  File "configure-ng.py", line 2741, in <module>
    main(sys.argv)
  File "configure-ng.py", line 2732, in main
    opts.split if opts.concat else 0, opts.tracing)
  File "configure-ng.py", line 1313, in generate_makefiles
    for f in glob.glob(os.path.join(sp_qpy_dir, '*.cpp'))]
AttributeError: 'module' object has no attribute 'relpath'

Looks like PyQt4 doesn't want to install...

@sevan
Copy link
Collaborator

sevan commented Feb 6, 2025

I've been tinkering with this today, but haven't got it working yet.
After the lengthy QT4 build on Leopard, I upgraded the formula for sip & PyQt4 to their latest versions and, set them to just use python3, this got ninja-ide to build but it still wouldn't run.
Once I have it running, I need to tidy up my changes to sip, pyqt, ninja-ide so they land here.
Give me a few days, I'll try over the weekend if I don't get it working before.

@smnbldwn
Copy link
Author

Awesome! Thanks for trying...

@sevan
Copy link
Collaborator

sevan commented Feb 14, 2025

Still no luck yet. I've raised draft pull requests for updates to pyqt & sip but still no joy. Everything builds and installs, but pyqt complains about sip. See pull requests #1280 & #1281 if you want to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants