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
Python 2.7 is removed from macOS in version 12.3+; Causes compiling to Fail #558
Comments
Upon further digging, the compiler finds and uses Python 3 I installed until building the package where the old alias for Python 2.7 at usr/bin/python causes an ENOENT error. macOS prevents write access for that folder, so Apple will have to remove the alias in an update. This is issue is likely to be self-resolving assuming Apple does delete said alias. |
@dhobi, do you think merging #428, #434, #544, and/or #545 would resolve this issue? This issue can be resolved with editing ./releash.sh which is part of npm, one of the dependencies of razer-macos. It finds and uses the newer Python for most of the script already. Apple still hasn't removed the leftover aliases even with the new beta released on Tuesday. I'm writing a bug report to Apple to get them to fix that. |
I can't (directly) see where python is used in our build process. Do you have a detailed error log / message which pinpoints to a missing Python 2.7 version? |
Here's the message saying it found Python 3.9.9 that I have installed and the error message:
Here's the unabridged log:
|
Thanks for the log. Seems like electron-builder -> dmg-builder is failing here. I guess all we have to do is to bump our electron-builder version to the latest version which will support both, python2 and python3. Can you try this locally? I'm currently macless... |
I updated the version of electron-builder in package.json, but I'm getting a new error now:
Does something need to be updated in yarn.lock or another file? Do other electron dependencies need to be updated? There's a lot of deprecation warnings (see the prior long) and electron v11 has been unsupported for a while now. |
Hmm from my (very little) understanding what's going on I'd say that electron/universal is not happy when trying to merge (reconcile) the two arm64 and x64 binaries into one universal dmg. Could you update the "@electron/universal" dependency to the latest version and try again? (To be sure you really have all the given deps installed in package.json you could delete the package.lock and the node_modules folder and install them again) |
I updated I also updated |
I just remember doing a blanket update for everything in the past and that broke the React frontend, so we do have to be selective. I will have a look into it also. |
I think I figured it out:
Items 1-3 allowed me to package the x64 & arm64 apps, but it still failed to build and notarize the universal app due to the error in Item 4. |
@dhobi, electron-builder v23.0.0 is now a full release, which fixed the error
@1kc, I tried updating every dependency and nothing broke the react frontend. However, updating Any ideas? My thought is that this has something to do with electron-webpack after days of trial and error. The repo recommends moving to vite-electron-builder as a replacement. On the upside, it includes electron-builder and allows for the latest versions of electron. |
Adds support for both bluetooth and receiver connections Accompanying PR: 1kc/librazermacos#29 Due 1kc#558, I'm currently unable to provide a test build; however, anyone who wishes to test can build it.
Apple states: "Python 2.7 was removed from macOS in this update. Developers should use Python 3 or an alternative language instead. (39795874)" Source
I have a newer version of python installed, but the
./releash.sh
does not use it.The manual build hasn't worked in a while due to an error with IOHook, so I have no way of compiling the app.
The text was updated successfully, but these errors were encountered: