-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
local build of docs fails with OSError: [UT_PARSE] Failed to open UDUNITS-2 XML unit database #4257
Comments
This looks like a bad cf_units/udunits install. Maybe @ocefpaf has seen this before |
I could not reproduce it locally on my Linux box. Also, I believe the CIs here to the same, right? Maybe you could send me your |
@ocefpaf @dcherian I'm guessing it's some bad package install too, but that surprises me since it's a fresh miniconda install to begin with... Haven't tested miniconda vs anaconda yet. Just pulled from upstream and recreated the environment, docs make error still persists. Here are my
and
|
The difference between your environment and mine does not explain it:
What is your shell? What is the result of |
@ocefpaf :
|
Everything looks OK and I cannot reproduce that. Sorry, but I'm at a loss here. |
@ocefpaf Thanks for trying anyway |
since nobody could reproduce this (and CI ran just fine) I assume this was some weird environment issue. Usually, re-creating the environment (and maybe clearing the package cache) helps in that case. Closing, but feel free to reopen or open a new if you run into something like this again. |
I have the same issue |
@ocefpaf this ghost bug is hitting one of our users too ESMValGroup/ESMValTool#3589 - so far no clue as to what's causing it, but I am finally invested into looking at it in more detail, so will ping you guys if I find out something of use 🍺 |
I am able to reproduce at least a similar issue by setting export LC_NUMERIC=nl_NL.UTF-8 (a language in which the decimal number separator is a |
I second what @bouweandela has found, we got a few more clues from one of our users who's facing a similar issue, and all the clues pointed to the |
Can you please open an issue in the cf_units repository? I'm not a developer there but I can help debug this. |
@ocefpaf Thanks! Issue opened here SciTools/cf-units#435. |
What happened:
When trying to build the docs locally, the
make html
step fails withUdunitsError: UT_PARSE
andOSError: [UT_PARSE] Failed to open UDUNITS-2 XML unit database
. Searching online only results in a single (unanswered) mention on the gitter channel and a few results of errors on windows, but this is on Ubuntu 18.04What you expected to happen:
A succesful sphinx build of the xarray documentation
Minimal Complete Verifiable Example:
conda environment:
Anything else we need to know?:
Environment:
Fresh install of miniconda on Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-111-generic x86_64)
freshly created environment:
Output of xr.show_versions()
/home/rijnsjvan/miniconda3/envs/xarray-docs/lib/python3.8/site-packages/setuptools/distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first. warnings.warn(INSTALLED VERSIONS
commit: None
python: 3.8.5 | packaged by conda-forge | (default, Jul 22 2020, 17:31:50)
[GCC 7.5.0]
python-bits: 64
OS: Linux
OS-release: 4.15.0-111-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
libhdf5: 1.10.6
libnetcdf: 4.7.4
xarray: 0.16.1.dev6+g0b706a42
pandas: 1.0.5
numpy: 1.19.0
scipy: 1.5.1
netCDF4: 1.5.4
pydap: None
h5netcdf: 0.8.1
h5py: 2.10.0
Nio: None
zarr: 2.4.0
cftime: 1.2.1
nc_time_axis: None
PseudoNetCDF: None
rasterio: 1.1.5
cfgrib: 0.9.8.3
iris: 2.4.0
bottleneck: 1.3.2
dask: 2.21.0
distributed: 2.21.0
matplotlib: 3.3.0
cartopy: 0.18.0
seaborn: 0.10.1
numbagg: None
pint: None
setuptools: 49.2.0.post20200712
pip: 20.1.1
conda: None
pytest: None
IPython: 7.16.1
sphinx: 3.1.2
The text was updated successfully, but these errors were encountered: