Error in gdxrrw package
Error in gdxrrw package
Dear GAMS Users,
I am trying to run GAMS and R together using the package “gdxrrwâ€, but I received the following error message with GAMS_23.9,
> igdx("C:/Program Files(x86)/GAMS23.9/")
Error loading the GDX API from directory C:/Program Files(x86)/GAMS23.9/
Could not load shared library C:/Program Files(x86)/GAMS23.9/\gdxdclib64.dll: Windows error
The GDX library has not been loaded
But, this works fine with the newest version of GAMS (24.4).
> igdx("c:/GAMS/win64/24.4/")
The GDX library has been loaded
GDX library load path: c:/GAMS/win64/24.4/
My problem is that I have a license of GAMS_23.9, but not for GAMS_24.4.
Could you please suggest “how can I run R and GAMS_23.9 using the package “gdxrrw†?
Or, I might have misunderstood the error message.
I really appreciate your help,
Thanks,
Shyam Basnet
SLU, Uppsala
Sweden
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Re: Error in gdxrrw package
Shyam,
It looks like your GAMS 23.9 system is a 32-bit system, but your 24.4 system is 64-bit. Try installing the 64-bit 23.9 in C:/gams/win64/23.9 and pointing to that with the igdx() call.
If problems persist, you could always update your GAMS license.
If that's not possible, consider pointing to the 24.4. system when you use gdxrrw to read/write GDX files - if you avoid calling gams() you are just using the GDX DLL and that doesn't require any license. If you want to run GAMS from withing R you can do so using the system2() call with an absolute path to a licensed GAMS version in the arguments.
-Steve
On Tue, Aug 4, 2015 at 1:46 PM, shyam basnet wrote:
Dear GAMS Users,
I am trying to run GAMS and R together using the package “gdxrrwâ€, but I received the following error message with GAMS_23.9,
> igdx("C:/Program Files(x86)/GAMS23.9/")
Error loading the GDX API from directory C:/Program Files(x86)/GAMS23.9/
Could not load shared library C:/Program Files(x86)/GAMS23.9/\gdxdclib64.dll: Windows error
The GDX library has not been loaded
But, this works fine with the newest version of GAMS (24.4).
> igdx("c:/GAMS/win64/24.4/")
The GDX library has been loaded
GDX library load path: c:/GAMS/win64/24.4/
My problem is that I have a license of GAMS_23.9, but not for GAMS_24.4.
Could you please suggest “how can I run R and GAMS_23.9 using the package “gdxrrw†?
Or, I might have misunderstood the error message.
I really appreciate your help,
Thanks,
Shyam Basnet
SLU, Uppsala
Sweden
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
--
Steven Dirkse, Ph.D.
GAMS Development Corp., Washington DC
Voice: (202)342-0180 Fax: (202)342-0181
sdirkse@gams.com
http://www.gams.com
It looks like your GAMS 23.9 system is a 32-bit system, but your 24.4 system is 64-bit. Try installing the 64-bit 23.9 in C:/gams/win64/23.9 and pointing to that with the igdx() call.
If problems persist, you could always update your GAMS license.
If that's not possible, consider pointing to the 24.4. system when you use gdxrrw to read/write GDX files - if you avoid calling gams() you are just using the GDX DLL and that doesn't require any license. If you want to run GAMS from withing R you can do so using the system2() call with an absolute path to a licensed GAMS version in the arguments.
-Steve
On Tue, Aug 4, 2015 at 1:46 PM, shyam basnet wrote:
Dear GAMS Users,
I am trying to run GAMS and R together using the package “gdxrrwâ€, but I received the following error message with GAMS_23.9,
> igdx("C:/Program Files(x86)/GAMS23.9/")
Error loading the GDX API from directory C:/Program Files(x86)/GAMS23.9/
Could not load shared library C:/Program Files(x86)/GAMS23.9/\gdxdclib64.dll: Windows error
The GDX library has not been loaded
But, this works fine with the newest version of GAMS (24.4).
> igdx("c:/GAMS/win64/24.4/")
The GDX library has been loaded
GDX library load path: c:/GAMS/win64/24.4/
My problem is that I have a license of GAMS_23.9, but not for GAMS_24.4.
Could you please suggest “how can I run R and GAMS_23.9 using the package “gdxrrw†?
Or, I might have misunderstood the error message.
I really appreciate your help,
Thanks,
Shyam Basnet
SLU, Uppsala
Sweden
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
--
Steven Dirkse, Ph.D.
GAMS Development Corp., Washington DC
Voice: (202)342-0180 Fax: (202)342-0181
sdirkse@gams.com
http://www.gams.com
Re: Error in gdxrrw package
Hi, I faced the same problem with gdxrrw, my solution is simple:
Just modify the environmental variable by adding C:\GAMS\win64\24.3 to your path. Then it works for me.
在 2015å¹´8月5日星期三 UTC+9上åˆ11:06:10,Steven Dirkse写é“:
Shyam,
It looks like your GAMS 23.9 system is a 32-bit system, but your 24.4 system is 64-bit. Try installing the 64-bit 23.9 in C:/gams/win64/23.9 and pointing to that with the igdx() call.
If problems persist, you could always update your GAMS license.
If that's not possible, consider pointing to the 24.4. system when you use gdxrrw to read/write GDX files - if you avoid calling gams() you are just using the GDX DLL and that doesn't require any license. If you want to run GAMS from withing R you can do so using the system2() call with an absolute path to a licensed GAMS version in the arguments.
-Steve
On Tue, Aug 4, 2015 at 1:46 PM, shyam basnet wrote:
Dear GAMS Users,
I am trying to run GAMS and R together using the package “gdxrrwâ€, but I received the following error message with GAMS_23.9,
> igdx("C:/Program Files(x86)/GAMS23.9/")
Error loading the GDX API from directory C:/Program Files(x86)/GAMS23.9/
Could not load shared library C:/Program Files(x86)/GAMS23.9/\gdxdclib64.dll: Windows error
The GDX library has not been loaded
But, this works fine with the newest version of GAMS (24.4).
> igdx("c:/GAMS/win64/24.4/")
The GDX library has been loaded
GDX library load path: c:/GAMS/win64/24.4/
My problem is that I have a license of GAMS_23.9, but not for GAMS_24.4.
Could you please suggest “how can I run R and GAMS_23.9 using the package “gdxrrw†?
Or, I might have misunderstood the error message.
I really appreciate your help,
Thanks,
Shyam Basnet
SLU, Uppsala
Sweden
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
--
Steven Dirkse, Ph.D.
GAMS Development Corp., Washington DC
Voice: (202)342-0180 Fax: (202)342-0181
sdi...@gams.com
http://www.gams.com
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Re: Error in gdxrrw package
Hi
I have GAMS installed in C:\GAMS\win64\31.2. I have installed
When I run
For information:
I have GAMS installed in C:\GAMS\win64\31.2. I have installed
When I run
I get:igdx("C:\\GAMS\\win64\\31.2")
Any help in figuring this out would be much appreciated.Error loading the GDX API from gamsSysDir=C:\GAMS\win64\31.2
Could not load symbol 'gdxStoreDomainSets': gdxdclib: gdxStoreDomainSets cannot be found in the library.
Environment variable R_GAMS_SYSDIR not set: no GDX API there
Error loading the GDX API via the default shared library search mechanism
Could not load symbol 'gdxStoreDomainSets': gdxdclib: gdxStoreDomainSets cannot be found in the library.
PATH = C:\rtools40\usr\bin;C:\Program Files\R\R-4.1.1\bin\x64;C:\GAMS\win64\31.2;C:\GAMS\win64\31.2\gbin;;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\GAMS\win64\24.7;C:\Windows\System32\OpenSSH;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\Git\cmd;C:\Ruby27-x64\bin;C:\Users\Iris Oren\AppData\Local\Microsoft\WindowsApps;C:\Users\Iris Oren\AppData\Local\Programs\MiKTeX\miktex\bin\x64
The GDX library has not been loaded
For information:
> sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] gdxrrw_1.0.8 devtools_2.4.2 usethis_2.0.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 rstudioapi_0.13 magrittr_2.0.1 pkgload_1.2.1 R6_2.5.1 rlang_0.4.11
[7] fastmap_1.1.0 stringr_1.4.0 plyr_1.8.6 tools_4.1.1 pkgbuild_1.2.0 sessioninfo_1.1.1
[13] cli_3.0.1 withr_2.4.2 ellipsis_0.3.2 remotes_2.4.0 rprojroot_2.0.2 lifecycle_1.0.1
[19] crayon_1.4.1 processx_3.5.2 reshape2_1.4.4 purrr_0.3.4 callr_3.7.0 fs_1.5.0
[25] ps_1.6.0 curl_4.3.1 testthat_3.0.4 memoise_2.0.0 glue_1.4.2 cachem_1.0.6
[31] stringi_1.7.5 compiler_4.1.1 desc_1.3.0 prettyunits_1.1.1
Re: Error in gdxrrw package
Somehow you GAMS and gdxxrw do not match. The GDX call in question was introduced in GAMS 33, see https://www.gams.com/39/docs/RN_33.html ... 3310_XPAPI. So your gdxrrw must be post GAMS 33 while you regular GAMS version is 31.
-Michael
-Michael