~tfardet/#1258324

failed

0e77c7eTanguy Fardet

fix build

Owner
~tfardet
Created
4 months ago
Updated
4 months ago
Build manifest
view manifest »

Tasks

view log »
path view log »
check view log »
setup view log »
test view log »
doc view log »
go to bottom »
go to top »
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[#1258324] 2024/06/23 06:45:11 Booting image ubuntu/lts (default) on port 22947
[#1258324] 2024/06/23 06:45:11 Waiting for guest to settle
[#1258324] 2024/06/23 06:45:19 Sending tasks
[#1258324] 2024/06/23 06:45:22 Sending build environment
[#1258324] 2024/06/23 06:45:22 Sending secrets
[#1258324] 2024/06/23 06:45:22 Resolving secret 69332acb-b779-4bb2-ae8a-719f8e150ace
[#1258324] 2024/06/23 06:45:23 Installing packages
Warning: Permanently added '[localhost]:22947' (ED25519) to the list of known hosts.
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://archive.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1526 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-security/main Translation-en [261 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [860 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [167 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1734 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1087 kB]
Fetched 5892 kB in 2s (3398 kB/s)
Reading package lists...
Warning: Permanently added '[localhost]:22947' (ED25519) to the list of known hosts.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  javascript-common libexpat1-dev libjs-jquery libjs-sphinxdoc
  libjs-underscore libpython3-dev libpython3.10 libpython3.10-dev python3-dev
  python3-distutils python3-lib2to3 python3-setuptools python3-wheel
  python3.10-dev zlib1g-dev
Suggested packages:
  apache2 | lighttpd | httpd python-setuptools-doc
The following NEW packages will be installed:
  javascript-common libexpat1-dev libjs-jquery libjs-sphinxdoc
  libjs-underscore libpython3-dev libpython3.10 libpython3.10-dev python3-dev
  python3-distutils python3-lib2to3 python3-pip python3-setuptools
  python3-wheel python3.10-dev zlib1g-dev
0 upgraded, 16 newly installed, 0 to remove and 3 not upgraded.
Need to get 10.0 MB of archives.
After this operation, 40.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 javascript-common all 11+nmu1 [5936 B]
Get:2 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 libexpat1-dev amd64 2.4.7-1ubuntu0.3 [147 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-jquery all 3.6.0+dfsg+~3.5.13-1 [321 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-underscore all 1.13.2~dfsg-2 [118 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-sphinxdoc all 4.3.2-1 [139 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 libpython3.10 amd64 3.10.12-1~22.04.3 [1948 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2 [164 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 libpython3.10-dev amd64 3.10.12-1~22.04.3 [4762 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 libpython3-dev amd64 3.10.6-1~22.04 [7166 B]
Get:10 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3.10-dev amd64 3.10.12-1~22.04.3 [507 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3-lib2to3 all 3.10.8-1~22.04 [77.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3-distutils all 3.10.8-1~22.04 [139 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3-dev amd64 3.10.6-1~22.04 [26.0 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 python3-setuptools all 59.6.0-1.2ubuntu0.22.04.1 [339 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 python3-wheel all 0.37.1-2ubuntu0.22.04.1 [32.0 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 python3-pip all 22.0.2+dfsg-1ubuntu0.4 [1305 kB]
Fetched 10.0 MB in 0s (49.8 MB/s)
Selecting previously unselected package javascript-common.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 39171 files and directories currently installed.)
Preparing to unpack .../00-javascript-common_11+nmu1_all.deb ...
Unpacking javascript-common (11+nmu1) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../01-libexpat1-dev_2.4.7-1ubuntu0.3_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.4.7-1ubuntu0.3) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../02-libjs-jquery_3.6.0+dfsg+~3.5.13-1_all.deb ...
Unpacking libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../03-libjs-underscore_1.13.2~dfsg-2_all.deb ...
Unpacking libjs-underscore (1.13.2~dfsg-2) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../04-libjs-sphinxdoc_4.3.2-1_all.deb ...
Unpacking libjs-sphinxdoc (4.3.2-1) ...
Selecting previously unselected package libpython3.10:amd64.
Preparing to unpack .../05-libpython3.10_3.10.12-1~22.04.3_amd64.deb ...
Unpacking libpython3.10:amd64 (3.10.12-1~22.04.3) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../06-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu9.2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Selecting previously unselected package libpython3.10-dev:amd64.
Preparing to unpack .../07-libpython3.10-dev_3.10.12-1~22.04.3_amd64.deb ...
Unpacking libpython3.10-dev:amd64 (3.10.12-1~22.04.3) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../08-libpython3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.10.6-1~22.04) ...
Selecting previously unselected package python3.10-dev.
Preparing to unpack .../09-python3.10-dev_3.10.12-1~22.04.3_amd64.deb ...
Unpacking python3.10-dev (3.10.12-1~22.04.3) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../10-python3-lib2to3_3.10.8-1~22.04_all.deb ...
Unpacking python3-lib2to3 (3.10.8-1~22.04) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../11-python3-distutils_3.10.8-1~22.04_all.deb ...
Unpacking python3-distutils (3.10.8-1~22.04) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../12-python3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking python3-dev (3.10.6-1~22.04) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../13-python3-setuptools_59.6.0-1.2ubuntu0.22.04.1_all.deb ...
Unpacking python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../14-python3-wheel_0.37.1-2ubuntu0.22.04.1_all.deb ...
Unpacking python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../15-python3-pip_22.0.2+dfsg-1ubuntu0.4_all.deb ...
Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
Setting up javascript-common (11+nmu1) ...
Setting up libpython3.10:amd64 (3.10.12-1~22.04.3) ...
Setting up libexpat1-dev:amd64 (2.4.7-1ubuntu0.3) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Setting up libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
Setting up python3-lib2to3 (3.10.8-1~22.04) ...
Setting up libjs-underscore (1.13.2~dfsg-2) ...
Setting up python3-distutils (3.10.8-1~22.04) ...
Setting up python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Setting up libpython3.10-dev:amd64 (3.10.12-1~22.04.3) ...
Setting up python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
Setting up libjs-sphinxdoc (4.3.2-1) ...
Setting up python3.10-dev (3.10.12-1~22.04.3) ...
Setting up libpython3-dev:amd64 (3.10.6-1~22.04) ...
Setting up python3-dev (3.10.6-1~22.04) ...
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
[#1258324] 2024/06/23 06:45:28 Cloning repositories
Cloning into 'OrgMatt'...
+ cd OrgMatt
+ git checkout -q 0e77c7e9d98d7903f24898a4fc661b0e45c49596
+ cd OrgMatt
+ git submodule update --init --recursive
[#1258324] 2024/06/23 06:45:29 Running task path
[#1258324] 2024/06/23 06:45:30 Running task check
[#1258324] 2024/06/23 06:45:33 Running task setup
[#1258324] 2024/06/23 06:45:47 Running task test
[#1258324] 2024/06/23 06:46:00 Build failed.
[#1258324] 2024/06/23 06:46:00 The build environment will be kept alive for 10 minutes.
[#1258324] 2024/06/23 06:46:00 To log in with SSH and examine it, use the following command:
[#1258324] 2024/06/23 06:46:00 
[#1258324] 2024/06/23 06:46:00 	ssh -t builds@fra01.builds.sr.ht connect 1258324
[#1258324] 2024/06/23 06:46:00 
[#1258324] 2024/06/23 06:46:00 After logging in, the deadline is increased to your remaining build time.
[#1258324] 2024/06/23 06:56:00 Deadline elapsed. Terminating build environment.
[#1258324] 2024/06/23 06:56:00 Error: Running task on guest: exit status 1
path
1
+ echo 'export PATH=$PATH:/home/build/.local/bin'
check
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
+ pip3 install reuse
Defaulting to user installation because normal site-packages is not writeable
Collecting reuse
  Downloading reuse-3.0.2.tar.gz (269 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 269.4/269.4 KB 21.8 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting Jinja2<4.0.0,>=3.0.0
  Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.3/133.3 KB 36.3 MB/s eta 0:00:00
Collecting binaryornot<0.5.0,>=0.4.4
  Downloading binaryornot-0.4.4-py2.py3-none-any.whl (9.0 kB)
Collecting python-debian!=0.1.45,!=0.1.46,!=0.1.47,<0.2.0,>=0.1.34
  Downloading python_debian-0.1.49-py3-none-any.whl (132 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.5/132.5 KB 55.9 MB/s eta 0:00:00
Collecting license-expression>=1.0
  Downloading license_expression-30.3.0-py3-none-any.whl (108 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.9/108.9 KB 68.9 MB/s eta 0:00:00
Collecting boolean.py>=3.8
  Downloading boolean.py-4.0-py3-none-any.whl (25 kB)
Collecting chardet>=3.0.2
  Downloading chardet-5.2.0-py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.4/199.4 KB 58.1 MB/s eta 0:00:00
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Building wheels for collected packages: reuse
  Building wheel for reuse (pyproject.toml): started
  Building wheel for reuse (pyproject.toml): finished with status 'done'
  Created wheel for reuse: filename=reuse-3.0.2-cp310-cp310-manylinux_2_35_x86_64.whl size=119657 sha256=91bebc3608eeea55875ac12fb9650ffa9738b8be4e8025014818adfddbb884c5
  Stored in directory: /home/build/.cache/pip/wheels/2b/57/24/d43da4d2afa2378313e911ca8254dd24b3becb9e0ee2d57e0b
Successfully built reuse
Installing collected packages: boolean.py, MarkupSafe, license-expression, chardet, python-debian, Jinja2, binaryornot, reuse
Successfully installed Jinja2-3.1.4 MarkupSafe-2.1.5 binaryornot-0.4.4 boolean.py-4.0 chardet-5.2.0 license-expression-30.3.0 python-debian-0.1.49 reuse-3.0.2
+ cd OrgMatt
+ reuse lint

# SUMMARY

* Bad licenses: 0
* Deprecated licenses: 0
* Licenses without file extension: 0
* Missing licenses: 0
* Unused licenses: 0
* Used licenses: GPL-3.0-or-later, Python-2.0, CC-BY-4.0, BSD-2-Clause, CC0-1.0, CC-BY-SA-4.0
* Read errors: 0
* files with copyright information: 90 / 90
* files with license information: 90 / 90

Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
+ cd OrgMatt
+ pip3 install --upgrade pip pytest setuptools
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/lib/python3/dist-packages (22.0.2)
Collecting pip
  Downloading pip-24.1-py3-none-any.whl (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 63.5 MB/s eta 0:00:00
Collecting pytest
  Downloading pytest-8.2.2-py3-none-any.whl (339 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 339.9/339.9 KB 106.5 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (59.6.0)
Collecting setuptools
  Downloading setuptools-70.1.0-py3-none-any.whl (882 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 882.6/882.6 KB 124.2 MB/s eta 0:00:00
Collecting packaging
  Downloading packaging-24.1-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.0/54.0 KB 32.4 MB/s eta 0:00:00
Collecting tomli>=1
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting iniconfig
  Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Collecting exceptiongroup>=1.0.0rc8
  Downloading exceptiongroup-1.2.1-py3-none-any.whl (16 kB)
Collecting pluggy<2.0,>=1.5
  Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
Installing collected packages: tomli, setuptools, pluggy, pip, packaging, iniconfig, exceptiongroup, pytest
Successfully installed exceptiongroup-1.2.1 iniconfig-2.0.0 packaging-24.1 pip-24.1 pluggy-1.5.0 pytest-8.2.2 setuptools-70.1.0 tomli-2.0.1
+ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy>=1.20 (from -r requirements.txt (line 5))
  Downloading numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 kB 16.1 MB/s eta 0:00:00
Collecting scipy (from -r requirements.txt (line 6))
  Downloading scipy-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 28.0 MB/s eta 0:00:00
Collecting pandas (from -r requirements.txt (line 7))
  Downloading pandas-2.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Collecting pint>=0.19 (from -r requirements.txt (line 8))
  Downloading Pint-0.24-py3-none-any.whl.metadata (8.5 kB)
Collecting pycountry (from -r requirements.txt (line 9))
  Downloading pycountry-24.6.1-py3-none-any.whl.metadata (12 kB)
Collecting openscm-units (from -r requirements.txt (line 10))
  Downloading openscm_units-0.6.0-py3-none-any.whl.metadata (3.9 kB)
Collecting seaborn (from -r requirements.txt (line 11))
  Downloading seaborn-0.13.2-py3-none-any.whl.metadata (5.4 kB)
Collecting python-dateutil>=2.8.2 (from pandas->-r requirements.txt (line 7))
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas->-r requirements.txt (line 7))
  Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas->-r requirements.txt (line 7))
  Downloading tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting appdirs>=1.4.4 (from pint>=0.19->-r requirements.txt (line 8))
  Downloading appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB)
Collecting typing-extensions (from pint>=0.19->-r requirements.txt (line 8))
  Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting flexcache>=0.3 (from pint>=0.19->-r requirements.txt (line 8))
  Downloading flexcache-0.3-py3-none-any.whl.metadata (7.0 kB)
Collecting flexparser>=0.3 (from pint>=0.19->-r requirements.txt (line 8))
  Downloading flexparser-0.3.1-py3-none-any.whl.metadata (18 kB)
Collecting globalwarmingpotentials (from openscm-units->-r requirements.txt (line 10))
  Downloading globalwarmingpotentials-0.11.1-py2.py3-none-any.whl.metadata (4.6 kB)
Collecting matplotlib!=3.6.1,>=3.4 (from seaborn->-r requirements.txt (line 11))
  Downloading matplotlib-3.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Collecting contourpy>=1.0.1 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading contourpy-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.8 kB)
Collecting cycler>=0.10 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading fonttools-4.53.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (162 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.2/162.2 kB 35.3 MB/s eta 0:00:00
Collecting kiwisolver>=1.3.1 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading kiwisolver-1.4.5-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (6.4 kB)
Requirement already satisfied: packaging>=20.0 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11)) (24.1)
Collecting pillow>=8 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading pillow-10.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib!=3.6.1,>=3.4->seaborn->-r requirements.txt (line 11))
  Downloading pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas->-r requirements.txt (line 7))
  Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Downloading numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.3/19.3 MB 134.4 MB/s eta 0:00:00
Downloading scipy-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.6/38.6 MB 98.8 MB/s eta 0:00:00
Downloading pandas-2.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.0/13.0 MB 161.5 MB/s eta 0:00:00
Downloading Pint-0.24-py3-none-any.whl (300 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 300.7/300.7 kB 97.0 MB/s eta 0:00:00
Downloading pycountry-24.6.1-py3-none-any.whl (6.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.3/6.3 MB 177.5 MB/s eta 0:00:00
Downloading openscm_units-0.6.0-py3-none-any.whl (13 kB)
Downloading seaborn-0.13.2-py3-none-any.whl (294 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.9/294.9 kB 94.9 MB/s eta 0:00:00
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Downloading flexcache-0.3-py3-none-any.whl (13 kB)
Downloading flexparser-0.3.1-py3-none-any.whl (27 kB)
Downloading matplotlib-3.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.3/8.3 MB 179.8 MB/s eta 0:00:00
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 82.9 MB/s eta 0:00:00
Downloading pytz-2024.1-py2.py3-none-any.whl (505 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 505.5/505.5 kB 106.0 MB/s eta 0:00:00
Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 345.4/345.4 kB 105.1 MB/s eta 0:00:00
Downloading globalwarmingpotentials-0.11.1-py2.py3-none-any.whl (14 kB)
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Downloading contourpy-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (305 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 305.2/305.2 kB 92.5 MB/s eta 0:00:00
Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Downloading fonttools-4.53.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 174.0 MB/s eta 0:00:00
Downloading kiwisolver-1.4.5-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 158.8 MB/s eta 0:00:00
Downloading pillow-10.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (4.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 160.8 MB/s eta 0:00:00
Downloading pyparsing-3.1.2-py3-none-any.whl (103 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.2/103.2 kB 49.6 MB/s eta 0:00:00
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: pytz, globalwarmingpotentials, appdirs, tzdata, typing-extensions, six, pyparsing, pycountry, pillow, numpy, kiwisolver, fonttools, cycler, scipy, python-dateutil, flexparser, flexcache, contourpy, pint, pandas, matplotlib, seaborn, openscm-units
Successfully installed appdirs-1.4.4 contourpy-1.2.1 cycler-0.12.1 flexcache-0.3 flexparser-0.3.1 fonttools-4.53.0 globalwarmingpotentials-0.11.1 kiwisolver-1.4.5 matplotlib-3.9.0 numpy-2.0.0 openscm-units-0.6.0 pandas-2.2.2 pillow-10.3.0 pint-0.24 pycountry-24.6.1 pyparsing-3.1.2 python-dateutil-2.9.0.post0 pytz-2024.1 scipy-1.13.1 seaborn-0.13.2 six-1.16.0 typing-extensions-4.12.2 tzdata-2024.1
+ pip install coverage
Defaulting to user installation because normal site-packages is not writeable
Collecting coverage
  Downloading coverage-7.5.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.2 kB)
Downloading coverage-7.5.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (233 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 233.1/233.1 kB 42.5 MB/s eta 0:00:00
Installing collected packages: coverage
Successfully installed coverage-7.5.4
+ pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/build/OrgMatt
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: numpy>=1.20 in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.4.3) (2.0.0)
Requirement already satisfied: scipy in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.4.3) (1.13.1)
Requirement already satisfied: pandas in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.4.3) (2.2.2)
Requirement already satisfied: pint>=0.19 in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.4.3) (0.24)
Requirement already satisfied: pycountry in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.4.3) (24.6.1)
Requirement already satisfied: openscm-units in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.4.3) (0.6.0)
Requirement already satisfied: seaborn in /home/build/.local/lib/python3.10/site-packages (from OrgMatt==0.4.3) (0.13.2)
Requirement already satisfied: appdirs>=1.4.4 in /home/build/.local/lib/python3.10/site-packages (from pint>=0.19->OrgMatt==0.4.3) (1.4.4)
Requirement already satisfied: typing-extensions in /home/build/.local/lib/python3.10/site-packages (from pint>=0.19->OrgMatt==0.4.3) (4.12.2)
Requirement already satisfied: flexcache>=0.3 in /home/build/.local/lib/python3.10/site-packages (from pint>=0.19->OrgMatt==0.4.3) (0.3)
Requirement already satisfied: flexparser>=0.3 in /home/build/.local/lib/python3.10/site-packages (from pint>=0.19->OrgMatt==0.4.3) (0.3.1)
Requirement already satisfied: globalwarmingpotentials in /home/build/.local/lib/python3.10/site-packages (from openscm-units->OrgMatt==0.4.3) (0.11.1)
Requirement already satisfied: python-dateutil>=2.8.2 in /home/build/.local/lib/python3.10/site-packages (from pandas->OrgMatt==0.4.3) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in /home/build/.local/lib/python3.10/site-packages (from pandas->OrgMatt==0.4.3) (2024.1)
Requirement already satisfied: tzdata>=2022.7 in /home/build/.local/lib/python3.10/site-packages (from pandas->OrgMatt==0.4.3) (2024.1)
Requirement already satisfied: matplotlib!=3.6.1,>=3.4 in /home/build/.local/lib/python3.10/site-packages (from seaborn->OrgMatt==0.4.3) (3.9.0)
Requirement already satisfied: contourpy>=1.0.1 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.4.3) (1.2.1)
Requirement already satisfied: cycler>=0.10 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.4.3) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.4.3) (4.53.0)
Requirement already satisfied: kiwisolver>=1.3.1 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.4.3) (1.4.5)
Requirement already satisfied: packaging>=20.0 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.4.3) (24.1)
Requirement already satisfied: pillow>=8 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.4.3) (10.3.0)
Requirement already satisfied: pyparsing>=2.3.1 in /home/build/.local/lib/python3.10/site-packages (from matplotlib!=3.6.1,>=3.4->seaborn->OrgMatt==0.4.3) (3.1.2)
Requirement already satisfied: six>=1.5 in /home/build/.local/lib/python3.10/site-packages (from python-dateutil>=2.8.2->pandas->OrgMatt==0.4.3) (1.16.0)
Building wheels for collected packages: OrgMatt
  Building wheel for OrgMatt (pyproject.toml): started
  Building wheel for OrgMatt (pyproject.toml): finished with status 'done'
  Created wheel for OrgMatt: filename=OrgMatt-0.4.3-py3-none-any.whl size=111595 sha256=3e102d061c267ebd5d073c999cfad62784462320323895feb8c95784e816dfaa
  Stored in directory: /tmp/pip-ephem-wheel-cache-k1om5gat/wheels/fa/c8/54/6668a436f152ec271fbc43c4d4817e40063b0c2195101cffa1
Successfully built OrgMatt
Installing collected packages: OrgMatt
Successfully installed OrgMatt-0.4.3
test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
+ cd OrgMatt
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/build/OrgMatt
configfile: pyproject.toml
collected 37 items

tests/test_data.py ...........                                           [ 29%]
tests/test_excreta.py ..                                                 [ 35%]
tests/test_food.py ...                                                   [ 43%]
tests/test_impacts.py ..                                                 [ 48%]
tests/test_metabolism.py ...F...                                         [ 67%]
tests/test_nutrients.py ...                                              [ 75%]
tests/test_plots.py .                                                    [ 78%]
tests/test_units.py ....                                                 [ 89%]
tests/test_utils.py ....                                                 [100%]

=================================== FAILURES ===================================
____________________________ test_unavailable_data _____________________________

    def test_unavailable_data():
        ''' Check corrections when data is unavailable '''
        kwargs = {"sex": "female", "diet": "vegan", "country": "DEU"}
        m = MetabolicDataModel(age_group="senior", **kwargs)
    
        # for intake
        assert np.isnan(nutrient_intake(1, 1*day, "N", group="senior", **kwargs).m)
    
        res_func = nutrient_intake(
            1, 1*day, "N", group="senior", auto_correct=True, **kwargs)
    
        res_model = m.nutrient_intake(1*day, "N")
    
        assert m.last_correction_status >= 1
    
        assert res_func != res_model
    
        # for excreta
        kwargs = {"sex": "male", "country": "SWE"}
        age_range = "31-38"
        m = MetabolicDataModel(age_group=age_range, **kwargs)
    
        assert m.age == age_range
    
        assert np.isnan(
            nutrient_from_population(
                1, 1*day, "N", age=age_range, excreta="urine", **kwargs).m)
    
        skipped = []
    
        res_func = nutrient_from_population(
            1, 1*day, "N", age=age_range, excreta="urine", auto_correct=True,
            skipped_constraints=skipped, **kwargs)
    
        assert "sex" in skipped, "This test should check correction for `sex`."
    
        res_model = m.nutrient_excretion(1*day, "N", excreta="urine")
    
        assert res_func != res_model
    
        # check that corrections are consistent
        diet = "vegan"
        kwargs = {"sex": "female", "diet": diet, "country": "DEU"}
    
        res_intake = {}
        res_excreta = {}
        res_urine = {}
    
        for g in ("kid", "adult"):
            assert np.isnan(nutrient_intake(1, 1*day, "N", group=g, **kwargs).m)
    
            m = MetabolicDataModel(age_group=g, **kwargs)
    
            assert m.diet == diet
    
            res_intake[g] = m.nutrient_intake(1*day, "N")
            res_excreta[g] = m.nutrient_excretion(1*day, "N", excreta="all")
            res_urine[g] = m.nutrient_excretion(1*day, "N", excreta="urine")
    
        # NB: data-based model is not fully consistent, urine excretion may be
        # higher than intake
        assert res_intake["kid"] < res_intake["adult"]
>       assert res_urine["kid"] < res_urine["adult"]
E       AssertionError: assert <Quantity(9.22299446, 'gN')> < <Quantity(9.21149924, 'gN')>

tests/test_metabolism.py:174: AssertionError
----------------------------- Captured stderr call -----------------------------
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'senior', 'sex': 'female'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'senior', 'sex': 'female'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'age', 'sex'} from `kwargs` in function `nutrient_from_population`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'country': 'SWE'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'sex'} from `kwargs` in function `nutrient_from_population`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'country': 'SWE'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'kid', 'sex': 'female'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'group'} from `kwargs` in function `fraction_nutrient_excreta`.
Final arguments used were: {'region': 'Europe', 'country': 'DEU', 'sex': 'female', 'diet': 'vegan'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'kid', 'sex': 'female'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'group', 'diet', 'country'} from `kwargs` in function `nutrient_from_population`.
Final arguments used were: {'region': 'Europe', 'sex': 'female'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'sex': 'female', 'diet': 'vegan'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'sex': 'female', 'diet': 'vegan'}.
[INFO @ orgmatt._utils.tools]: from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_from_population`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'sex': 'female'}.
------------------------------ Captured log call -------------------------------
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'senior', 'sex': 'female'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'senior', 'sex': 'female'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'age', 'sex'} from `kwargs` in function `nutrient_from_population`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'country': 'SWE'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'sex'} from `kwargs` in function `nutrient_from_population`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'country': 'SWE'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'kid', 'sex': 'female'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'group'} from `kwargs` in function `fraction_nutrient_excreta`.
Final arguments used were: {'region': 'Europe', 'country': 'DEU', 'sex': 'female', 'diet': 'vegan'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'kid', 'sex': 'female'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'group', 'diet', 'country'} from `kwargs` in function `nutrient_from_population`.
Final arguments used were: {'region': 'Europe', 'sex': 'female'}.
WARNING  root:logger.py:39 from coverage (L8) - Could not autocorrect missing field: 'diet=vegan'.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'sex': 'female', 'diet': 'vegan'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'country'} from `kwargs` in function `nutrient_intake`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'sex': 'female', 'diet': 'vegan'}.
INFO     orgmatt._utils.tools:logger.py:41 from coverage (L8) - Removed {'diet', 'country'} from `kwargs` in function `nutrient_from_population`.
Final arguments used were: {'region': 'Europe', 'group': 'adult', 'sex': 'female'}.
WARNING  root:logger.py:39 from coverage (L8) - Could not autocorrect missing field: 'diet=vegan'.
=========================== short test summary info ============================
FAILED tests/test_metabolism.py::test_unavailable_data - AssertionError: asse...
======================== 1 failed, 36 passed in 12.35s =========================
Build complete: failed 4 months ago (took 48 seconds)