IMSL_CONSTANT not finding udunits database #1723
Replies: 15 comments 4 replies
-
I have no MSwin around ... On my laptop running Linux and GDL compiled with udunits, I have :
and
(could you check the GDL_STATUS ?) You could try to compile GDL in WSL2, it should works fine, I already did that for colleagues months ago |
Beta Was this translation helpful? Give feedback.
-
In fact I llok at the Could you also give a more detailed example ? |
Beta Was this translation helpful? Give feedback.
-
gdl_status indicates the UDUNITS is present
% Compiled module: GDL_STATUS.
1
DSFMT ? :
.....
21
UDUNITS :
1
However
GDL> print,IMSL_CONSTANT('C')
% IMSL_CONSTANT: UDUNITS: failed to load the default unit database
% Execution halted at: $MAIN$
…On Wed, Jan 10, 2024 at 5:44 PM Alain ***@***.***> wrote:
In fact I llok at the build_gdl.sh script and udunits is here for MSwin
Could you also give a more detailed example ?
—
Reply to this email directly, view it on GitHub
<#1723 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7Q6LH2MIYBIIVGG62OJHLYN4KUHAVCNFSM6AAAAABBVQ36FGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DAOBXGQ3TE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
OK. I suspect you a problem with the related DLL, but I am totally ignorant with MSwin Did you run the test suite ? May help to clarify what happen ?
|
Beta Was this translation helpful? Give feedback.
-
Did you install gdl from the installer, or did you compile it? In the first case, it would mean that a needed dll is missing from the installer? (not on MSWin, not even sure that such thing as an udunits.dll exists) |
Beta Was this translation helpful? Give feedback.
-
The error is issued from GDL code if UDUNITS XML files cannot be located: Lines 2881 to 2882 in 8157c12 So, likely it is not a DLL problem but an incomplete UDUNITS installation that shipped the DLLs, but not the XML files, or some other config issue that prevents UDUNITS from finding the XML files (see https://docs.unidata.ucar.edu/udunits/current/#Database). |
Beta Was this translation helpful? Give feedback.
-
That sounds right. I don’t see the XML file(s).
…On Sun, Jan 14, 2024 at 4:44 PM Sylwester Arabas ***@***.***> wrote:
The error is issued from GDL code if UDUNITS XML files cannot be located:
https://github.com/gnudatalanguage/gdl/blob/8157c1239eb8164633b221b5dbd74d5e905b7b3f/src/gsl_fun.cpp#L2881-L2882
So, likely it is not a DLL problem but an incomplete UDUNITS installation
that shipped the DLLs, but not the XML files, or some other config issue
that prevents UDUNITS from finding the XML files (see
https://docs.unidata.ucar.edu/udunits/current/#Database).
—
Reply to this email directly, view it on GitHub
<#1723 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7Q6LCIRJFTH2ZY26H3GCLYORGVJAVCNFSM6AAAAABBVQ36FGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCMRWGMZTO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
does that means we have to improve the tests or the message ? (and yes, we still need a FAQ ! in the Wiki ?) |
Beta Was this translation helpful? Give feedback.
-
I believe the message is correct as it refers to a missing default database
which is presumably missing XML file(s). I tried taking XML files from the
UDUNITS distribution and place in a GDL path but was not successful.
Do we know the expected XML file and location?
…On Sun, Jan 14, 2024 at 5:28 PM Alain ***@***.***> wrote:
does that means we have to improve the tests or the message ?
(and yes, we still need a FAQ ! in the Wiki ?)
—
Reply to this email directly, view it on GitHub
<#1723 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7Q6LB3P2IKEXNIKCBGOQ3YORLXRAVCNFSM6AAAAABBVQ36FGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCMRWGU3TA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
FWIW, here are the locations used in the Debian package: https://packages.debian.org/sid/all/libudunits2-data/filelist |
Beta Was this translation helpful? Give feedback.
-
@jdtreffert how have you installed UDUNITS and GDL? |
Beta Was this translation helpful? Give feedback.
-
With the windows installer
…On Thu, Jan 18, 2024 at 6:07 AM Sylwester Arabas ***@***.***> wrote:
@jdtreffert <https://github.com/jdtreffert> how have you installed
UDUNITS and GDL?
—
Reply to this email directly, view it on GitHub
<#1723 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7Q6LHIDRJSGSRPJGIS7NLYPD7ABAVCNFSM6AAAAABBVQ36FGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNRXHEZDA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes
…On Thu, Jan 18, 2024 at 8:37 AM Sylwester Arabas ***@***.***> wrote:
@GillesDuvert <https://github.com/GillesDuvert> @pjb7687
<https://github.com/pjb7687> would this imply that we are not shipping
the XML files together with the GDL Windows installer?
—
Reply to this email directly, view it on GitHub
<#1723 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7Q6LBI3YNW7KFN6UYBIIDYPEQRDAVCNFSM6AAAAABBVQ36FGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNRZGQYDO>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I wanted to let all know that I can resolve this issue on Windows if
following a Windows installation of v1.04:
1. Copy the UDUNITS*.XML files from the UDUNITS installation zip to a
directory
2. Set an environment variable UDUNITS2_XML_PATH to the full path
(directory+name) of the udunits2.xml file
…On Thu, Jan 18, 2024 at 10:44 AM Giloo ***@***.***> wrote:
of course! As I said, it needs user returns, such as this one, to figure
out what is missing in a particular distribution.
One could be confident that everything works with a gdl compiled and
installed using 'build_gdl.sh', because of the test file 'test_constants'
working on the windows continuous integration machine, but for the Apple or
Windows installer, the files need to be written in the installer package by
the "build_gdl.sh pack" command. Obviously these XML files are absent and
need to be added.
—
Reply to this email directly, view it on GitHub
<#1723 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7Q6LEFKKESSWYNTDQ5YYDYPE7ODAVCNFSM6AAAAABBVQ36FGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNZQHEZDQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am not building the DLL - but I downloaded the .zip distribution file -
https://downloads.unidata.ucar.edu/udunits/2.2.28/udunits-2.2.28.zip
There is a udunits2.xml file in the lib directory of the distribution which
shows dependencies on other udunit*.xml files.
…On Tue, Jan 23, 2024 at 2:06 PM Giloo ***@***.***> wrote:
Not clear where to find those XML files.
It is said "This location varies depending upon your operating system and
UDUnits2 compilation settings."
—
Reply to this email directly, view it on GitHub
<#1723 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7Q6LA6JBJ6MONJJSAS3W3YQAC37AVCNFSM6AAAAABBVQ36FGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEMRUGYZTG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm running V 1.0.4 on Windows and IMSL_CONSTANT is failing with
% IMSL_CONSTANT: UDUNITS: failed to load the default unit database
Am I missing a file or do require additional configuration?
Beta Was this translation helpful? Give feedback.
All reactions