-
Notifications
You must be signed in to change notification settings - Fork 37
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
gtools error occurred while loading _gtools_internal.ado (could not load plugin) #60
Comments
Please give the output of
|
. . gcollapse hhsize [pw = perwt] end of do-file r(9998); |
Sorry, I meant the output of running
|
. which gtools . gtools |
Can you tell me your OS and Stata versions? |
Windows 8; Stata/MP 14.2 or Stata/SE 15.1 |
Are you on a server or just a regular Windows 8 machine? |
on a network |
All commands from gtools worked till two days ago, when the IT updated the windows. I talked to our IT specialists and they are trying to figure out as well |
(Not 100% what you mean by "network"). Anyway, I wonder if it is related to this bug. It's a bit of a different situation since that was back when I still put the hashing library in a DLL (and I thought it was fixed). Do you happen to have cygwin installed on your windows system? No worries if you don't. |
Server, then. |
Out IT people said they might try to scale the windows security updates they installed a couple of days age -- to see whether those are the cause. |
I do recall somebody else reporting that gtools stopped working after a Windows Server security update. All gtools commands use temporary files, but none require any special permissions to run. I am really not sure why a security update would break gtools. Maybe it's a versioning issue? (i.e. I compile using a set of libraries that get updated and that breaks gtools). I don't have access to Windows server, however, so it's a bit difficult to debug. When you say "none work" for the solutions in that thread, what did you try? I was going to try and compile a very basic plugin to see if whether the issue was gtools or Stata. |
I un-installed and reinstalled gtools. |
Can you download the zip file here and unzip to an empty directory, then run |
. do "C:\Users\ashi.PEW\Downloads\statatest\plugin\test.do" . clear all . program test1, plugin using(test1.plugin) |
Sorry, you need to run it from that directory.
|
. cd C:\Users\ashi.PEW\Downloads\statatest\plugin . do test . clear all . program test1, plugin using(test1.plugin) end of do-file end of do-file r(9998); . |
Ok, that is interesting, because that is just a plain "Hello World" basic plugin example. So I think the issue is not gtools per se, but rather however I am compiling plugins is getting blocked... Let me check if I can update my Windows 10/Cygwin versions and re-compile to see if that helps. Will get to this over the weekend. Sorry I can't be more help right now. |
Thank you so much! |
Try |
I tried gtools, upgrade(develop) and got this error message: . gtools, upgrade(develop) |
My bad
|
Hi, first of all thanks a lot for the package. I have a similar issue as described above. In particular, I get the "Could not load plugin" error when trying to run the gtools commands. I have the same issue when running your "hello world" test. I have tried to replace gtools_windows_v2.plugin and gtools_windows_v3.plugin with the versions you've uploaded above. Are there any more updated solutions than the ones found in this thread? |
What's your OS? |
Unfortunately I don't, I'm very sorry. My guess is that the version of windows I compile under (MinGW on regular Windows 10 but on a virtual machine) has some library that conflicts with Windows 10 Pro somehow. I would hope that if the plugin were to compile on a Windows 10 pro machine it might work, but I don't have win 10 pro to test out my theory. |
I had the same error message. Found out that gtools works fine if I use the 64bit Stata version (tested for STATA/SE 15.1, Windows 10 pro build 17763). |
Hi Mauricio--I'm getting a similar error, prospectively related to running it on Apple Silicon? I'm using Stata16.1 on MacOS
|
@stevecicala I can try to help you debug if you are willing to try to compile the plugin? I don't own a Mac (or Stata 16 for that matter), so I don't think I can figure it out w/o someone who has access to physical hardware. |
Sure, happy to try--how should I proceed? |
@stevecicala Great.
|
@mcaceresb , thanks after the
The output of
The build directory then has a copy of Stata returns the same error after restart. |
@stevecicala Sorry I think you need to run |
Success! Thanks a million, this is a fantastic tool. Here's the output from the make:
|
So I have the same issues as before, BUT this is an RDC server, and have no access to internet, with limited amount of things I can upload. I have tried Nothing to do. See help gtools or gtools, examples for usage. Version info: I tried some of the other stuff here, but don't know how to fix without downloading anything (no access to internet) |
@dstellotri What OS is the server? What Stata version? You can always try downloading the build folder, uploading from your local machine, and then installing from the manually downloaded folder. |
Windows (8 I believe), I cant access to actual version because of no-admin rights. Stata I can have access to 15 and 16. I did try that (downloading the build, and manually installing it, calling it from the proper ado folder). |
@dstellotri You might not have installed it correctly given that the version is 1.5.1 whereas the build in master is on I also don't have access to Windows 8 so I can't even try and build a custom version you can try out (though now that I think about it, if you do have a local windows machine you can try compiling it from source there, and try uploading your locally compiled version. I use an old virtual machine for compiling the plugin so if you have access to hardware with Windows installed that might give you a better chance.) |
Right, so I have 1.5.1 because that's what I have on my pc (which runs fine), and I needed to put the same version on the external-computer (the one with the issue), and I can only request a finite number of uploads to that external-pc (Which is why I don't want to ask to uploaded a new version of the same program). I can't install it from sources because that external-pc doesn't have access to internet. Presumably I did that for 1.51. I can try your second suggestion but that will eat one of my uploads, so I think I can try that once I have a bulk of other things to upload. It's a painful process because of the no-internet and limited uploads. Gracias por ayudar anyways! |
@dstellotri Ok, entiendo. Recomendaria que compiles el plugin en tu maquina local, que pruebes esa version localmente, y si funciona entonces que mandes esa version al server la proxima vez. Siento que no pueda ser de mucha ayuda ya que no tengo una maquina con Windows Un_n. Como vez de este issue no eres a unica persona que tiene este problema. Saludos! |
No te preocupes, el hecho que me respondas tan rapido cuando deberias estar descando dice mucho!
Una pregunta, para no equivocarme, cuando dices compile el plugin en mi maquina local, cual plugin?
From: Mauricio Caceres Bravo ***@***.***
Sent: Sunday, July 11, 2021 8:35 PM
To: mcaceresb/stata-gtools ***@***.***>
Cc: Tello Trillo, Daniel Sebastian (dst2c) ***@***.***>; Mention ***@***.***>
Subject: Re: [mcaceresb/stata-gtools] gtools error occurred while loading _gtools_internal.ado (could not load plugin) (#60)
@dstellotri<https://github.com/dstellotri> Ok, entiendo. Recomendaria que compiles el plugin en tu maquina local, que pruebes esa version localmente, y si funciona entonces que mandes esa version al server la proxima vez.
Siento que no pueda ser de mucha ayuda ya que no tengo una maquina con Windows Un_n. Como vez de este issue no eres a unica persona que tiene este problema. Saludos!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#60 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKUF3YS32PTJ32KC47QOHYDTXI2CNANCNFSM4HKVUAEA>.
|
|
Hi Mauricio, looks like an awesome tool. I run into the same issue as stevecicala above. I have an M1 Macbook Pro 2020 with MacOS BigSur v. 11.2.1, Stata 17 for Mac SE version and get the same command-line output after going through the exact procedure you explained to stevecicala. I copied the two gtools_macosx_v3.plugin and gtools_macosx_v2.plugin files into the path you suggested, but after restarting Stata and running any gtools command, I get r(111) erros and no other change to the data structure or output (before following your instructions to steve, I got the same error as him). Any suggestions? |
@EdSaiedi Just to double check, you should uninstall gtools (make sure that If that still doesn't work then I am sorry, really, but since I don't have access to OSX hardware (or Stata 17!) I would not know how to debug why the plugin is not loading. |
Mauricio, thanks a lot! After uninstalling gtools, running Appreciate the super-fast commands! Takes stata computing to another level! Look forward to the gregress commands passing beta 👍 ! |
@RajeshTharyan I got an e-mail notification about your issue. I think you need to download gtools to the server directly. Hope your issue was solved; unsure why your comment is not appearing in the thread. |
Hi, i am trying to install in Stata 15 gtools, to use binscatter2, i get this message (i have a mac computer) net install gtools, from(`github'/mcaceresb/stata-gtools/tree/master/build/) Any help how to solve this problem? Thanks |
@chuneeus Please run the entire code chunk in the installation instructions: local github "https://raw.githubusercontent.com"
net install gtools, from(`github'/mcaceresb/stata-gtools/master/build/) Based on the error message, the local |
Hello, I got the r(9999) error : I am on a govt computer and we just went through a laptop refresh so we are all now using Stata 18 on Windows 11 Enterprise. Prior to the refresh gtools worked fine, so I assume we changed some policy with the refresh. We cannot do the Is there a way to fix this without downloading any additional software? If not, then is there anything you think I can tell our IT people (who are generalists and will not know Stata)? |
@clukewatson You can download the files from the latest release and then install from a local folder (they should be in If that fails then my guess is that the plugin is incompatible with Windows 11 enterprise. Other people have reported an error with certain windows versions and it's exceedingly difficult for me to debug. One idea is that you could check other plugins I've written to see if the problem is specific to gtools or more general. What's the output of
If it's also a 9999 error then there's something about the way I compile plugins that's incompatible with your version of Windows. Sadness. |
Hello, I am sorry for late reply... honestly, I forgot that I left the comment after getting busy with other policy work, then went searching for an answer when I had the same issue coming back to work on reseach. What I most recently did:
Thank you for considering. |
@clukewatson I've another report also from a Windows 11 version with this problem: mcaceresb/stata-honestdid#24 There it's even more concerning because the person reported trying to recompile the plugin themselves and it says it still failed. This makes me think there's something in my code that's tripping up some Windows 11 versions but I don't know what it is. If I had a Windows 11 machine I'd be able to find it with some work but until then I'm not sure I can solve the problem. |
I have installed gtool for a while and the commands had worked well until 2 days ago, when our IT updated windows. The commands from gtool package no longer work. While running gcollapse, the program was interrupted with error message as:
(error occurred while loading _gtools_internal.ado)
r(9998);
I am not able to find out what r(9998) means.
I appreciate your help.
The text was updated successfully, but these errors were encountered: