-
Notifications
You must be signed in to change notification settings - Fork 35
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 plugin: c:\ado\plus\g\gtools_windows.plugin #35
Comments
Can you run !dir c:\ado\plus\g\*gtools*
!dir c:\ado\plus\s\*spooky* And post the output? |
. !dir c:\ado\plus\g\*gtools*
. !dir c:\ado\plus\s\*spooky*
.
I get only "." as output. Did I run it right?
…________________________________
De: Mauricio Caceres Bravo <notifications@github.com>
Enviado: terça-feira, 6 de março de 2018 16:04
Para: mcaceresb/stata-gtools
Cc: dgcbritto; Author
Assunto: Re: [mcaceresb/stata-gtools] Could not load plugin: c:\ado\plus\g\gtools_windows.plugin (#35)
Can you run
!dir c:\ado\plus\g\*gtools*
!dir c:\ado\plus\s\*spooky*
And post the output?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#35 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AjZpoUae5cqMEUGXjHwnrXnSo-4lK3TZks5tbt2sgaJpZM4SfPnj>.
|
Perhaps; I suspected the issue is that the files are missing. Can you physically navigate to those directories using file explorer? If they are indeed blank, then gtools was not installed correctly. Run local github "https://raw.githubusercontent.com"
net install gtools, from(`github'/mcaceresb/stata-gtools/master/build/) And check again using file explorer. If this does not fix the problem then I assume it's a problem with permissions, since it's a server, and you'll have to install gtools in a different folder. Run the above first. If it's a permissions issue let me know and I can guide you through that install. |
I've run it but the problem remains. My user has admin privileges, I can enter all folders and modify files in C.
Do you think I should try installing in a different folder/path?
…________________________________
De: Mauricio Caceres Bravo <notifications@github.com>
Enviado: terça-feira, 6 de março de 2018 16:17
Para: mcaceresb/stata-gtools
Cc: dgcbritto; Author
Assunto: Re: [mcaceresb/stata-gtools] Could not load plugin: c:\ado\plus\g\gtools_windows.plugin (#35)
Perhaps; I suspected the issue is that the files are missing. Can you physically navigate to those directories using file explorer? If they are indeed blank, then gtools was not installed correctly. Run
local github "https://raw.githubusercontent.com"
net install gtools, from(`github'/mcaceresb/stata-gtools/master/build/)
And check again using file explorer. If this does not fix the problem then it's a problem with permissions, and you'll have to install gtools in a different folder.
Run the above first. If it's a permissions issue let me know and I can guide you through that install.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#35 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AjZpoa76P3Rg3HvK7q-Lr2UgYvr9nS6Pks5tbuC7gaJpZM4SfPnj>.
|
You mean that the folders are blank, right? Perhaps there is a discrepancy in the ado paths. How about: adopath
disp "`c(sysdir_plus)'"
disp "`c(sysdir_personal)'" You can try and download everything manually. I have placed just the relevant files in the release page (https://github.com/mcaceresb/stata-gtools/releases). You can download adopath + /path/to/gtools to your scripts. |
These commands show: . disp "`c(sysdir_personal)'" I mannually removed all gtools installation files from c:/ado/plus and manually installed it from the zip file, as you said. However, I get the same error message while running gcollapse: Could it have to do with my Windows version? Windows Server 2016 |
You said "mannually removed all gtools installation files from c:/ado/plus"; I thought the folders were empty? Anyway, if you did it manually then yes, it might be your windows version. To check, extract the zip in some a folder but don't move the files. For example, if you extracted them to "C:\testing\gtools" then run, from Stata, cd C:\testing\gtools
clear
set obs 10
gen x = 1
gcollapse x
capture program drop gtools_plugin
program gtools_plugin, plugin using("gtools_windows.plugin") And let me know what happens. |
No, it wasn't empty before. Installation with net install was successful at first I've run your code but continue to get the same message: "gcollapse x |
I was hoping it was just a permissions thing or an install problem, but it certainly look like it's an issue with the plugin. Hail Mary pass: If you run "disp c(bit)" from Stata, what's the answer? I don't have access to Windows Server 2016 and I don't know why it wouldn't work there, so this will probably go unfixed for some time. |
"disp c(bit) I've given another shot running it in Compatibility mode with Windows 7&8 and executing as administrator but no luck. |
I ran into the same problem running Gtools ado is installed in a network folder and runs fine from Linux and regular Windows Systems but fails on Windows Server. I also tried compatibility mode (win 7) without success. Any chance to get this bug fixed. I would like to help, although I have no C++ programming skills. |
Hopefully this is an issue with the gtools code that I can fix rather than spookyhash. If the answer to both of the above are true, I'll try to upload some test plugins for you to try out on the server and see if we can narrow down the problem anyway. |
no, to both questions. |
Let's try something else before. I'll be uploading some test plugins later today and was hoping you could test them out. No extra programs required. |
ok |
Please download test.do, test1.plugin, test2.plugin, and spookyhash.dll from here. Then run test.do. I expect the first test to run and the second should fail. Let me know if that is the case. |
as expected: . cd
L:\Cloud\gtest
. do "L:\Cloud\gtest\test.do"
. program test1, plugin using(test1.plugin)
. plugin call test1
Hello World
.
. program test2, plugin using(test2.plugin)
Could not load plugin: .\test2.plugin
r(9999);
end of do-file
r(9999); |
Ok, then the programs I referenced above are not actually the ones required. Do you have access to Visual Studio on the server? |
I'm trying to follow too. I have access to Visual Studio.
diogo
…________________________________
De: Mauricio Caceres Bravo <notifications@github.com>
Enviado: quarta-feira, 16 de maio de 2018 16:53
Para: mcaceresb/stata-gtools
Cc: dgcbritto; Author
Assunto: Re: [mcaceresb/stata-gtools] Could not load plugin: c:\ado\plus\g\gtools_windows.plugin (#35)
Ok, then the programs I referenced above are not actually the ones required. Does you have access to Visual Studio on the server?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#35 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AjZpodnbpW15Yrm-iRULk1NNDTCgE5ngks5tzIO0gaJpZM4SfPnj>.
|
The steps are
Replace
This should generate a version of spookyhash.dll compatible with your system. Let me know how far you get. PS: If you cannot find |
sry, no visual studio |
sorry, working on it but couldn't locate the path for ?\spookyhash\build\premake5.exe
…________________________________
De: Mauricio Caceres Bravo <notifications@github.com>
Enviado: quarta-feira, 16 de maio de 2018 17:16
Para: mcaceresb/stata-gtools
Cc: dgcbritto; Author
Assunto: Re: [mcaceresb/stata-gtools] Could not load plugin: c:\ado\plus\g\gtools_windows.plugin (#35)
* Can you open the Visual Studio Developer Command Prompt? The command you will need is msbuild
* You will need a copy of the spookyhash repo<https://github.com/centaurean/spookyhash>.
* Last, you need premake5<https://premake.github.io/download.html>
The steps are
cd spookyhash\build
premake5.exe vs2013
Replace vs2013 with vs2017 or similar depending on your version. Then open the VS Developer Command Prompt and run
cd spookyhash\build
msbuild SpookyHash.sln
This should generate a version of spookyhash.dll compatible with your system. Let me know how far you get.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#35 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AjZpoY7W4gkb4j1gYQmJXIlSa1aGgnTmks5tzIkUgaJpZM4SfPnj>.
|
You have to download it and copy it to that location. See: https://premake.github.io/download.html (DL link). Unzip and copy the exe to the build folder. |
sorry for taking that long to follow up
I've tried downloading and running spookyhash from windows shell but it didn't go through.
In any case, I've reinstalled gtools and it now seems to work just fine!
thanks again!
diogo
…________________________________
De: Diogo Gerhard <dgcbritto@hotmail.com>
Enviado: quarta-feira, 16 de maio de 2018 17:23
Para: mcaceresb/stata-gtools
Assunto: Re: [mcaceresb/stata-gtools] Could not load plugin: c:\ado\plus\g\gtools_windows.plugin (#35)
sorry, working on it but couldn't locate the path for ?\spookyhash\build\premake5.exe
________________________________
De: Mauricio Caceres Bravo <notifications@github.com>
Enviado: quarta-feira, 16 de maio de 2018 17:16
Para: mcaceresb/stata-gtools
Cc: dgcbritto; Author
Assunto: Re: [mcaceresb/stata-gtools] Could not load plugin: c:\ado\plus\g\gtools_windows.plugin (#35)
* Can you open the Visual Studio Developer Command Prompt? The command you will need is msbuild
* You will need a copy of the spookyhash repo<https://github.com/centaurean/spookyhash>.
* Last, you need premake5<https://premake.github.io/download.html>
The steps are
cd spookyhash\build
premake5.exe vs2013
Replace vs2013 with vs2017 or similar depending on your version. Then open the VS Developer Command Prompt and run
cd spookyhash\build
msbuild SpookyHash.sln
This should generate a version of spookyhash.dll compatible with your system. Let me know how far you get.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#35 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AjZpoY7W4gkb4j1gYQmJXIlSa1aGgnTmks5tzIkUgaJpZM4SfPnj>.
|
No worries. I'm glad it's working on your end. @ppoppitz was experiencing the same issue, so I reckon this might still pop up in the future. Did you ever manage to get premake5.exe to produce an .sln file and were you able to compile it on Visual Studio? I gather the answer to both of those is no but I wanted to double check. |
…er_issue_30 Compile spookyhash directly into plugin. #35
@houtanb If I did this correctly, I merged your pull request and fixed up the make script. Install from branch |
@mcaceresb thanks so much. We only have one computer where we can reproduce the error. I'll test that this week and get back to you. |
@mcaceresb, this worked for me. Thanks! |
Good to know this issue might be fixed. @houtanb Did you have a chance to test it out? Compiling spookyhash directly with the plugin doesn't seem to affect gtools in any other way so it will probably make it to master, but if it didn't work for you perhaps there is something else we can try before that. |
@mcaceresb my colleague has been busy with other things and has unfortunately not had the time to test it. I will be sure to let you know once he does (hopefully soon) |
It would be create if @dgcbritto @ppoppitz @dtetley001 and @tanby91 could test it too, if they still have access to the machines where the bug was encountered... |
Thanks for all your work, will test when I have time in about one week.
Am 20. Januar 2019 14:41:31 MEZ schrieb Houtan Bastani <notifications@github.com>:
…It would be create if @dgcbritto @ppoppitz @dtetley001 and @tanby91
could test it too, if they still have access to the machines where the
bug was encountered...
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#35 (comment)
|
@mcaceresb, just FYI, we tested it and the change works for us. |
I have also been having this problem on both a Windows Server 2012 and a Windows 10 Pro. But I am still getting the same error: |
Start a new session; make sure |
I tried the above. Uninstalling and installing from the developer branch goes smooth and the installed version is 1.2.7. I'm happy to help in any way possible. I have access to Visual Studio on the Windows 10 Pro machine, if that could be helpful. Update: |
Interesting. I'll be merging this change to master in the future, since some people reported this fixed worked, but I won't close this issue. @fink42 Do you have cygwin installed? It might be easier to try it that way. If you don't, then can you follow the steps in this comment? |
running fine here. thanks again. |
Perfect! @mcaceresb I don't have cygwin. Will try generating a new spookyhash.dll following the guide from the comment. I vaguely remember trying it previously with a failing build as a result. Will give it a new shot and return with the results. |
I managed to build a new spookyhash.dll. |
@fink42 Please uninstall gtools and go back to the SSC version. Run "findfile spookyhash.dll" and replace the file with the version you just built. In a new session, try running any gtools commands again. |
@mcaceresb I tried installing via SSC and then replacing the spookyhash.dll, but the problem still persist. I might mention that the laptop is issued by a university. I have previously encountered certain applications and permissions being "blocked" by the IT administrators. They might have changed something with the latest version of Windows that causes gtools to fail, as it works fine on another university laptops running an older version of Windows 10. I will contact the IT administrators and explain that it works on my colleague’s laptop but not on mine. They might know something which I don't |
@mcaceresb Having the same problem. I can not load gtools in R Studio after installing. I have the latest R version.
My gtools version gtools NA NA NA "yes" "3.5.2" |
@BenjoSilver I believe you are looking for the R package of the same name. This repo is about a Stata plugin called Good luck with the error (I should point out that I believe R's gtools is up to 3.8 these days. Maybe upgrading will help?) |
@mcaceresb Thanks a bunch! |
@BenjoSilver By the way your error is trying to use |
@fink42 I'm closing this issue since it seems to be fixed for several people and following this thread is very confusing. If you still experience it please open anew bug report with the details. |
Features - `greshape long` and `greshape wide` are a fast alternative to reshape. It additionally implements `greshape spread` and `greshape gather`, which are analogous to the `spread` and `gather` commands from R's `tidyr`. - `gstats` is a general-purpose wrapper for misc functions. - `gstats winsor` added for Winsorizing and trimming data. - `gstats winsor` takes weights. Enhancements - Added docs, examples for `greshape` and `gstats` - SpookyHash code compiled directly as part of the plugin. Closes #35 - Deleted all ancillary files and code related to `spookyhash.dll` - Faster hash sort with integer bijection (two-pass radix sorts for smaller integers; undocumented option `_ctolerance()` allows the user to force the regular counting sort). - Faster index copy when every observation is read (simply assign the index pointer to `st_info->index`) - Faster hash collision checking (simply use `memcmp` to compare the first chunk of bytes in the group with all the other ones; previous versions compared each individual observation, which is nice but hardly better than comparing the two chunks of memory are the same). Bug fixes - Fixes #49; gtools looks for a free timer and skips the benchmark if it can't find one. - Stata 14.0 no longer tries to load SPI version 3 (loads version 2). - Fixes #51: `gstats winsor` no longer fails with percentiles not strictly between 0 and 100. - Fixes #50: `gstats winsor` no longer fills in missing values as the high percentile.
Hi guys,
I'm trying to run gtools on a Windows Server 2016 with Stata 15, but I'm getting the following error:
Stata MP 15 6 users output:
gcollapse y, by(x)
Could not load plugin: c:\ado\plus\g\gtools_windows.plugin
(error occurred while loading _gtools_internal.ado)
Any tips on how to solve it?
Thanks a lot for this amazing command!
The text was updated successfully, but these errors were encountered: