Hi,
I’m new to nix.
I’m trying to run nix-shell --pure -p python39Packages.netcdf4
I expected to enter in a shell, but I got an error while building (at the end because it is big).
I have read this github issue, I’m not sure if it’s related:
https://github.com/NixOS/nixpkgs/issues/128717
I think that it’s the same package (maybe a different version) that also have tests problem.
Is there any way to fix this in my machine and/or upstream?
Can I try to build it in my machine without the tests?
I’m on Arch-linux with x86_64 architecture x86_64.
$ nix-shell --version
nix-shell (Nix) 2.13.2
I think that I do have enough disk space, because of:
$ btrfs filesystem df /
Data, single: total=18.01GiB, used=12.92GiB
System, DUP: total=8.00MiB, used=32.00KiB
Metadata, DUP: total=2.00GiB, used=748.81MiB
GlobalReserve, single: total=63.78MiB, used=0.00B
(This is here because note: build failure may have been caused by lack of free disk space
)
This is the part that I think it is relevant of the output (also the tail of the output):
......................../build/netCDF4-1.6.2/test/tst_types.py:88: UserWarning: WARNING: missing_value not used since it
cannot be safely cast to variable data type
assert_array_equal(v3[:],-1*np.ones(n2dim,v3.dtype))
........................................./build/netCDF4-1.6.2/test/tst_masked.py:93: UserWarning: WARNING: missing_value not used since it
cannot be safely cast to variable data type
data = dataset['v'][:]
....................compressed lossy with shuffle and standard quantization = 187767 max err = 0.0002441403696464839
compressed lossy with shuffle and alternate quantization = 155389 max err = 0.00048828088386476676
compressed lossy with shuffle and alternate quantization = 163033 max err = 0.0002441403696464839
......EEEsE.
======================================================================
ERROR: runTest (tst_cdf5.test_cdf5)
testing NETCDF3_64BIT_DATA format (CDF-5)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/netCDF4-1.6.2/test/tst_cdf5.py", line 20, in setUp
v[:ndim] = arrdata
File "src/netCDF4/_netCDF4.pyx", line 5519, in netCDF4._netCDF4.Variable.__setitem__
File "src/netCDF4/_netCDF4.pyx", line 5802, in netCDF4._netCDF4.Variable._put
File "src/netCDF4/_netCDF4.pyx", line 2028, in netCDF4._netCDF4._ensure_nc_success
RuntimeError: NetCDF: Operation not allowed in define mode
======================================================================
ERROR: runTest (tst_atts.VariablesTestCase)
testing attributes
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/netCDF4-1.6.2/test/tst_atts.py", line 43, in setUp
with netCDF4.Dataset(self.file,'w') as f:
File "src/netCDF4/_netCDF4.pyx", line 2463, in netCDF4._netCDF4.Dataset.__init__
File "src/netCDF4/_netCDF4.pyx", line 2026, in netCDF4._netCDF4._ensure_nc_success
PermissionError: [Errno 13] Permission denied: b'tst_atts.nc'
======================================================================
ERROR: test_reports_alignment_capabilities (tst_alignment.AlignmentTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/netCDF4-1.6.2/test/tst_alignment.py", line 36, in setUp
f = Dataset(self.file, 'w')
File "src/netCDF4/_netCDF4.pyx", line 2463, in netCDF4._netCDF4.Dataset.__init__
File "src/netCDF4/_netCDF4.pyx", line 2026, in netCDF4._netCDF4._ensure_nc_success
PermissionError: [Errno 13] Permission denied: b'/build/tmpbqvqkjfl.nc'
======================================================================
ERROR: test_version_settings (tst_alignment.AlignmentTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/netCDF4-1.6.2/test/tst_alignment.py", line 36, in setUp
f = Dataset(self.file, 'w')
File "src/netCDF4/_netCDF4.pyx", line 2463, in netCDF4._netCDF4.Dataset.__init__
File "src/netCDF4/_netCDF4.pyx", line 2026, in netCDF4._netCDF4._ensure_nc_success
PermissionError: [Errno 13] Permission denied: b'/build/tmpbqvqkjfl.nc'
----------------------------------------------------------------------
Ran 97 tests in 50.968s
FAILED (errors=4, skipped=1)
error: builder for '/nix/store/rcz1clss9dlyrcxsdh3nq3xhnzd02zpl-python3.9-netCDF4-1.6.2.drv' failed with exit code 1;
last 10 log lines:
> File "/build/netCDF4-1.6.2/test/tst_alignment.py", line 36, in setUp
> f = Dataset(self.file, 'w')
> File "src/netCDF4/_netCDF4.pyx", line 2463, in netCDF4._netCDF4.Dataset.__init__
> File "src/netCDF4/_netCDF4.pyx", line 2026, in netCDF4._netCDF4._ensure_nc_success
> PermissionError: [Errno 13] Permission denied: b'/build/tmpbqvqkjfl.nc'
>
> ----------------------------------------------------------------------
> Ran 97 tests in 50.968s
>
> FAILED (errors=4, skipped=1)
For full logs, run 'nix log /nix/store/rcz1clss9dlyrcxsdh3nq3xhnzd02zpl-python3.9-netCDF4-1.6.2.drv'.
note: build failure may have been caused by lack of free disk space