Skip to content
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

Release 202201. #42

Merged
merged 3 commits into from Feb 1, 2022
Merged

Release 202201. #42

merged 3 commits into from Feb 1, 2022

Conversation

tormi
Copy link
Member

@tormi tormi commented Feb 1, 2022

No description provided.

@tormi
Copy link
Member Author

tormi commented Feb 1, 2022

Looks like the updated xlsx files are formatted differently compared to the earlier versions, notice BadZipFile: File is not a zip file errors in January 2022 released files:

➜  uniclass-2015 git:(202201) ✗ lando convert
+ URL=https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015
+ rm -rf uniclass2015
+ mkdir -p uniclass2015
+ cp -a Uniclass2015_Tables.csv.txt Uniclass2015_Tables.csv
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_co_v1_15.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 74810  100 74810    0     0   101k      0 --:--:-- --:--:-- --:--:--  101k
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_en_v1_23.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 74810  100 74810    0     0   136k      0 --:--:-- --:--:-- --:--:--  136k
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_ac_v1_16.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 49718  100 49718    0     0   130k      0 --:--:-- --:--:-- --:--:--  129k
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_sl_v1_22.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 53512  100 53512    0     0   143k      0 --:--:-- --:--:-- --:--:--  143k
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_ef_v1_10.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10576  100 10576    0     0  28430      0 --:--:-- --:--:-- --:--:-- 28430
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_ss_v1_25.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 74810  100 74810    0     0   144k      0 --:--:-- --:--:-- --:--:--  143k
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_pr_v1_25.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 74810  100 74810    0     0   141k      0 --:--:-- --:--:-- --:--:--  141k
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_te_v1_11.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 74810  100 74810    0     0   150k      0 --:--:-- --:--:-- --:--:--  149k
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_pm_v1_15.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 74810  100 74810    0     0   149k      0 --:--:-- --:--:-- --:--:--  149k
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_fi_v1_4.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10212  100 10212    0     0  26184      0 --:--:-- --:--:-- --:--:-- 26117
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_ro_v1_5.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16224  100 16224    0     0  41073      0 --:--:-- --:--:-- --:--:-- 41073
+ curl https://www.thenbs.com/-/media/uk/files/xls/uniclass/2021-10/uniclass2015_zz_v1_1.xlsx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 74810  100 74810    0     0   132k      0 --:--:-- --:--:-- --:--:--  132k
+ for i in *.xlsx
++ basename Uniclass2015_Ac.xlsx .xlsx
+ filename=Uniclass2015_Ac
+ outext=.csv
+ in2csv Uniclass2015_Ac.xlsx
+ tail -n +3
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 1 has no name. Using "b".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 2 has no name. Using "c".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 3 has no name. Using "d".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 4 has no name. Using "e".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 5 has no name. Using "f".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 6 has no name. Using "g".
+ for i in *.xlsx
++ basename Uniclass2015_Co.xlsx .xlsx
+ filename=Uniclass2015_Co
+ outext=.csv
+ in2csv Uniclass2015_Co.xlsx
+ tail -n +3
BadZipFile: File is not a zip file
+ for i in *.xlsx
++ basename Uniclass2015_EF.xlsx .xlsx
+ filename=Uniclass2015_EF
+ outext=.csv
+ tail -n +3
+ in2csv Uniclass2015_EF.xlsx
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 1 has no name. Using "b".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 2 has no name. Using "c".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 3 has no name. Using "d".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 4 has no name. Using "e".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 5 has no name. Using "f".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 6 has no name. Using "g".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 7 has no name. Using "h".
+ for i in *.xlsx
++ basename Uniclass2015_En.xlsx .xlsx
+ filename=Uniclass2015_En
+ outext=.csv
+ in2csv Uniclass2015_En.xlsx
+ tail -n +3
BadZipFile: File is not a zip file
+ for i in *.xlsx
++ basename Uniclass2015_FI.xlsx .xlsx
+ filename=Uniclass2015_FI
+ outext=.csv
+ tail -n +3
+ in2csv Uniclass2015_FI.xlsx
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 1 has no name. Using "b".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 2 has no name. Using "c".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 3 has no name. Using "d".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 4 has no name. Using "e".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 5 has no name. Using "f".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 6 has no name. Using "g".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 7 has no name. Using "h".
+ for i in *.xlsx
++ basename Uniclass2015_PM.xlsx .xlsx
+ filename=Uniclass2015_PM
+ outext=.csv
+ in2csv Uniclass2015_PM.xlsx
+ tail -n +3
BadZipFile: File is not a zip file
+ for i in *.xlsx
++ basename Uniclass2015_Pr.xlsx .xlsx
+ filename=Uniclass2015_Pr
+ outext=.csv
+ in2csv Uniclass2015_Pr.xlsx
+ tail -n +3
BadZipFile: File is not a zip file
+ for i in *.xlsx
++ basename Uniclass2015_Ro.xlsx .xlsx
+ filename=Uniclass2015_Ro
+ outext=.csv
+ in2csv Uniclass2015_Ro.xlsx
+ tail -n +3
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 1 has no name. Using "b".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 2 has no name. Using "c".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 3 has no name. Using "d".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 4 has no name. Using "e".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 5 has no name. Using "f".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 6 has no name. Using "g".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 7 has no name. Using "h".
+ for i in *.xlsx
++ basename Uniclass2015_SL.xlsx .xlsx
+ filename=Uniclass2015_SL
+ outext=.csv
+ in2csv Uniclass2015_SL.xlsx
+ tail -n +3
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 1 has no name. Using "b".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 2 has no name. Using "c".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 3 has no name. Using "d".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 4 has no name. Using "e".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 5 has no name. Using "f".
/var/www/.local/lib/python3.7/site-packages/agate/utils.py:285: UnnamedColumnWarning: Column 6 has no name. Using "g".
+ for i in *.xlsx
++ basename Uniclass2015_Ss.xlsx .xlsx
+ filename=Uniclass2015_Ss
+ outext=.csv
+ in2csv Uniclass2015_Ss.xlsx
+ tail -n +3
BadZipFile: File is not a zip file
+ for i in *.xlsx
++ basename Uniclass2015_TE.xlsx .xlsx
+ filename=Uniclass2015_TE
+ outext=.csv
+ in2csv Uniclass2015_TE.xlsx
+ tail -n +3
BadZipFile: File is not a zip file
+ for i in *.xlsx
++ basename Uniclass2015_Zz.xlsx .xlsx
+ filename=Uniclass2015_Zz
+ outext=.csv
+ in2csv Uniclass2015_Zz.xlsx
+ tail -n +3
BadZipFile: File is not a zip file

@tormi
Copy link
Member Author

tormi commented Feb 1, 2022

Okay, there seems to be an issue with paths, opened one new file:


<!DOCTYPE html>
<html lang="en" dir="ltr">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
  <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
  
  <link rel="canonical" href="https://www.thenbs.com/page-not-found">

@tormi tormi merged commit 85b3699 into main Feb 1, 2022
@tormi tormi deleted the 202201 branch February 1, 2022 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant