-
Notifications
You must be signed in to change notification settings - Fork 36
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
Could not load gtools_macosx_v3.plugin, error 9999 #87
Comments
@austinsmoss I am kind of aware since someone commented they still had the problem but unfortunately I'm not 100% what to do about it. I should at least make a note of it somewhere, though, so I'll leave this issue open this time. Thankfully compiling on OSX is not too bad; I believe this comment compiles and clarifies the instructions I gave throughout the thread. I repeat here for convenience:
Anyway, the issue is that there was some change either in OSX or with the Apple processors that broke the plugin and since I don't have a mac, I can't debug the issue. I thought compiling with github would help but apparently it's still broken on some systems. I suppose even if I did have a Mac, I don't really know whether my fix would break comparability with older models or OSX versions. There's a similar issue on some Windows servers, if I recall, that is still open (#60) and I don't have Windows hardware, let alone a Windows server. |
@austinsmoss Can you share your OS version? |
Monterey v 12.5 |
@austinsmoss If you try to use the original plugin (the one that failed), after you have done so, do you see under " System Preferences > Security & Privacy > General" a note that macOS has blocked the plugin and to allow it to run anyway? |
I do not see this option. Would it be useful to Zoom so I can share my screen? If so, shoot me an email at austin.moss@colorado.edu |
@austinsmoss I am asking because a user of a different plugin recently had this issue after upgrading to the latest macOS, where the system gave the message that the execution of the plugin had been blocked. The solution is for me to sign it (costs $ apparently), for the user to unblock it (in Security and Privacy, hence my question), or for the user to compile (which is what this thread suggests, but I figured unblocking it might be easier). I do not own a mac, and it's been several years since I used one, so I am not sure if I'd be that helpful even with screen share. I am basing my question off a google search, actually Un_n. Just to be sure, though, you checked after trying to use the plugin file that caused gtools to fail, yes? |
Understood. Yes, I uninstalled the working version that I compiled and reinstalled the SSC version. I am not given that error message. |
To confirm, the instructions in the comment above worked perfectly for me on a M1 Macbook Pro, running macOS 12.5.1. I couldn't run I didn't see any warnings in System Preferences > Security about the plugin being blocked, so I suspect it is just that the Mac is looking for the plugin to be compiled as ARM, and doesn't know to run the Intel plugin with Rosetta emulation. |
I followed the instruction, but on the step 3 to install the package locally, it said "option from() incorrectly specified". Can I get more information about how to figure out the correct path to the folder? Thanks! |
@annorazhao Where did you clone the repository? |
|
@annorazhao I meant in your computer. You need to replace the path in |
That is the place I got confused, in my laptop, the packages are installed under |
It seems the SSC version fails on newer OSX systems and you have to compile the plugins yourself. In order to do this, you need to follow the steps here. If you have a
|
Oh, this time it works! Thanks so much! |
@austinsmoss I recently found this article on cross-compiling and it worked for another project. Can you re-install gtools from the |
@mcaceresb I re-installed from the develop branch and it is working. Great solution! |
Features - `noinit` option for `gcollapse, merge`, `gegen`, `gstats` (selected), `gregress` (and co.) to prevent targets from being emptied out with `replace`. Prints warning! - Adds various algorithms for projection (cg, squarem, it, map) to `gstats hdfe`, `gregress`, `givregress`, `gglm`. - Some ancillary options (`tolerance()`, `traceiter`, `standardize`) - Parallel execution of select functions can be enabled at compile time via `GTOOLSOMP` - Typed (direct/non-hashed) radix sort to API internals - Add `gstats hdfe` (alias `gstats residualize`) for residualizing variables (i.e. HDFE transform). Enhancements - `gtop` prints the number of levels in Other and Missing rows by default. (With missing it only does it if there's more than one type of missing value.) - `greshape` tries to detect repeated stubs and suggests this possibility to the user when a stub matches multiple variables. - Faster excludeself mean and sum w/o specified range in `gstats transform`. Bug fixes - Fixed incorrect results with excludeself without specified range in `gstats transform` (if there were missing values the input buffer was not being copied, but replaced). - `gstats transform [if] [in], replace nogreedy` not allowed (since nogreedy reads groups on the fly it can't initialize the entire variable). - Closes #87: For OSX, make now compiles x86_64 and arm64 separately then combines via `lipo`. - `geomean` (`gcollapse`, `gegen`, `gstats`) no longer exhibits inconsistent behavior with zeros and negative values. A negative value results in a missing value evne if there are zeros present (internally, if a zero is encountered the loop just checks for negative values and returns 0 if it finds none). - `gstats winsor`, exits with error if replace and if/in are passed (the way it's set up it'd be a bit of a hassle to allow init/noinit). - `gstats transform`, `gstats hdfe`, `gregress` (and co.) all now initialize their targets to be empty (missing values) with if in and replace. - `gstats transform` now exits with error if excludeself is passed without range, and now prints a warning if it's passed with stats other than range. - `gtop` no longer incorrectly replaces the display value if the numerical variable has a value label and no missing values. If there was a single value this would result in an error: `gtop` would think there was always at least one missing value to replace. - `gcollapse` no longer fails when trying to label the collapsed output if the source labels are blank (this can happen for example with data transformed to `.dta` from other formats or programs). - `gcollapse` no longer gives incorrect missing variables list when part of that list is called with varlist notation (e.g. `x* y` and `x*` exist but `y` does not). - `gunique` no longer ignores if/in with `gen` and `replace`
I am having the same issue described in issue #73 (same issue title) even though that report mentions that the issue should be fixed in the updated gtools version. The fix described in that thread by @florianpeters does work, but I wanted to bring it to your attention that the issue is still (again?) outstanding.
I am running Stata 17.0 on a 2021 Macbook Pro with M1 Pro chip.
The text was updated successfully, but these errors were encountered: